Repository navigation
Make Copilot CLI staging idempotent for ARC/DinD - #11946
Merged
Merged
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
lpcox
marked this pull request as ready for review
November 22, 2026 16:52
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change making Copilot CLI staging idempotent on ARC/DinD runners.
No open issues 🎉
What changed in this PR
Makes AWF’s Copilot CLI staging idempotent for ARC/DinD runners, addressing #11934 without changing the upstream compiler.
Changes:
- Guards copies with Bash file-identity checks while preserving executable validation and unconditional
chmod. - Upgrades previously engine-gated steps without nesting guards on repeated postprocessing.
- Adds regression coverage for file identities, distinct destinations, missing executables, and both agent and threat-detection jobs.
| File | Description |
|---|---|
scripts/ci/workflow-step-builders.ts |
Skips copying when source and destination identify the same file. |
scripts/ci/workflow-patches/engine-lifecycle.ts |
Adds the identity guard to previously engine-gated steps. |
scripts/ci/postprocess-smoke-workflows.test.ts |
Tests staging behavior across file-identity and executable-error cases. |
scripts/ci/apply-general-workflow-patches.test.ts |
Tests both jobs, legacy-step upgrades, and repeated postprocessing. |
Review effort: Balanced (adaptive)
Contributor
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rootless Copilot installs may already place the binary at
${RUNNER_TEMP}/gh-aw/bin/copilot. Staging then copies the file onto itself and stops the workflow before agent startup.-efin AWF’s staging replacement for agent and threat-detection jobs, covering identical paths, hard links, and symlinks. Preserve executable checks and unconditionalchmod.Scope is AWF postprocessing; the upstream
gh-awcompiler is unchanged.