Repository navigation
launcher: guard public exceptions by active workflow event - #171
Merged
Merged
Conversation
Gate allow_public on the active run event set, reuse refusal draining and issue-backed alerts, and leave private repositories unchanged. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
An unknown run snapshot already supplies no launch demand; only an observed unsafe event should trigger the public refusal drain. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
This was referenced Oct 27, 2026
The run listing now stands apart from the job reads, so an unsafe active run on a public exception still refuses the repo, drains its idle runners and alerts when a listJobs call fails. A safe snapshot with failed job reads stays served with no demand. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
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.
What changes
Public repositories admitted by
allow_publicare served only while every queued/in-progress run ispush,workflow_dispatch, orschedule. Any other event refuses the whole repository for that tick, including a run with no pool jobs. Existing refusal cleanup drains idle unclaimed runners and leaves busy jobs alone. The log identifies the run/event; the existing issue-backed alert path deduplicates one open alert per repository.Private repositories are unchanged. An unreadable active-run snapshot launches nothing but does not trigger a drain; only an observed unsafe or missing event does.
docs/pool.mddocuments the rule and its boundary.Verification
test/gce/launcher.test.mjs: 58/58 passing, including regressions that preserve idle runners on a failed run snapshot but still drain/alert for a known unsafe run when job-detail reads fail.ci-gateon 6e7373f:PASS test 2m51s;GREEN https://github.com/SSFSKIM/ci-kit/actions/runs/40436671220.Scope and deployment
Related to #168; does not close it. Investigation showed a nonzero job-started hook still allows
always()/failure()workflow steps and action pre scripts, so no hook edits or worker shutdown are included. Persistent Macs still need a separately designed runtime admission boundary. The launcher checks its tick snapshot, not per-job admission.After merge, deploy the launcher (
gce/deploy.sh launcher). No Mac installer refresh or pool image bake is needed. Nothing has been merged or deployed.Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)