Skip to content

fix(ci): cap the shipped prepare-release PR body under GitHub's limit - #858

Merged
c-vigo merged 1 commit into
release/0.4.0from
bugfix/857-shipped-prepare-release-body-cap
Jul 4, 2026
Merged

c-vigo merged 1 commit into
release/0.4.0from
bugfix/857-shipped-prepare-release-body-cap

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Forward-fix for the rc3 smoke-test failure (#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 fix(ci): cap release.yml PR-body writes under GitHub's 65536-char limit #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

The scaffolded consumer prepare-release.yml still interpolated the full
frozen changelog section into the draft-PR body uncapped; #812 fixed
only this repo's own workflow. The 0.4.0-rc3 smoke test hit it: the
receiver seeds the consumer CHANGELOG from this repo's ~67k-char 0.4.0
section, and the downstream "Create draft PR to main" died with
"GraphQL: Body is too long". Port the same cap (65000-char budget,
line-boundary truncation, pointer to the release branch's CHANGELOG.md);
small releases inline the whole changelog unchanged.

Inline-YAML shell is not unit-testable; the identical capping logic was
harness-verified against the real 0.4.0 section in #830, and the YAML
de-indentation of the new HEADER string asserted via yaml.safe_load.

Refs: #857
@c-vigo
c-vigo merged commit 4116e17 into release/0.4.0 Jul 4, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/857-shipped-prepare-release-body-cap branch July 4, 2026 22:32
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