Repository navigation
fix: prepare Claude smoke images before agent execution - #11114
Merged
Merged
Conversation
Reuse the shared Smoke Copilot image preparation helper with its own 35-minute budget. Keep Claude execution limited to 20 minutes and reuse run-specific local images without builds or pulls. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change separating Claude smoke-test image preparation from execution.
No open issues 🎉
What changed in this PR
Moves Claude smoke-test image builds into a separate host preparation step, reusing the existing smoke-workflow helper so cold builds no longer consume Claude’s execution budget.
Changes:
- Adds a bounded 35-minute image preparation step while preserving Claude’s 20-minute execution timeout.
- Preserves the helper before PR checkout and selects run-specific local images with
--skip-pull. - Extends shared regression coverage to Claude, including preparation ordering, timeout budgets, and postprocessing idempotency.
| File | Description |
|---|---|
scripts/ci/smoke-image-preparation.test.ts |
Adds Claude to shared image-preparation tests and parameterizes engine and timeout assertions. |
scripts/ci/apply-general-workflow-patches.ts |
Enables prepared local-image selection for the Claude smoke workflow. |
.github/workflows/smoke-claude.md |
Adds and documents the separate image preparation step. |
.github/workflows/smoke-claude.lock.yml |
Updates the generated workflow with helper preservation, preparation, and local-image execution flags. |
Review effort: Balanced (auto)
Contributor
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 93.75% | 93.74% | 📉 -0.01% |
| Statements | 92.30% | 92.29% | ➡️ -0.01% |
| Functions | 93.06% | 93.06% | ➡️ +0.00% |
| Branches | 86.51% | 86.50% | 📉 -0.01% |
📁 Per-file Coverage Changes (1 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/nvx/one-shot-process.ts |
84.0% → 81.5% (-2.47%) | 76.8% → 74.7% (-2.11%) |
Coverage comparison generated by scripts/ci/compare-coverage.ts
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.
Summary
--image-registry awf-smoke --image-tag "${AWF_SMOKE_IMAGE_TAG:?}" --skip-pull, keeping cold builds and pulls out of Claude's unchanged 20-minute execution budget.This addresses the Smoke Claude timeout: the execution step exhausted its timeout while images were still building, before Claude started. Follows the existing preparation pattern on main, including #10771.
Validation
npm run buildandnpm run type-checkpassed.smoke-image-preparation,smoke-claude-workflow,apply-general-workflow-patches,postprocess-smoke-workflows).git diff --checkpassed.concurrency.queue/job.workflow_refsyntax, and one Low zizmoradhoc-packagesfinding. The existing dispatch-concurrency compiler warning is unchanged.Review and limitations
Only the four task files are included, based on main; the original checkout and its unrelated changes were left untouched.