fix: repair regen workflow (9/9 failing runs) - #1
Merged
thibaultleouay merged 3 commits intoAug 4, 2026
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0173tbY2QAvy8Sw2uVuHV4SP
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0173tbY2QAvy8Sw2uVuHV4SP
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0173tbY2QAvy8Sw2uVuHV4SP
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.
Problem
regen.ymlhas failed 9 out of 9 scheduled runs, every Monday since 2026-06-01. The repo is still on its initial commit, so the vendored_gentree has not moved since May while the API has.Two independent bugs:
1. BSD
sedon a GNU runner. The import-rewrite block usedsed -i '' -e .... Onubuntu-latest, GNU sed reads''as a filename:2. Version discovery returned empty. The workflow scraped a
Location:redirect header withcurl -sI. It resolved to an empty string, and because empty!=the current pin, the no-op guard did not fire — the workflow proceeded tosedthe pin to""and regenerate with a blank version.What this changes
Vendoring stays. The BSR pip package cannot be used as a dependency: it installs as top-level
openstatus/, which collides with this SDK's own publicopenstatuspackage — the exact reasonregen.shvendors under_genwith rewritten imports.sed -i ''(BSD)sed -i(GNU)curl -sIscraping a redirect headerbuf registry module commit resolvereadonly BUF_SCHEMA_COMMITinregen.sh, duplicated intoVERSION$1, written toVERSIONonly::error::+exit 1mainlabelopenstatusHQ/sdk-pythonFlow
The commit is resolved at run time and written to
VERSIONby the same command that writes the code, so the marker cannot disagree with the tree. There is no value to seed by hand — which is what made the first fork test a silent no-op.Verification
regen.shruns to completion for the first time:It surfaced the accumulated drift: 31 files changed, 516 insertions, 204 deletions, including the
optionalpresence markers ondescription/active/publicin the monitor.pyistubs.Dispatched end to end in a fork — the workflow resolved the commit, regenerated, bumped
0.1.0→0.1.1, and opened a PR.Notes for review
buf registry module commit resolveneeds no authentication for this public module.scripts/regen.shwith no argument exitsusage: regen.sh <schema-commit>rather than generating with a blank marker.SDK_BOT_TOKENsecret. The workflow falls back togithub.tokenwhen the secret is absent, but PRs from that token do not triggeron: pull_request, soci.ymlwill not run on them.