Repository navigation
chore(ci): add a daily SIP steward workflow - #46357
Conversation
Numbers new [SIP] issues, adds the sip label, and moves SIPs forward through sip:in-discussion / sip:voting / sip:approved labels as DISCUSS, VOTE and RESULT threads appear on dev@. Approved SIPs are closed with a comment, and approved SIPs referenced by pull requests get sip:in-development. Threads are matched to issues by issue link or SIP number plus title; only ambiguous cases go to Apache LLMAO, and its answer is used only when confident and backed by a verbatim quote. Scheduled runs stay dry runs until SIP_STEWARD_LIVE is true. Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #46357 +/- ##
==========================================
+ Coverage 85.58% 85.74% +0.16%
==========================================
Files 3106 3115 +9
Lines 214408 216623 +2215
Branches 50662 51074 +412
==========================================
+ Hits 183507 185753 +2246
+ Misses 27481 27448 -33
- Partials 3420 3422 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lint Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
aminghadersohi
left a comment
There was a problem hiding this comment.
SIP approval and closing can be triggered by anyone on dev@, and a maintainer can't undo it by reopening.
Nit: No test builds Steward, so the label, close and numbering writes, including the approved close-retry branch, can change without a failing test.
Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
aminghadersohi
left a comment
There was a problem hiding this comment.
The link-matching change now drops correct links for duplicated SIP numbers; the forged RESULT, re-close and numbering threads are still open.
…picks from email body Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
aminghadersohi
left a comment
There was a problem hiding this comment.
The forged RESULT, re-close and numbering threads from the first round are still unanswered.
… matches its subject Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rs, thread discovery - Keep DISCUSS/VOTE/RESULT threads without SIP in the subject when the body links an issue. - Require a matching VOTE thread before a RESULT email can approve a SIP. - Do not retry the approve-close once the approved comment already exists. - Ignore implausible SIP-number outliers when numbering new SIPs. Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
aminghadersohi
left a comment
There was a problem hiding this comment.
No test builds a Steward, so the RESULT-needs-VOTE, reopen and non-SIP-subject checks can each be deleted without sip_steward_test.py noticing.
…lose order and numbering Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
aminghadersohi
left a comment
There was a problem hiding this comment.
No test builds a Steward yet, so the reopen, non-SIP-subject, close-order and RESULT-needs-VOTE checks can each be reverted without sip_steward_test.py noticing.
Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…SIP threads Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ose, add Steward tests Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@aminghadersohi added |
aminghadersohi
left a comment
There was a problem hiding this comment.
The new failed-vote block also stops a legitimate same-subject re-vote from ever being approved.
Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
SUMMARY
Keeping the SIP project board and the
sipissues in step with thedev@list has been a manual chore, and it drifts: duplicate SIP numbers, SIPs missing thesiplabel, and cards sitting in "Pre-discussion" long after their DISCUSS or VOTE threads went out. This adds a daily workflow that does the mechanical parts.Each run of
scripts/sip_steward.py:[SIP] ...with the next free SIP number, and adds thesiplabel to any open SIP-titled issue missing it (the board's Auto-add workflow then puts it on the board). Duplicate numbers are reported, never renumbered automatically, since choosing which issue keeps a number depends ondev@history.[DISCUSS],[VOTE]and[RESULT][VOTE]threads from thedev@archive, matches each to its SIP issue, and moves the issue forward through newsip:in-discussion,sip:votingandsip:approvedlabels. Stages only ever move forward.sip:in-development..github/sip-steward/comments.md, so they can be edited without touching the script. A change triggered by a thread older than 14 days is labeled silently, so the first run doesn't flood long-running SIPs with comments.Matching is deterministic where possible. A link to the issue in the email decides it; otherwise the SIP number in the subject plus a similar title. Only threads with a single weak signal (for example, a SIP that was renumbered after its DISCUSS email went out) go to Apache LLMAO via the existing
LLMAO_KEYsecret. The model's answer is used only when it reports high confidence, picks one of the offered candidates, and quotes evidence that actually appears in the email. Closing an approved SIP needs both a plain "passed" in the result email and the model's agreement. Anything uncertain is reported and left alone.Scheduled runs are dry runs until the repository variable
SIP_STEWARD_LIVEis set totrue. Manual runs have alivecheckbox. The script uses only the standard library, and the job hasissues: writeandcontents: read, nothing else.The SIP issue template's "numbered by a committer upon acceptance" line is updated to match.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A. A dry run against the live repo and archive matched 116 DISCUSS/VOTE/RESULT threads to their issues, nearly all through the issue link in the email, and found two duplicate numbers (SIP-189 on #35820/#35822, SIP-205 on #37789/#38586).
TESTING INSTRUCTIONS
pytest tests/unit_tests/scripts/sip_steward_test.pycovers title parsing and numbering, subject classification, vote outcomes, evidence checks, comment rendering, and matching (including a renumbered SIP whose old number now belongs to another proposal).GITHUB_TOKEN=<read-only token> python scripts/sip_steward.pyprints the report and changes nothing. AddLLMAO_KEYto exercise the model path.liveunchecked and compare the summary with the board, then setSIP_STEWARD_LIVE=true.ADDITIONAL INFORMATION
🤖 Generated with Claude Code