Repository navigation
fix(ci): cap release.yml PR-body writes under GitHub's 65536-char limit - #830
Merged
Merged
Conversation
The finalize-path "Refresh release PR body from finalized changelog" step and the rollback-path "Restore release PR body" step rebuilt the PR body from the full changelog section uncapped; #812 fixed only prepare-release.yml. The 0.4.0 section measures ~66.8k chars > 65536, so the first finalize-release run would have crashed mid-finalize on "GraphQL: Body is too long" and triggered rollback. Port the same cap: 65000-char budget, line-boundary truncation, note pointing to the full CHANGELOG.md on the release branch; small releases inline unchanged. Inline-YAML shell is not unit-testable, so TDD is skipped; the capping logic was verified with a standalone harness against the real 0.4.0 section (66794-char section -> 64869-char body ending in the truncation note; sub-threshold input passes through byte-identical) and the YAML de-indentation of the new HEADER strings was asserted via safe_load. Refs: #810
This was referenced Jul 4, 2026
Closed
c-vigo
added a commit
that referenced
this pull request
Jul 4, 2026
…#858) ## Summary Forward-fix for the rc3 smoke-test failure ([#857](#857), diagnosis posted there). rc3 convergence signal: consumer CI green inside the rc3 image, **deploy PR merged** (validating #853 + #856), downstream release cycle started — and died at `Create draft PR to main` with `GraphQL: Body is too long`. It's the #810 bug shipped to consumers: #812 capped only this repo's own `prepare-release.yml`; the scaffolded copy (`assets/workspace/.github/workflows/prepare-release.yml`) still interpolated the full changelog section uncapped, and the smoke-test repo's CHANGELOG is seeded from our ~67k-char 0.4.0 section. This ports the identical cap (65,000-char budget, line-boundary truncation, pointer to the release branch's full `CHANGELOG.md`). `release-core.yml` (shipped) has no PR-body write, so this is the only consumer-side site. The deploy sync carries the fixed workflow to the smoke-test repo on the next candidate (rc4), which should complete the downstream cycle. ## Verification - Identical cap logic harness-verified against the real 0.4.0 section in #830 (66,794 → 64,869 chars, line-boundary truncation; sub-threshold passthrough byte-identical). - YAML de-indentation of the new `HEADER` asserted via `yaml.safe_load` (no indent leak). - `just precommit` (full suite, all files): green, exit 0. - Changelog entry added to the open `## [0.4.0] - TBD` section. Refs: #857
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.
Summary
#812 capped the PR body only in
prepare-release.yml. Two more sites inrelease.ymlrebuild the release-PR body from the full changelog section uncapped:Refresh release PR body from finalized changelog(blocking). The 0.4.0 section measures ~66.8k chars > GitHub's 65,536 limit, so the firstfinalize-release 0.4.0run would have crashed mid-finalize onGraphQL: Body is too longand triggered rollback.Restore release PR body from pre-finalization CHANGELOG(continue-on-error; overflow would leave the body unrestored).Both steps now apply the same cap as #812: 65,000-char budget, truncation at a line boundary, and a note pointing to the full
CHANGELOG.mdon the release branch. Small releases inline the whole changelog unchanged.Lands on
release/0.4.0(before the RC dispatch) so the candidate tests the exact tree that ships; reachesdev/mainvia the promote merge + sync-back. Changelog entry added to the open## [0.4.0] - TBDsection (the #810 entry, extended).Follow-up candidate (not this PR): the cap logic now exists in three inline copies (
prepare-release.yml+ 2×release.yml) — worth extracting into a shared.github/scripts/helper next cycle.Verification
HEADERstrings asserted viayaml.safe_load(no indent leak into the string literals).just precommit(full suite, all files): green, exit 0.uv run pytest -k release(10 passed) andtests/test_workflow_cachix.py(4 passed).Refs: #810