Repository navigation
Optionally start the CI k8s workflows next to needs_ci - #35
Open
asheth-eightfold wants to merge 5 commits into
Open
asheth-eightfold wants to merge 5 commits into
asheth-eightfold wants to merge 5 commits into
Conversation
Two switches from the calling workflow, CI_FLEET_TRIGGER (default true) and CI_K8S_TRIGGER (default false). When CI_K8S_TRIGGER is true, wherever needs_ci or needs_ci:lite is requested, also add ci_k8s / ci_k8s:lite and start the matching workflow with workflow_dispatch. Same-repository PRs only. Unchanged when unset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
CI k8s is started exactly when needs_ci / needs_ci:lite would be requested, and adds no label of its own. On a push, the modes the fleet runs for the new commit (the label just added, and any needs_ci* already on) are started again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One switch from the calling workflow, CI_K8S_TRIGGER (default false). needs_ci and needs_ci:lite are always added, exactly as today; when CI_K8S_TRIGGER is true, each add is followed by a workflow_dispatch of the matching CI k8s workflow (same-repository PRs only). CI_FLEET_TRIGGER is gone. Unchanged when unset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The calling repository allows no forks, so every pull request is from the same repository. Also fold the dispatch helper into k8s_request, its only caller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Optionally starts a second CI system next to the existing
needs_ci/needs_ci:literequests. It adds no new label and doesn't change the existing ones.Behaviour
CI_K8S_TRIGGER, passed in by the calling workflow as an environment variable. Only exactlytrueturns it on. Unset meansfalse, so behaviour is unchanged.needs_ciandneeds_ci:liteare always added, under the same conditions as today.true: every place that addsneeds_ci/needs_ci:litealso starts the matching workflow in the calling repository (ci_k8s_full.yml/ci_k8s_lite.yml) withworkflow_dispatch.workflow_dispatchis the one eventGITHUB_TOKENmay start, and it needsactions: writeon the caller'sGITHUB_TOKEN.Testing
The script was run against a fake
curlthat records every GitHub API call:CI_K8S_TRIGGERunset,falseor empty: exactly the same API calls as the current script in every scenario.true, the expected labels and dispatches were checked for:true.🤖 Generated with Claude Code