Skip to content

fix: address Copilot PR #12 review suggestions#13

Merged
gragra33 merged 1 commit into
developfrom
fix/address-copilot-pr12-review
Apr 19, 2026
Merged

fix: address Copilot PR #12 review suggestions#13
gragra33 merged 1 commit into
developfrom
fix/address-copilot-pr12-review

Conversation

@gragra33
Copy link
Copy Markdown
Owner

Addresses the 3 Copilot review threads on PR #12.\n\n## Changes\n\n### ci.yml — Thread 1: conditional upload step\n\n- Added a workflow-level RUNNING_LOCALLY: \"\" env variable (defined in the workflow so actionlint accepts it)\n- Changed upload-artifact step from continue-on-error: true to if: always() && env.RUNNING_LOCALLY == ''\n- On real GitHub Actions RUNNING_LOCALLY is empty → step runs and failures are fatal\n- Locally via act (where ci-cd-test-run.ps1 passes --env RUNNING_LOCALLY=true) → step is skipped entirely\n- Removes the false-negative risk where a genuine upload failure on real CI would be silently swallowed\n\n### ci-cd-test-run.ps1 — Thread 2: Release event payload in full-execution path\n\n- Added the same explicit push-to-master event payload (-e) to the Release workflow in the full-execution path (Step 4)\n- Dry-run (Step 3) already supplied this payload; the full-execution path did not, so the Release workflow could be skipped silently\n- Temp event file is cleaned up in the finally block, matching the dry-run pattern\n\n### ci-cd-test-run.ps1 — Thread 3: narrowed dry-run error filter\n\n- Removed the broad 'The system cannot find the file specified' exclusion from both $failed and $knownArtifactCacheIssue\n- That message can come from unrelated failures and was masking real errors\n- Now uses only the specific \\.cache\\\\act\\\\actions-upload-artifact path pattern, which precisely targets the known act Windows cache-cleanup bug\n\n## Validation\n\n- actionlint: zero violations on both ci.yml and release.yml\n- Dry-run: CI and Release workflows both pass locally via act -n"

- ci.yml: add workflow-level RUNNING_LOCALLY env var; gate upload-artifact on
  env.RUNNING_LOCALLY == '' so it only runs on real GitHub Actions (not locally
  via act), eliminating the need for continue-on-error: true
- ci-cd-test-run.ps1: pass --env RUNNING_LOCALLY=true to all act invocations
  (dry-run and full execution) so the upload step is skipped locally
- ci-cd-test-run.ps1: add explicit push-to-master event payload (-e flag) to
  Release workflow in full-execution path, matching the dry-run path
- ci-cd-test-run.ps1: narrow dry-run error filter — remove broad
  'The system cannot find the file specified' exclusion from both $failed and
  $knownArtifactCacheIssue; use only the specific .cache\act\actions-upload-artifact
  pattern to detect the known act Windows cache-cleanup bug
Copilot AI review requested due to automatic review settings April 19, 2026 07:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the local CI runner and CI workflow to incorporate the 3 review-thread fixes from PR #12, improving correctness of local act runs and making artifact upload failures fatal on real GitHub Actions runs.

Changes:

  • Add a workflow-level RUNNING_LOCALLY env var and gate the CI artifact upload step so it’s skipped under act but enforced on GitHub Actions.
  • Update ci-cd-test-run.ps1 to always pass RUNNING_LOCALLY=true to act (dry-run + full run).
  • Ensure the Release workflow is not skipped in full execution by supplying an explicit push-to-master event payload, and tighten the dry-run failure filter to avoid masking unrelated errors.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ci-cd-test-run.ps1 Passes RUNNING_LOCALLY=true to act, adds Release event payload in full runs, and narrows the dry-run error filter; cleans up temp event files.
.github/workflows/ci.yml Defines RUNNING_LOCALLY and makes upload-artifact conditional so local runs skip it while real CI treats failures as fatal.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gragra33 gragra33 merged commit 4a4ba3b into develop Apr 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants