Skip to content

fix: diagnose bounded query runtime smokes - #6801

Merged
lpcox merged 11 commits into
mainfrom
fix-bounded-query-runtime-smokes
Jul 31, 2026
Merged

lpcox merged 11 commits into
mainfrom
fix-bounded-query-runtime-smokes

Conversation

@lpcox

@lpcox lpcox commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • stop generated local-build workflows from pre-pulling unreleased AWF images
  • apply the correction to both bounded-query runtime smoke locks
  • surface bounded-query broker logs when it exits during Compose startup
  • add regression coverage for both workflow postprocessing and broker diagnostics

Failure analysis

  • sbx: generated image download attempted unavailable 0.28.0 AWF manifests before the local build
  • gVisor: deterministic runtime setup succeeded, but the bounded-query broker exited during startup and AWF discarded its actionable container log

Validation

  • focused tests passed (19 tests)
  • type-check passed

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Copilot AI review requested due to automatic review settings July 31, 2026 16:54
// Replace standalone --skip-pull with --build-local.
export const standaloneSkipPullRegex = /--skip-pull(?:\s+--build-local)?/g;
export const localAwfImageDownloadRegex =
/\s+ghcr\.io\/github\/gh-aw-firewall\/(?:agent|api-proxy|squid):[0-9.]+/g;
@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 98.89% 98.89% ➡️ +0.00%
Statements 98.81% 98.81% ➡️ +0.00%
Functions 99.20% 99.20% ➡️ +0.00%
Branches 95.27% 95.26% ➡️ -0.01%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/container-lifecycle.ts 100.0% → 98.7% (-1.30%) 100.0% → 98.8% (-1.23%)
src/log-directory-setup.ts 96.2% → 100.0% (+3.78%) 96.3% → 100.0% (+3.71%)

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

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.

Pull request overview

Improves bounded-query smoke reliability and startup diagnostics.

Changes:

  • Prevents pre-pulling locally built AWF images.
  • Logs bounded-query broker failures during startup.
  • Adds regression coverage and updates smoke locks.
Show a summary per file
File Description
src/container-lifecycle.ts Surfaces broker logs on startup failure.
src/container-lifecycle-retry-timeout.test.ts Tests first-attempt broker failure.
scripts/ci/workflow-patch-patterns.ts Adds AWF image-removal pattern.
scripts/ci/workflow-patch-patterns.test.ts Tests image argument removal.
scripts/ci/apply-general-workflow-patches.ts Applies image removal to local builds.
.github/workflows/smoke-bounded-queries-sbx.lock.yml Removes unreleased AWF pre-pulls.
.github/workflows/smoke-bounded-queries-gvisor.lock.yml Removes unreleased AWF pre-pulls.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 7/7 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment on lines +35 to +36
export const localAwfImageDownloadRegex =
/\s+ghcr\.io\/github\/gh-aw-firewall\/(?:agent|api-proxy|squid):[0-9.]+/g;
Comment on lines +144 to +147
if (await didContainerFailStartup(retryErrorMsg, BOUNDED_QUERY_BROKER_CONTAINER_NAME)) {
await logContainerLogsToStderr(BOUNDED_QUERY_BROKER_CONTAINER_NAME);
throw retryError;
}
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

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

lpcox added 9 commits July 31, 2026 10:11
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6923ed6e-0ce2-4fa9-aee9-ccff99b90b90
@lpcox
lpcox merged commit 07c69bc into main Jul 31, 2026
30 of 32 checks passed
@lpcox
lpcox deleted the fix-bounded-query-runtime-smokes branch July 31, 2026 20:37
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.

3 participants