Skip to content

CI: Log GitHub API diagnostics to stderr - #47635

Merged
tarekziade merged 1 commit into
mainfrom
tarek-fix-stdout-noise
Jul 30, 2026
Merged

tarekziade merged 1 commit into
mainfrom
tarek-fix-stdout-noise

Conversation

@tarekziade

Copy link
Copy Markdown
Collaborator

What happened?

The "Check new failures / process bad commit reports" job in PR comment CI was broken by #47474

That job captures stdout from utils/process_bad_commit_report.py into REPORT_TEXT, then embeds REPORT_TEXT into a Slack JSON payload. The GitHub API helper was printing token/rate-limit diagnostics to stdout, so REPORT_TEXT contained extra raw multi-line diagnostic text before the actual report.

When the workflow interpolated that into:

  "text": "${{ env.REPORT_TEXT }}"

The raw newlines made the Slack payload invalid JSON. The Slack action failed with:

passed in payload was invalid JSON
Error: Need to provide valid JSON payload

What does this PR do?

Route GitHub API diagnostic messages through logging to stderr instead of stdout.

This keeps rate-limit/token diagnostics visible in CI logs while avoiding pollution of stdout values captured by workflow steps, such as Slack report payloads.

@tarekziade tarekziade self-assigned this Jul 30, 2026
@tarekziade

Copy link
Copy Markdown
Collaborator Author

run-slow: longt5

@github-actions

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/longt5"]
quantizations: []

@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 requested review from vasqu and ydshieh July 30, 2026 06:51
@github-actions

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 8c02a9d5 workflow commit (merge commit)
PR e9f88f32 branch commit (from PR)
main 6034e90c base commit (on main)

Model CI Report

❌ 1 new failed tests from this PR 😭

  • longt5:
    tests/models/longt5/test_modeling_longt5.py::LongT5ModelIntegrationTests::test_summarization (❌ ⟹ ❌)

@tarekziade
tarekziade enabled auto-merge July 30, 2026 07:32

@ydshieh ydshieh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you

@tarekziade
tarekziade added this pull request to the merge queue Jul 30, 2026
Merged via the queue into main with commit 85c307a Jul 30, 2026
36 checks passed
@tarekziade
tarekziade deleted the tarek-fix-stdout-noise branch July 30, 2026 08:10
stevhliu pushed a commit to stevhliu/transformers that referenced this pull request Jul 30, 2026
Sainava pushed a commit to Sainava/Sai-transformers that referenced this pull request Aug 3, 2026
ydshieh added a commit that referenced this pull request Aug 28, 2026
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