3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-08-09 23:42:21 +00:00
z3/.github/workflows
Copilot 068edf6a46
Switch clang-tidy warning fixer from artifact downloads to job logs (#10354)
The clang-tidy warning fixer depended on
`download_workflow_run_artifact` to fetch the warning report from the
producer workflow. That path is blocked here, so the fixer could
discover the run but not access the warning contents it needs to
analyze.

- **Fixer input path**
- Update
`/home/runner/work/z3/z3/.github/workflows/build-warning-fixer.md` to
consume the triggering run via `list_workflow_jobs` + `get_job_logs`
  - Remove the artifact-download flow from the workflow instructions
- Parse warning and status data from the build job log, with a grep
fallback if the structured summary is missing

- **Producer log contract**
- Update
`/home/runner/work/z3/z3/.github/workflows/clang-tidy-warning-report.yml`
to emit a stable, marker-delimited summary block at the end of the build
job log
- Include both build status and the extracted warning subset in that
block
- Leave artifact upload in place as optional output rather than a
required dependency

- **Workflow behavior**
- Make the fixer operate entirely from Actions logs, avoiding cross-run
artifact retrieval as part of its primary path
- Preserve the existing warning extraction model while shifting the
producer/consumer contract to log output

Example of the emitted log shape:

```text
CLANG_TIDY_WARNING_REPORT_BEGIN
CLANG_TIDY_STATUS_BEGIN
configure_status=0
build_status=0
CLANG_TIDY_STATUS_END
CLANG_TIDY_WARNINGS_BEGIN
123: warning: ...
CLANG_TIDY_WARNINGS_END
CLANG_TIDY_WARNING_REPORT_END
```

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-08-01 14:35:53 -07:00
..
shared
a3-python.lock.yml
a3-python.md
academic-citation-tracker.lock.yml
academic-citation-tracker.md
agentics-maintenance.yml
android-build.yml
api-coherence-checker.lock.yml
api-coherence-checker.md
build-warning-fixer.lock.yml
build-warning-fixer.md
build-z3-cache.yml
ci.yml
clang-tidy-warning-report.yml
code-conventions-analyzer.lock.yml
code-conventions-analyzer.md
code-simplifier.lock.yml
code-simplifier.md
compare-stats-anomaly-reporter.lock.yml
compare-stats-anomaly-reporter.md
copilot-setup-steps.yml
coverage.yml
cross-build.yml
csa-analysis.lock.yml
csa-analysis.md
docs.yml
fstar-master-build.yml
issue-backlog-processor.lock.yml
issue-backlog-processor.md
mark-prs-ready-for-review.yml
memory-safety-report.lock.yml
memory-safety-report.md
memory-safety.yml
msvc-static-build-clang-cl.yml
msvc-static-build.yml
nightly-validation.yml
nightly.yml
ocaml.yaml
ostrich-benchmark.lock.yml
ostrich-benchmark.md
pyodide-pypi.yml
release-notes-updater.lock.yml
release-notes-updater.md
release.yml
smtlib-benchmark-finder.lock.yml
smtlib-benchmark-finder.md
specbot-crash-analyzer.lock.yml
specbot-crash-analyzer.md
tactic-to-simplifier.lock.yml
tactic-to-simplifier.md
tptp-benchmark.lock.yml
tptp-benchmark.md
wasm-release.yml
wasm.yml
Windows.yml
wip.yml
workflow-suggestion-agent.lock.yml
workflow-suggestion-agent.md
zipt-code-reviewer.lock.yml
zipt-code-reviewer.md