Commit ad1388b
feat(ci): upload crossref-tags baseline artifact on every build
The orchestrator that posts the PR comment used to render every
cross-reference tag in any file the PR touched. A maintenance PR that
touches a thousand files (without changing tags) would still fire on
hundreds of unchanged tags. The right semantics is to subtract tags
that already existed at the PR's merge-base commit.
This change unconditionally uploads the dump output as a plain
`crossref-tags-baseline` artifact (5-day retention, ~55 KB). The
privileged workflow_run job (crossref_review.yml + mathlib-ci's
post-comment.sh) looks up the PR's merge-base SHA via the GitHub
compare API, downloads the matching master baseline, and passes it to
crossref-render via `--baseline-tsv`. Only rows that don't match a
baseline row verbatim are rendered.
PR runs still also emit the privileged `crossref-tags-bridge` artifact
for the workflow_run consumer; non-PR (master / bors / staging) runs
only upload the plain baseline.
Cost: ~2 seconds per non-PR build to run the dump (cached Mathlib build
is already loaded).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 8e5f468 commit ad1388b
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
752 | 755 | | |
753 | | - | |
754 | 756 | | |
755 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
756 | 765 | | |
757 | | - | |
758 | | - | |
| 766 | + | |
| 767 | + | |
759 | 768 | | |
760 | 769 | | |
761 | 770 | | |
| |||
0 commit comments