Repository navigation
Conversation
👋 Thanks, 🌵! I'm on it.How to work with me
CommandsComment any of these on the PR:
|
…lert tickets from wire and go
Withdrawing approval until 7bcf2c6 is reviewed.
|
/jeffery review |
…the base spec has no list
Withdrawing approval until b98649f is reviewed.
| spec=$RUNNER_TEMP/tickets-$ref.yaml | ||
| curl -fsSL "https://raw.githubusercontent.com/GetStream/protocol/$tag/openapi/v2/serverside-api.yaml" -o "$spec" || return 1 | ||
| yq -e '.info."x-stream-breaking-changes"' "$spec" > /dev/null 2>&1 || return 1 | ||
| { yq -r '(.info as $i | ($i."x-stream-breaking-changes".wire // []) + [$i."x-stream-breaking-change-lines" // {} | to_entries | .[] | select(.value.sdk // [] | any_c(test("^stream-sdk-java "))) | .key]) + (.info."x-stream-breaking-changes".go // []) | .[]' "$spec" && yq -r '.info."x-stream-breaking-change-lines" // {} | to_entries | .[] | .key as $t | (.value.wire // []) + (.value.sdk // [] | map(select(test("^stream-sdk-java ")))) | .[] | $t + "\t" + .' "$spec"; } | sort -u > "$RUNNER_TEMP/tickets-$ref" || return 1 |
There was a problem hiding this comment.
consider: Old tickets named as new when base spec lacks lines map
The guard on line 108 only checks x-stream-breaking-changes, so a base spec with that list but no x-stream-breaking-change-lines yields bare tickets only, while the head spec adds ticket<TAB>line entries and comm -13 | cut -f1 then reports tickets the base already had. Emitting the tab entries only when the lines map exists on both sides keeps the Slack note aligned with breaking_changes.yml, which compares bare tickets in that state.
Useful? React 👍 or 👎. Disagree? Reply here.
There was a problem hiding this comment.
🎉 Approved · round 4
Nice work, 🌵! Nothing blocking is left on b98649ff4e6c. Ship it 🚀
Left open, your call:
- consider: Old tickets named as new when base spec lacks lines map (
.github/workflows/regen.yml:109)
CLA
Description of the pull request
Problem
Regen alerts in #openapi-sdks look like incidents: every post carries a warning sign, and a flaky integration run on the shared test app pings the server-sdk group after one rerun. A breaking hold also does not say which approved tickets caused it.
Solution
stream-sdk-java regen #N is waiting: integration tests failed 3 times. SDK bot needs a human to check.stream-sdk-java regen #N is held as breaking: CHA-7525 (2026-12-02). Label sdk-not-breaking if no customer can hit them, otherwise hold for the next window.With no added ticket it says no approved ticket explains it; if the lookup fails, it points to the PR body and the Breaking changes check.:warning:and "auto-" from every post. Who gets mentioned is unchanged.CONTRIBUTING.md.How to verify
actionlint .github/workflows/regen.ymlreports the same findings as on the base branch, only with shifted line numbers.new_ticketsandheldhelpers ran locally against real protocol specs withghstubbed: openapi-v241.35.1 to openapi-v241.35.2 namesCHA-7525 (2026-12-02), equal specs give the no-ticket line, a failed lookup gives the fallback line, and a base without a ticket list gives three tickets "and 30 more".Note
Low Risk
Workflow-only changes to retry policy, notification copy, and shell helpers for breaking-ticket lookup; no runtime SDK or auth logic.
Overview
The Regenerate workflow is tuned so Slack heads-ups read less like incidents and give humans better context.
Integration flakes: A failed or cancelled Regen integration run is auto-rerouted up to three times (was one) before escalation; messages distinguish "could not rerun" vs three failures vs other conclusions.
Breaking holds: When a PR has
BREAKING CHANGE:footers,hold()now uses newnew_tickets()/held()helpers that diff approved breaking tickets between base and head protocol specs and list up to three Linear links (with overflow text), or explain when no ticket matches or lookup fails.Alerts: Slack posts drop
:warning:and the auto- prefix;@rules are unchanged.Docs:
CONTRIBUTING.mdmatches the three-attempt integration behavior.Reviewed by Cursor Bugbot for commit b98649f. Bugbot is set up for automated code reviews on this repo. Configure here.