Skip to content

fix: prebuild OTel smoke images before timed agent execution - #11318

Merged
lpcox merged 3 commits into
mainfrom
copilot/fix-build-smoke-otel-tracing-images
Nov 8, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/fix-build-smoke-otel-tracing-images

Conversation

Copilot AI commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Cold Docker builds were consuming Smoke OTel Tracing’s 15-minute execution budget, causing intermittent timeouts before Copilot reached tracing validation.

  • Preparation: Add a separate 35-minute step after the tested revision’s checkout and local AWF build/install. Reuse the existing helper to build and verify all three images before exporting the run-specific tag.
  • Execution: Replace inline --build-local with exact prepared-image selection:
    --image-registry awf-smoke --image-tag "${AWF_SMOKE_IMAGE_TAG:?}" --skip-pull
    Retain the 15-minute execution timeout, OTel configuration, credential isolation, network restrictions, and smoke assertions.
  • Compiler integration: Extend the existing preparation postprocessor and regenerate the OTel lock.
  • Regression coverage: Add OTel to shared preparation tests and enforce checkout → build → install → preparation → execution ordering.

Copilot AI changed the title [WIP] Fix build Smoke OTel Tracing images before agent execution step fix: prebuild OTel smoke images before timed agent execution Nov 8, 2026
Copilot AI requested a review from lpcox November 8, 2026 16:37
@lpcox
lpcox marked this pull request as ready for review November 8, 2026 16:51
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 16:51

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 changes moving OTel image preparation outside the agent execution window.

No open issues 🎉

What changed in this PR

Moves Smoke OTel Tracing’s Docker image builds outside the 15-minute agent execution window, addressing the cold-build timeouts reported in #11315.

Changes:

  • Adds a separate 35-minute image preparation step after checkout and local AWF installation.
  • Updates workflow post-processing and the generated lock to select prepared images explicitly with --skip-pull, replacing inline --build-local.
  • Extends shared regression coverage to OTel and strengthens checkout → build → install → preparation → execution ordering checks.
File Description
scripts/​ci/​smoke-image-preparation.test.ts Adds OTel coverage and stronger prerequisite-order assertions.
scripts/​ci/​apply-general-workflow-patches.ts Enables prepared-image argument rewriting for the OTel workflow.
.github/​workflows/​smoke-otel-tracing.md Declares the separately timed image preparation step.
.github/​workflows/​smoke-otel-tracing.lock.yml Preserves the build helper, prepares images, and selects them during execution.

Review effort: Balanced (auto)

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@lpcox

lpcox commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

…ke-otel-tracing-images

# Conflicts:
#	scripts/ci/apply-general-workflow-patches.ts
#	scripts/ci/smoke-image-preparation.test.ts

Co-authored-by: lpcox <[email protected]>

Copilot AI commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot merge main and resolve conflicts

Merged main and resolved the conflicts in 3c58e96. The merge commit has two parents and is published.

@github-actions

github-actions Bot commented Nov 8, 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.81% 93.81% ➡️ +0.00%
Statements 92.36% 92.35% 📉 -0.01%
Functions 93.02% 93.02% ➡️ +0.00%
Branches 86.70% 86.69% 📉 -0.01%
📁 Per-file Coverage Changes (3 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%)
src/enclave/host-executor-server.ts 91.2% → 91.2% (+0.00%) 90.1% → 89.8% (-0.29%)
src/commands/main-action.ts 91.7% → 92.0% (+0.25%) 91.4% → 91.7% (+0.24%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit 0124fa7 into main Nov 8, 2026
35 of 36 checks passed
@lpcox
lpcox deleted the copilot/fix-build-smoke-otel-tracing-images branch November 8, 2026 18:06
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.

fix: Build Smoke OTel Tracing images before the timed agent execution step

3 participants