mirror of
https://github.com/Z3Prover/z3
synced 2026-08-02 12:13:25 +00:00
The `agent` job in the Clang-Tidy Warning Fixer workflow was spending most of its runtime waiting on a full clang-tidy build, then failing before it could complete its safe-output path. This change narrows the prompt so the agent can make a bounded decision from early diagnostics instead of treating the full build as a prerequisite. - **Prompt guardrail** - Add a runtime-budget section to the compiled workflow prompt in `build-warning-fixer.lock.yml`. - Instruct the agent to stop after it has enough diagnostics for one safe fix, or after 15 minutes. - **Build scope reduction** - Switch initial diagnostic collection to a `shell`-only build. - Explicitly avoid waiting for a full `shell + test-z3` clang-tidy build before deciding whether to act. - **Fallback behavior** - Direct the agent to emit `noop` when it cannot reach a safe, validated fix within the time budget. - Keep `test-z3` optional unless it is already available or cheap to build within the remaining budget. Example of the new prompt guidance: ```yaml - Use `cmake --build build --target shell -- -k 0 2>&1 | tee /tmp/gh-aw/agent/clang-tidy-build.log` for initial diagnostic collection. - Do not wait for the full `shell` build to finish before deciding what to do. - Stop once you have enough diagnostics for one small, high-confidence fix, or after 15 minutes. - If no safe fix is ready in that budget, call `noop`. ``` --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| actions | ||
| agents | ||
| aw | ||
| prompts | ||
| scripts | ||
| skills | ||
| workflows | ||
| CI_MIGRATION.md | ||
| CI_TESTING.md | ||
| copilot-instructions.md | ||
| dependabot.yml | ||
| mcp.json | ||