Repository navigation
fix: prebuild OTel smoke images before timed agent execution - #11318
Conversation
Co-authored-by: lpcox <[email protected]>
There was a problem hiding this comment.
🟢 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)
|
✅ Copilot review passed with no inline comments. @copilot Add the |
|
@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]>
Merged |
|
| 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
Cold Docker builds were consuming Smoke OTel Tracing’s 15-minute execution budget, causing intermittent timeouts before Copilot reached tracing validation.
--build-localwith exact prepared-image selection:--image-registry awf-smoke --image-tag "${AWF_SMOKE_IMAGE_TAG:?}" --skip-pull