3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-08-02 12:13:25 +00:00
z3/.github/workflows
Copilot 022a6505ae
Precompute clang-tidy diagnostics in build-warning-fixer and add issue-context diff handoff (#10336)
This updates the `build-warning-fixer` agentic workflow to front-load
compilation/diagnostic collection before agent execution, reducing
repeated setup work in agent mode. It also improves issue-triggered runs
by requiring explicit git diff output so follow-on PR authoring has
directly usable patches.

- **Pre-agent compile + diagnostics collection**
- Added workflow `steps` in `build-warning-fixer.md` to run checkout,
tool install, CMake configure/build, and diagnostic extraction before
the agent prompt executes.
  - Persisted structured artifacts under `/tmp/gh-aw/agent/`:
    - `prebuild-status.txt`
    - `clang-tidy-configure.log`
    - `clang-tidy-build.log`
    - `clang-tidy-diagnostics.txt`

- **Prompt flow changed to consume prebuilt context**
- Reworked task instructions from “build first” to “inspect prebuild
outputs first.”
- Kept rebuild/fix loop for validated, conservative edits after code
changes.

- **Issue-context PR handoff improvement**
- Added explicit instruction for issue-dispatched runs
(`aw_context.item_type == "issue"`) to include:
    - `git diff --stat`
    - full `git diff` in fenced `diff` output
  - This makes proposed changes directly transferable into PR creation.

- **Workflow metadata refresh**
  - Updated checkout action reference to `actions/checkout@v7.0.1`.
- Recompiled `build-warning-fixer.lock.yml` to reflect source workflow
updates.

```yaml
- name: Prebuild and collect clang diagnostics
  run: |
    CC=clang CXX=clang++ cmake -GNinja -S . -B build \
      -DCMAKE_BUILD_TYPE=Debug \
      -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
      -DCMAKE_CXX_CLANG_TIDY=clang-tidy \
      2>&1 | tee /tmp/gh-aw/agent/clang-tidy-configure.log
    cmake --build build --target shell test-z3 -k 0 \
      2>&1 | tee /tmp/gh-aw/agent/clang-tidy-build.log
    grep -nE 'warning:|error:|clang-tidy' /tmp/gh-aw/agent/clang-tidy-build.log \
      > /tmp/gh-aw/agent/clang-tidy-diagnostics.txt || true
```

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-07-31 20:25:24 -07:00
..
shared Upgrade agentic workflows to gh-aw v0.36.0 (#8122) 2026-01-08 11:50:35 -08:00
a3-python.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
a3-python.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
academic-citation-tracker.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
academic-citation-tracker.md Fix agentic workflow auth by using Actions token-based Copilot inference 2026-07-28 02:22:11 -07:00
agentics-maintenance.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
android-build.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
api-coherence-checker.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
api-coherence-checker.md Fix agentic workflow auth by using Actions token-based Copilot inference 2026-07-28 02:22:11 -07:00
build-warning-fixer.lock.yml Precompute clang-tidy diagnostics in build-warning-fixer and add issue-context diff handoff (#10336) 2026-07-31 20:25:24 -07:00
build-warning-fixer.md Precompute clang-tidy diagnostics in build-warning-fixer and add issue-context diff handoff (#10336) 2026-07-31 20:25:24 -07:00
build-z3-cache.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
ci.yml Remove z3_tptp5 example build steps from GitHub Actions 2026-07-29 15:53:08 -07:00
code-conventions-analyzer.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
code-conventions-analyzer.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
code-simplifier.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
code-simplifier.md Fix Code Simplifier agent authentication in GitHub Actions (#10222) 2026-07-24 19:29:54 -07:00
compare-stats-anomaly-reporter.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
compare-stats-anomaly-reporter.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
copilot-setup-steps.yml update aw to current version 2026-01-08 18:15:03 +00:00
coverage.yml Remove z3_tptp5 example build steps from GitHub Actions 2026-07-29 15:53:08 -07:00
cross-build.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
csa-analysis.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
csa-analysis.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
docs.yml Bump actions/setup-node from 6.4.0 to 7.0.0 (#10313) 2026-07-30 15:18:42 -07:00
fstar-master-build.yml CI: run FStar test suite in fstar-master-build workflow 2026-07-28 13:47:13 -07:00
issue-backlog-processor.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
issue-backlog-processor.md Fix agentic workflow auth by using Actions token-based Copilot inference 2026-07-28 02:22:11 -07:00
mark-prs-ready-for-review.yml Bump actions/github-script from 8.0.0 to 9.0.0 (#9296) 2026-04-19 16:49:03 +02:00
memory-safety-report.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
memory-safety-report.md Fix agentic workflow auth by using Actions token-based Copilot inference 2026-07-28 02:22:11 -07:00
memory-safety.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
msvc-static-build-clang-cl.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
msvc-static-build.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
nightly-validation.yml Fix nightly-validation macOS wheel install by rewriting 13_3 platform tag to 13_0 2026-07-28 01:25:42 -07:00
nightly.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
ocaml.yaml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
ostrich-benchmark.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
ostrich-benchmark.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
pyodide-pypi.yml Bump pypa/cibuildwheel from 4.1.0 to 4.1.1 (#10312) 2026-07-30 15:14:08 -07:00
release-notes-updater.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
release-notes-updater.md Fix release-notes-updater: add copilot-requests: write permission (#10116) 2026-07-13 17:13:31 -07:00
release.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
smtlib-benchmark-finder.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
smtlib-benchmark-finder.md Fix agentic workflow auth by using Actions token-based Copilot inference 2026-07-28 02:22:11 -07:00
specbot-crash-analyzer.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
specbot-crash-analyzer.md Fix agentic workflow auth by using Actions token-based Copilot inference 2026-07-28 02:22:11 -07:00
tactic-to-simplifier.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
tactic-to-simplifier.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
tptp-benchmark.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
tptp-benchmark.md Fix agentic workflow auth by using Actions token-based Copilot inference 2026-07-28 02:22:11 -07:00
wasm-release.yml Bump actions/setup-node from 6.4.0 to 7.0.0 (#10313) 2026-07-30 15:18:42 -07:00
wasm.yml Bump actions/setup-node from 6.4.0 to 7.0.0 (#10313) 2026-07-30 15:18:42 -07:00
Windows.yml ci: add MinGW build/test job to Windows.yml (#10211) 2026-07-24 13:11:08 -07:00
wip.yml Bump actions/checkout from 7.0.0 to 7.0.1 (#10208) 2026-07-23 19:17:49 -07:00
workflow-suggestion-agent.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
workflow-suggestion-agent.md Fix agentic workflow auth by using Actions token-based Copilot inference 2026-07-28 02:22:11 -07:00
zipt-code-reviewer.lock.yml Recompile agentic workflow lockfiles and refresh pinned AW metadata (#10315) 2026-07-30 16:43:39 -07:00
zipt-code-reviewer.md recompile workflows 2026-07-28 01:05:54 -07:00