Skip to content

fix(release): disable git-cliff GitHub remote fetch (panics on flaky API)#1428

Merged
JesseTheRobot merged 1 commit into
masterfrom
fix/changelog-no-remote
May 27, 2026
Merged

fix(release): disable git-cliff GitHub remote fetch (panics on flaky API)#1428
JesseTheRobot merged 1 commit into
masterfrom
fix/changelog-no-remote

Conversation

@JesseTheRobot

@JesseTheRobot JesseTheRobot commented May 27, 2026

Copy link
Copy Markdown
Member

Problem

The testnet dry-run failed at Generate changelog with a git-cliff panic:

thread 'main' panicked at git-cliff-core/src/changelog.rs:493:18:
Could not get github metadata: ... error reading a body from connection: end of file before message length reached

git-cliff was fetching every commit + every closed PR from the GitHub API (add_remote_data) and panicked on a flaky/truncated response (exit 101).

Why it's safe to remove

The cliff.toml body template uses only local commit fields (message/scope/breaking/group) — none of the GitHub remote data. The fetch is pure overhead and the sole failure source.

Fix

Stop passing GITHUB_REPO to the changelog step. git-cliff (v2.13.1, pinned by the action) does not fetch remote data without an explicit repo and does not auto-detect it from origin (verified locally: token present + no GITHUB_REPO => zero API requests). The action still injects a token for its own binary download.

Test plan

  • Dry-run --ref fix/changelog-no-remote building release/testnet/3.x: Generate changelog succeeds, no API fetch, publish steps skipped.

Summary by CodeRabbit

  • Chores
    • Updated release workflow to generate changelogs using local commit metadata only, preventing potential API-related failures during changelog generation.

Review Change Stack

…API)

The changelog step panicked (changelog.rs:493 -> exit 101) fetching every
commit + every closed PR from the GitHub API and hitting a truncated response
("end of file before message length reached"). That remote data is unused —
the cliff.toml template references only local commit fields.

Drop GITHUB_REPO from the step env; git-cliff v2.13.1 (pinned by the action)
won't fetch without an explicit repo and doesn't auto-detect from origin
(verified). The action still supplies a token for its own binary download.
@coderabbitai

coderabbitai Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2a9c2192-809e-4a6c-8bf5-7bb55eb3c206

📥 Commits

Reviewing files that changed from the base of the PR and between 435dea4 and 85541d4.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

The release workflow's changelog generation step is updated to remove the GITHUB_REPO environment variable passed to orhun/git-cliff-action. The change disables git-cliff's GitHub remote API calls while maintaining changelog generation from local commit metadata, with updated documentation reflecting this behavior.

Changes

Release Workflow Changelog Update

Layer / File(s) Summary
Git-cliff configuration and comment update
.github/workflows/release.yml
The Generate changelog step removes the GITHUB_REPO environment variable to disable GitHub remote-data fetching and updates the inline comment to document that the changelog is generated using local commit metadata instead, while keeping the output path and tag-pattern configuration intact.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • Irys-xyz/irys#1427: Both PRs modify the release workflow's git-cliff changelog-generation step by adjusting environment and configuration inputs.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: disabling git-cliff's GitHub remote fetching to fix API-related panics, which aligns with the primary objective and the changeset (removing GITHUB_REPO from the release workflow).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/changelog-no-remote

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

@JesseTheRobot JesseTheRobot merged commit f26fa19 into master May 27, 2026
30 of 31 checks passed
@JesseTheRobot JesseTheRobot deleted the fix/changelog-no-remote branch May 27, 2026 14:37
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.

1 participant