fix(test): sync doc-maintainer test with max-turns 15 + prompt rewrite#5587
Conversation
PR #5564 raised the Documentation Maintainer `max-turns` from 8 to 15 (to stop the agent exhausting its maxRuns budget on denied shell turns and surfacing a misleading 403) and rewrote the shell-restriction prompt line, but did not update scripts/ci/doc-maintainer-workflow.test.ts. This left `npm test` red with two stale assertions: - `max-turns: 8` / `GH_AW_MAX_TURNS: 8` -> now 15 - `**Do not run any \`git\` commands**` -> replaced by the new `**Do not use the \`shell\` tool** ...` wording Update the assertions to match the current source workflow and lock. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the doc-maintainer workflow guard test to match the current workflow configuration after #5564 increased the agent turn budget and rewrote the shell-restriction prompt text, restoring npm test on main.
Changes:
- Sync source-workflow assertion from
max-turns: 8tomax-turns: 15. - Sync lock-workflow assertion from
GH_AW_MAX_TURNS: 8toGH_AW_MAX_TURNS: 15. - Update the prompt-string assertion to match the new “do not use the shell tool” wording.
Show a summary per file
| File | Description |
|---|---|
| scripts/ci/doc-maintainer-workflow.test.ts | Updates stale assertions so the test matches the current doc-maintainer workflow source + lock. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Low
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed... |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓 |
|
✅ Contribution Check completed successfully! Contribution guidelines review complete for PR #5587: no important missing items found; no comment needed. |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
✅ Smoke Gemini completed. All facets verified. 💎 |
|
🔌 Smoke Services — All services reachable! ✅ |
|
✅ Smoke Claude passed |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
✅ Build Test Suite completed successfully! |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🚀 Security Guard has started processing this pull request |
Smoke Test: Claude Engine Validation
Overall result: PASS
|
🔬 Smoke Test: Copilot PAT Auth — FAIL
Overall: FAIL — Pre-step outputs ( Auth mode: PAT (COPILOT_GITHUB_TOKEN) | PR author: @lpcox
|
Smoke Test: BYOK Direct Mode ✅Test Results:
Status: PASS — direct BYOK mode (COPILOT_PROVIDER_API_KEY) operational cc @lpcox
|
Smoke Test: Gemini Engine Validation
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.
|
|
✅ GitHub MCP Testing 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 Overall: PASS
|
🔬 Smoke Test: API Proxy OpenTelemetry Tracing
Overall: ✅ All scenarios pass (Scenario 3
|
|
Smoke test
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.
|
Chroot Version Comparison Results
Overall: ❌ Not all tests passed — Python and Node.js versions differ between host and chroot environments.
|
🔬 Smoke Test Results
PR: fix(test): sync doc-maintainer test with max-turns 15 + prompt rewrite Overall: FAIL — pre-step template variables were not substituted; tests 2 & 3 could not be verified.
|
Smoke Test Results
Overall: FAIL —
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Problem
npm testis currently red onmain:scripts/ci/doc-maintainer-workflow.test.tshas 2 failing assertions.PR #5564 (
fix(doc-maintainer): prevent maxRuns 403 from wasted shell turns) raised the Documentation Maintainermax-turnsfrom 8 → 15 and rewrote the shell-restriction prompt line in.github/workflows/doc-maintainer.md(and recompiled the lock), but did not update the test guarding those values.Failing assertions
Fix
Update the three stale assertions to match the current source workflow and lock:
max-turns: 8→max-turns: 15GH_AW_MAX_TURNS: 8→GH_AW_MAX_TURNS: 15**Do not run any \git` commands**→Do not use the `shell` tool (and the `bash` tool is disabled). Do not attempt to run `git`, `npm test`, `ls`, or any other shell command`No production code changes — test-only sync.
Verification
npm testis fully green.