fix(ci): fix update-protos workflow failing on large generated files#940
Conversation
…orkflow The file-by-file upload via gh api PUT broke on large generated files (validate_pb.ts) with "Argument list too long", blocking proto updates for 5+ days. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
📝 WalkthroughWalkthroughThe ChangesWorkflow env scoping fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Write base64 content to a temp file and use gh api's @file syntax instead of passing it as a CLI argument, which fails on large generated files like validate_pb.ts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
GitHub Contents API rejects base64 with newlines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The file-by-file upload via gh api PUT fails on large generated files. Use git add/commit/push instead, scoped to the known proto outputs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
X-Test Failure Report |
X-Test Failure Report |
X-Test Failure Report |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
X-Test Failure Report |



Summary
update-protos.yamlworkflow has been failing for 5+ days because it uploads each generated file viagh api --method PUT(GitHub Contents API), which passes base64-encoded content as a CLI argument. Large files likevalidate_pb.tsexceed the shell's argument length limit ("Argument list too long").git add -A && git commit && git push, which has no file size constraints.protocol/go/v0.33.1which includes the new search/sort/filter types needed for DSPX-312.The error
https://github.com/opentdf/web-sdk/actions/runs/27709887043/job/81967942871
Test Run
https://github.com/opentdf/web-sdk/actions/runs/27710777426
Summary by CodeRabbit