Skip to content

ci: load GNU test baseline from main - #722

Open
tuxnode wants to merge 2 commits into
uutils:mainfrom
tuxnode:ci/fix-gnu-test-baseline
Open

tuxnode wants to merge 2 commits into
uutils:mainfrom
tuxnode:ci/fix-gnu-test-baseline

Conversation

@tuxnode

@tuxnode tuxnode commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #721

GNU test baseline was downloaded from the current workflow run, where it does not exist yet. As a result, PRs silently created a new baseline and never detected new GNU test failures.

Changes

  • Download the baseline from the latest successful main push run via gh run download.
  • Fail when no baseline is available instead of creating one automatically.
  • Keep --update-baseline as the explicit way to create/update a baseline.
  • Only upload the baseline artifact from main.

Download the baseline from the latest successful main run instead of the current run. Fail when the baseline is missing so PRs cannot silently re-baseline GNU test failures, and only upload a new baseline from main.
Comment thread .github/workflows/run-gnu-test.yml Resolved
Store the baseline on a machine-maintained gnu-reference branch instead of relying on cross-run artifacts. Pull requests read the baseline at a fixed branch SHA, while main publishes a fresh reference after a successful run. A missing reference only skips comparison during bootstrap; API failures still fail the job.
@tuxnode
tuxnode requested a review from sylvestre November 28, 2026 10:28
@tuxnode

tuxnode commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

@sylvestre If this plan is suitable, it is necessary to create a gnu-reference branch :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: fix GNU test baseline loading invalid

2 participants