-
Notifications
You must be signed in to change notification settings - Fork 51
ci: stop the stale sweep from closing issues, drop stale tooling configs #318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,8 +10,10 @@ permissions: | |
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.sha }} | ||
| cancel-in-progress: true | ||
| # A sweep is cheap and idempotent, but cancelling one part-way leaves the triage | ||
| # half-applied, so queue behind a running sweep instead of superseding it. | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| stale: | ||
|
|
@@ -26,3 +28,7 @@ jobs: | |
| uses: sei-protocol/uci/.github/workflows/stale-check.yml@65901242783550521f25a19199a6b10e54550b97 | ||
| with: | ||
| days-before-pr-stale: 28 | ||
| # Disable both paths: -1 stops new stale labels, while the close setting | ||
| # protects issues that already carry the stale label. | ||
| days-before-issue-stale: -1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nit] Worth double-checking that
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [suggestion] Two things worth confirming before merge: 1. Does UCI v0.0.15 actually declare a 2. |
||
| days-before-issue-close: -1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [suggestion] The issue path is now fully explicit, but Worth setting it explicitly alongside the other three (whatever the intended value — |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,11 +25,7 @@ node_modules | |
| *.sublime-workspace | ||
|
|
||
| # IDE - VSCode | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/tasks.json | ||
| !.vscode/launch.json | ||
| !.vscode/extensions.json | ||
| .vscode/ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nit] Confirmed nothing is lost here: One forward-looking note — ignoring the directory (
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nit] Nothing is currently tracked under |
||
|
|
||
| # misc | ||
| /.sass-cache | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[suggestion] This doesn't fix the scenario the comment describes. On a
scheduleeventgithub.refis the default branch ref (refs/heads/main), and aworkflow_dispatchrun from main resolves to the samerefs/heads/main— so dispatch and cron still land in one group and, withcancel-in-progress: true, the dispatch still cancels a running sweep. Exactly as they did undergithub.sha, where both also share the head SHA of an unchanged main.If anything the ref key collapses more runs than the SHA key did: two cron runs across a commit to main had distinct SHAs and would not have cancelled each other, but they share a ref and now will.
The change that actually protects an in-flight sweep is
cancel-in-progress: false(a stale sweep is idempotent and cheap; there's little value in cancelling one). If you want cron and manual runs isolated instead, fold the event into the group:Either way the comment needs rewording, since it currently justifies the key by a property the key doesn't have.