Repair test-report tooling#9321
Merged
Merged
Conversation
The Test Report workflow has been broken since the CI migration to pixi (dask#9276): - Run the report generation through a new, self-contained `test-report` pixi environment: `pixi run test-report dask/distributed`. Delete the unused conda environment file. - Adapt job/artifact name parsing in test_report.py to the names produced by the post-pixi tests.yaml, in both dask/distributed and dask/dask. Runs older than 2026-06-04 cannot be parsed and are skipped. - Replace the unmaintained altair_saver with altair>=6 native HTML output. - Fix regression introduced by the f-string conversion in dask#9245 which collapsed all tests into a single unreadable chart. - Name the local artifact caches after the repo (e.g. test_report_dask__distributed) so that reports for multiple repos can be generated from the same working directory. - Fall back to `gh auth token` when GITHUB_TOKEN is not set. - On PRs, run the workflow only when the `test-report` label is set; upload the reports and databases as workflow artifacts instead of deploying to GitHub Pages. - Fix actions/cache usage so that the database cache is actually updated on every run (cache keys are immutable). - Skip in-progress and expired runs/artifacts to avoid poisoning the cache. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The explicit permissions block removes the default actions:read scope, which is needed to list workflow runs and download artifacts. The PR run passed regardless because fork PR tokens are read-only on all scopes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 40 files ±0 40 suites ±0 14h 41m 23s ⏱️ - 16m 20s Results for commit 69f7224. ± Comparison against base commit 0f72f8f. ♻️ This comment has been updated with latest results. |
Each job gets strictly the permissions it needs: generate gets actions:read (plus contents:read for checkout), deploy gets contents:write. The report is handed over between the jobs as a workflow artifact, which also becomes always available for debugging; the databases are only uploaded on PRs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Public repositories are implicitly readable by the workflow token even when the permissions block sets contents to none. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
e.g. test_report.dask__distributed.db. This simplifies .gitignore and the workflow glob patterns, which previously had to avoid matching test_report.html. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Test Report workflow (runs) has been failing for a very long time. This PR resurrects it and migrates it to pixi.
New feature:
ghCLI fallbackWhen
GITHUB_TOKENis not set, the token is read fromgh auth token. This makes it easier to run the tool locally.Follow-ups