Skip to content

Guard Copilot sandbox startup against RUNNER_TEMP loss - #72933

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-copilot-cli-agent-step
Oct 29, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/fix-copilot-cli-agent-step

Conversation

Copilot AI commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Losing RUNNER_TEMP across the sandbox boundary caused Node to resolve the Copilot driver under /gh-aw/actions/ and fail with MODULE_NOT_FOUND. The current code already preserves the variable; this change adds execution-level regression coverage.

  • Sandbox coverage: Exercise generated CLI and SDK commands through simulated sudo-rs/AWF boundaries using real Node, including paths containing spaces, quotes, and dollar signs.
  • Failure reproduction: Verify that the old blanket environment-preservation behavior reproduces the missing-module error.
  • Scope: Test-only; no production behavior changes.

Copilot AI changed the title [WIP] Fix Copilot CLI agent step failure in chroot sandbox Guard Copilot sandbox startup against RUNNER_TEMP loss Oct 29, 2026
Copilot AI requested a review from pelikhan October 29, 2026 11:18
@pelikhan
pelikhan marked this pull request as ready for review October 29, 2026 11:24
Copilot AI adaptive review requested due to automatic review settings October 29, 2026 11:24
@pelikhan
pelikhan merged commit f99c392 into main Oct 29, 2026
73 checks passed
@pelikhan
pelikhan deleted the copilot/fix-copilot-cli-agent-step branch October 29, 2026 11:25
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · haiku45 · ~8 AIC · ⌖ ~9 AIC · ◇ ~3 AIC · ⊞ 8.9K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Generated by Ponytail Reviewer for #72933

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · opus55 · ~12 AIC · ⌖ ~38 AIC · ◇ ~3 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for this test-only change adding sandbox startup regression coverage.

No open issues 🎉

What changed in this PR

Adds execution-level regression coverage for the Copilot sandbox startup failure reported in #72489. The tests protect existing RUNNER_TEMP preservation behavior; production code is unchanged.

Changes:

  • Exercise generated CLI and SDK commands through simulated sudo-rs/AWF boundaries for both sandbox runtimes.
  • Verify argument handling with runner paths containing spaces, quotes, and dollar signs.
  • Confirm that the simulated old blanket environment-preservation behavior reproduces the missing-module error.
File Description
pkg/​workflow/​copilot_engine_harness_test.go Adds real-Node regression tests for sandbox environment preservation and startup failure reproduction.

Review effort: Balanced (auto)

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.0

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.

Copilot CLI agent step fails with "Cannot find module '/gh-aw/actions/copilot_driver.cjs'" inside chroot sandbox

3 participants