Skip to content

Post two CI badges on a PR: CPU PR CI and GPU run-slow - #48190

Merged
tarekziade merged 1 commit into
mainfrom
fix/pr-badge-two-streams
Aug 21, 2026
Merged

tarekziade merged 1 commit into
mainfrom
fix/pr-badge-two-streams

Conversation

@tarekziade

@tarekziade tarekziade commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

CI

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.

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.
@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 32499671697:1
Result: success | Jobs: 2 | Tests: 18 | Failures: 0 | Duration: 1m 55s

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@tarekziade
tarekziade added this pull request to the merge queue Aug 21, 2026
Merged via the queue into main with commit e453228 Aug 21, 2026
31 checks passed
@tarekziade
tarekziade deleted the fix/pr-badge-two-streams branch August 21, 2026 16:12
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.
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.

3 participants