test: fix failing npm test after gh-aw v0.81.0 recompile#5450
Conversation
The v0.81.0 recompile (#5447) bumped the setup action to v0.81.0 (SHA 3c7f3b6f), github-mcp-server to v1.4.0, and changed the offline COPILOT_DUMMY_BYOK placeholder to 'dummy-byok-key-for-offline-mode'. Update the stale assertions in the security-guard, export-audit, and test-coverage-improver workflow tests to match. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
Updates CI workflow unit tests to align with the gh-aw v0.81.0 recompiled workflow lock files, fixing failures caused by stale version/token assertions.
Changes:
- Update pinned
github/gh-aw-actions/setupassertion to the v0.81.0 commit SHA in relevant workflow tests. - Update
ghcr.io/github/github-mcp-serverimage assertion fromv1.3.0tov1.4.0. - Update
COPILOT_DUMMY_BYOKassertion in the security-guard workflow test to expect the new offline placeholder value.
Show a summary per file
| File | Description |
|---|---|
| scripts/ci/test-coverage-improver-workflow.test.ts | Updates lock-file assertions for setup action pin and github-mcp-server image version. |
| scripts/ci/security-guard-workflow.test.ts | Updates lock-file assertions for COPILOT_DUMMY_BYOK placeholder and pinned dependency versions. |
| scripts/ci/export-audit-workflow.test.ts | Updates lock-file assertion for github-mcp-server image version. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 0
|
✅ Smoke Claude passed |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓 |
|
✅ Contribution Check completed successfully! Contribution guidelines review complete: PR #5450 follows the applicable CONTRIBUTING.md requirements; no comment needed. |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
🚀 Security Guard has started processing this pull request |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Build Test Suite completed successfully! |
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓 |
|
🔌 Smoke Services — All services reachable! ✅ |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
|
✅ Smoke Gemini completed. All facets verified. 💎 |
🔬 Smoke Test Results
Overall: FAIL PR: test: fix failing npm test after gh-aw v0.81.0 recompile — author @lpcox
|
🔥 Smoke Test: Copilot PAT — PASS
Overall: PASS · Auth mode: PAT (COPILOT_GITHUB_TOKEN) /cc @lpcox
|
🧪 Chroot Version Comparison Results
Overall: ❌ Not all tests passed — Python and Node.js versions differ between host and chroot environment.
|
🔬 Smoke Test: API Proxy OpenTelemetry Tracing
All scenarios pass. OTEL tracing integration is healthy on this branch.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test Results — Services Connectivity
Overall: ❌ FAIL
|
Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra
|
|
Smoke Test Results:
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) Overall: PASS
|
Smoke Test: Claude Engine
Overall result: PASS
|
|
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
✅ Smoke Test: Copilot BYOK (Direct Mode) — PASSTests:
Mode: Direct BYOK via COPILOT_PROVIDER_API_KEY All systems nominal.
|
Gemini Engine Smoke Test Results
Overall status: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
Summary
Fixes the failing
npm testcaused by stale version assertions in the CI workflow tests. The v0.81.0 recompile (#5447) bumped pinned versions, but three workflow tests still asserted the old values.Failing tests fixed
scripts/ci/security-guard-workflow.test.tsscripts/ci/export-audit-workflow.test.tsscripts/ci/test-coverage-improver-workflow.test.tsChanges
Updated the stale assertions to match the recompiled lock files:
github/gh-aw-actions/setup:@c20f9e75… # v0.80.6→@3c7f3b6f423dd721e2f115b7c8fda65287e1f137 # v0.81.0ghcr.io/github/github-mcp-server:v1.3.0→v1.4.0COPILOT_DUMMY_BYOK: now the offline placeholderdummy-byok-key-for-offline-mode(gh-aw v0.81.0 changed this; it is distinct from AWF's ownCOPILOT_PLACEHOLDER_TOKEN). The assertions were flipped, keeping a meaningful negative check that the oldghu_placeholder is gone.Verification
npm testis green apart fromsrc/services/agent-volumes-mounts.test.ts, a pre-existing flaky test (passes in isolation; fails only under full-suite parallelism due to env leakage) — unrelated to this change.tscbuild passes.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com