Repository navigation
fix(ci-gate): drop 4-byte characters from status descriptions - #149
hyperpolymath wants to merge 1 commit into
Conversation
GitHub's statuses API refuses a description holding any 4-byte UTF-8
character ("Description doesn't accept 4-byte Unicode"). Required job
names can carry one (e.g. "🔴 GATE: ..."), so the publisher's POST
failed and no CI/gate verdict was posted on resource-algebra#55 and
rsr-template-repo#451.
clip() now drops every code point above U+FFFF before the 140-character
clip. The test fake gh rejects 4-byte descriptions as GitHub does, and
new cases cover failure and pending verdicts for an emoji job name.
Tests: ci-gate 546/0 on jq 1.6, 1.7.1, 1.8.0, 1.8.1 and system jq
(old clip: 544/2); ci-gate-tamper-guard 125/0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDg8YzLVHtwwDfcY3J9
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
|
I'm closing this PR as a duplicate of #144, which fixes the same root cause: GitHub rejects 4-byte Unicode in status descriptions. #144 is the better fix to land:
This branch adds nothing that #144 lacks, apart from trimming one cosmetic leading space after a stripped emoji. Generated by Claude Code |
…o this branch can be pushed without force Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDg8YzLVHtwwDfcY3J9



Root cause
GitHub's statuses API rejects any description that contains a 4-byte UTF-8 character. It returns
gh: Validation failed: Description doesn't accept 4-byte Unicode. Some required job names contain an emoji, for example🔴 GATE: …. For those jobs the publisher's POST failed, so noCI/gateverdict was posted on hyperpolymath/resource-algebra#55 or hyperpolymath/rsr-template-repo#451.Change
scripts/ci-gate-publish.sh:clip()now drops every code point above U+FFFF before it clips the description to 140 characters. Every POST goes throughclip().tests/ci-gate.sh: the fakeghnow rejects 4-byte descriptions, as GitHub does. New tests rename the profile job to🔴 Testand check four things:Test (failure);Proven, by local runs
clip()Not proven
actions.lock.After merge
Re-pin the callers from
4e9e680to the new squash commit:Generated by Claude Code