Skip to content

fix: prepare Claude smoke images before agent execution - #11114

Merged
lpcox merged 1 commit into
mainfrom
lpcox-claude-smoke-image-preparation
Nov 4, 2026
Merged

lpcox merged 1 commit into
mainfrom
lpcox-claude-smoke-image-preparation

Conversation

@lpcox

@lpcox lpcox commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Reuse the shared Smoke Copilot/Smoke Services image preparation helper to build the checked-out Squid, agent, and API proxy images in a separate, bounded 35-minute host preparation step.
  • Preserve the helper before PR checkout and run preparation after the local AWF CLI build/install, retaining safe UID/GID build arguments.
  • Select run-specific local images with --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.
  • Extend the shared regression suite for Claude, including image/context matching, configuration precedence, fail-closed preparation, ordering, timeout budgets, and postprocessing idempotency.

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 build and npm run type-check passed.
  • Four targeted Jest suites passed: 158 tests (smoke-image-preparation, smoke-claude-workflow, apply-general-workflow-patches, postprocess-smoke-workflows).
  • Regenerated the production lock with checksum-verified gh-aw v1.0.1, matching the existing compiler version, then ran the mandatory repository postprocessor.
  • Shared image helper passed ShellCheck; git diff --check passed.
  • Baseline comparisons found no added ESLint, actionlint, or offline zizmor findings. Existing findings remain: two postprocessor regex-spacing lint errors, installed actionlint's unsupported concurrency.queue / job.workflow_ref syntax, and one Low zizmor adhoc-packages finding. The existing dispatch-concurrency compiler warning is unchanged.

Review and limitations

  • Initial read-only security review passed for the changed source and Docker-stub test harness, with no confirmed vulnerabilities. Credential exclusions, permissions, firewall controls, safe outputs, and engine/model pins are unchanged.
  • The final regenerated lock has not received the required same-reviewer follow-up. The original reviewer ran synchronously and cannot receive continuation messages; no replacement reviewer was launched. This is a review-tooling limitation, not a completed final-lock review. The lock delta consists of metadata hashes, helper preservation, the bounded preparation step, and local-image execution flags.
  • Dry-run compilation did not complete during historical baseline artifact collection; no diagnostic lock was emitted. Normal production compilation succeeded.
  • No live Docker builds or agent execution were performed. No workflows were manually dispatched; no merge or auto-merge was requested.

Only the four task files are included, based on main; the original checkout and its unrelated changes were left untouched.

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>
Copilot AI adaptive review requested due to automatic review settings November 4, 2026 19:59

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 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)

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

⚠️ Coverage Regression Detected

This PR decreases test coverage. Please add tests to maintain coverage levels.

Overall Coverage

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

@lpcox
lpcox merged commit dfc1896 into main Nov 4, 2026
35 of 37 checks passed
@lpcox
lpcox deleted the lpcox-claude-smoke-image-preparation branch November 4, 2026 20:28
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