Skip to content

chore(ci): add a daily SIP steward workflow - #46357

Merged
sadpandajoe merged 13 commits into
masterfrom
chore/sip-steward-workflow
Nov 27, 2026
Merged

sadpandajoe merged 13 commits into
masterfrom
chore/sip-steward-workflow

Conversation

@rusackas

Copy link
Copy Markdown
Member

SUMMARY

Keeping the SIP project board and the sip issues in step with the dev@ list has been a manual chore, and it drifts: duplicate SIP numbers, SIPs missing the sip label, 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:

  • Numbers open issues titled [SIP] ... with the next free SIP number, and adds the sip label 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 on dev@ history.
  • Tracks the mailing list: reads [DISCUSS], [VOTE] and [RESULT][VOTE] threads from the dev@ archive, matches each to its SIP issue, and moves the issue forward through new sip:in-discussion, sip:voting and sip:approved labels. Stages only ever move forward.
  • Closes approved SIPs with a congratulatory comment linking the vote and result threads, and labels approved SIPs that a pull request references with sip:in-development.
  • Comments on each stage change with what the author should do next. The stock comments live in .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.
  • Reports everything it did, the board moves to make by hand (the workflow token can't edit the org-level board), and anything it wasn't confident about, in the run summary.

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_KEY secret. 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_LIVE is set to true. Manual runs have a live checkbox. The script uses only the standard library, and the job has issues: write and contents: 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.py covers 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).
  • Dry run locally: GITHUB_TOKEN=<read-only token> python scripts/sip_steward.py prints the report and changes nothing. Add LLMAO_KEY to exercise the model path.
  • After merging, run the workflow manually with live unchecked and compare the summary with the board, then set SIP_STEWARD_LIVE=true.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added github_actions Pull requests that update GitHub Actions code risk:ci-script PR modifies scripts that execute in CI (supply chain risk) preset-io labels Nov 19, 2026
Comment thread scripts/sip_steward.py Resolved
@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; an open SIP already marked approved now retries the close and comment after an interrupted transition.

Assessed commit: b0799b58acfa

@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.74%. Comparing base (3565acb) to head (b0799b5).
⚠️ Report is 173 commits behind head on master.

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     
Flag Coverage Δ
hive 33.81% <ø> (-0.19%) ⬇️
mysql 51.61% <ø> (-0.04%) ⬇️
postgres 51.64% <ø> (-0.04%) ⬇️
presto 35.50% <ø> (-0.18%) ⬇️
python 88.49% <ø> (+0.24%) ⬆️
sqlite 51.31% <ø> (-0.05%) ⬇️
unit 83.99% <ø> (+0.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

rusackas and others added 2 commits November 18, 2026 23:03
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 aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Co-Authored-By: Evan Rusackas <evan@preset.io>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 19, 2026

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit bff7264
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6afef19e3a6c3802f8b43962
😎 Deploy Preview https://deploy-preview-46357--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link-matching change now drops correct links for duplicated SIP numbers; the forged RESULT, re-close and numbering threads are still open.

Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
…picks from email body

Co-Authored-By: Evan Rusackas <evan@preset.io>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Comment thread scripts/sip_steward.py Resolved

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The forged RESULT, re-close and numbering threads from the first round are still unanswered.

Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
rusackas and others added 3 commits November 19, 2026 10:37
… 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 aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
…lose order and numbering

Co-Authored-By: Evan Rusackas <evan@preset.io>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
Comment thread scripts/sip_steward.py Resolved
rusackas and others added 3 commits November 23, 2026 12:29
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>
@rusackas

Copy link
Copy Markdown
Member Author

@aminghadersohi added Steward tests covering RESULT-needs-VOTE, the model disagreeing, non-SIP threads, and the reopen and close-retry paths. A failed RESULT now also blocks a later "passed" one on the same vote. Sender and 72-hour window checks are still not done.

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new failed-vote block also stops a legitimate same-subject re-vote from ever being approved.

Comment thread scripts/sip_steward.py Resolved
Co-Authored-By: Evan Rusackas <evan@preset.io>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sadpandajoe
sadpandajoe merged commit 84888a4 into master Nov 27, 2026
76 checks passed
@sadpandajoe
sadpandajoe deleted the chore/sip-steward-workflow branch November 27, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code preset-io risk:ci-script PR modifies scripts that execute in CI (supply chain risk) size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants