Repository navigation
Post two CI badges on a PR: CPU PR CI and GPU run-slow - #48190
Merged
Merged
Conversation
A PR accumulates two independent CI streams -- regular PR CI on CPU, and the GPU runs a maintainer asks for with a `run-slow: <models>` comment. A single badge had to pick one, and picked whichever ran last, so a PR could carry a red badge sourced from a run-slow run beside a dashboard link explaining a different run. PR #48171 read "7 errors" against a dashboard reporting none. Emit one badge per stream, side by side on one line, each asking the exporter for its own stream via the new ?event= parameter. Both are always emitted. This workflow only fires on PR CI completion, so a GPU badge written only when a run-slow run already existed would stay missing after a run-slow that no push follows -- exactly the #48171 case. The badge SVGs are live, so the URLs written here pick up new runs of their stream with no rewrite, and the exporter renders the GPU badge as "not run" until there is something to report. Requires the ?event= support in huggingface/transformers-ci; without it both URLs fall back to the same unfiltered badge, which is today's behaviour.
Contributor
CI recapDashboard: View test results in Grafana |
ydshieh
approved these changes
Aug 21, 2026
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
sbucaille
pushed a commit
to sbucaille/transformers
that referenced
this pull request
Sep 16, 2026
…8190) A PR accumulates two independent CI streams -- regular PR CI on CPU, and the GPU runs a maintainer asks for with a `run-slow: <models>` comment. A single badge had to pick one, and picked whichever ran last, so a PR could carry a red badge sourced from a run-slow run beside a dashboard link explaining a different run. PR huggingface#48171 read "7 errors" against a dashboard reporting none. Emit one badge per stream, side by side on one line, each asking the exporter for its own stream via the new ?event= parameter. Both are always emitted. This workflow only fires on PR CI completion, so a GPU badge written only when a run-slow run already existed would stay missing after a run-slow that no push follows -- exactly the huggingface#48171 case. The badge SVGs are live, so the URLs written here pick up new runs of their stream with no rewrite, and the exporter renders the GPU badge as "not run" until there is something to report. Requires the ?event= support in huggingface/transformers-ci; without it both URLs fall back to the same unfiltered badge, which is today's behaviour.
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.
What does this PR do?
A PR accumulates two independent CI streams -- regular PR CI on CPU, and the GPU runs a maintainer asks for with a
run-slow: <models>comment. A single badge had to pick one, and picked whichever ran last, so a PR could carry a red badge sourced from a run-slow run beside a dashboard link explaining a different run. PR #48171 read "7 errors" against a dashboard reporting none.Emit one badge per stream, side by side on one line, each asking the exporter for its own stream via the new ?event= parameter.
Both are always emitted. This workflow only fires on PR CI completion, so a GPU badge written only when a run-slow run already existed would stay missing after a run-slow that no push follows -- exactly the #48171 case. The badge SVGs are live, so the URLs written here pick up new runs of their stream with no rewrite, and the exporter renders the GPU badge as "not run" until there is something to report.
Requires the ?event= support in huggingface/transformers-ci; without it both URLs fall back to the same unfiltered badge, which is today's behaviour.