Skip to content

fix(action): pick baseline artifact from main and skip expired ones - #288

Merged
BryanFRD merged 1 commit into
mainfrom
fix/285-baseline-artifact-filter
Oct 25, 2026
Merged

BryanFRD merged 1 commit into
mainfrom
fix/285-baseline-artifact-filter

Conversation

@BryanFRD

Copy link
Copy Markdown
Contributor

Baseline lookups now filter the artifacts list to non-expired artifacts from main runs of this repository, instead of taking the newest artifact with that name. Applies to criterion-baseline and hyperfine-baseline.

No tests: the lookup is inline in action.yml with no test seam.

Closes #285

@ferrfleet-interne ferrfleet-interne Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct. Skipping expired artifacts is the real fix: before, per_page=1 could return an expired artifact and the download failed. The branch and repo filters are defensive, since uploads are already gated on refs/heads/main. Inlining ${{ github.repository_id }} into the jq filter is safe because it is numeric.

Nit: the comment above "Find full baseline artifact" still says "the most recent one is always a main baseline". With the new filter that reasoning no longer drives the lookup, so reword it to say the filter selects the newest unexpired main artifact.

@BryanFRD
BryanFRD merged commit 1636eee into main Oct 25, 2026
16 checks passed
@BryanFRD
BryanFRD deleted the fix/285-baseline-artifact-filter branch October 25, 2026 09:30
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.

fix(action): pick the baseline artifact from main and skip expired ones

1 participant