spi-fleet
Skill1 starsChanged 32 days agoApache-2.0View on GitHub
Roll one change out across every SPI service fork without overloading the shared backing environment. Use when a template change, Dependabot batch, or other fleet-wide pull request has to reach all forks, when watching those pull requests, or when merging them in groups.
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .github/fork-resources/copilot-instructions.mdCopilot instructions
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Start more than lanes validations at once.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
spi-fleet
The fleet is the forks: list in osdu-spi-stack ops/environments/shared.yaml. .github/fleet/rollout.json sets lanes, the number of deploy lanes allowed at once, and the few merge-ordering exceptions. fleet.py reads both, so a new fork needs no edit here.
Never
- Start more than
lanesvalidations at once. Every fork PR and every main merge borrows the shared backing environment, and the environment has no queue across forks. Dispatchgh workflow run sync-template.yml -R <repo>forlanesforks, then wait untilwatchshows no pending runs before dispatching more. - Rerun a failed run without the person's go. Rerun an environment failure once, after the other lanes drain:
gh run rerun <id> --failed -R Azure/osdu-spi-<service>. - Patch a fork by hand to get it green. Stop the line and fix forward in the template.
- Approve a pull request, or merge without the person's go.
Watch
python3 .github/skills/spi-fleet/fleet.py watch --wait # template-sync PRs, poll until nothing is pending
python3 .github/skills/spi-fleet/fleet.py watch --prefix release-please-- # any head-branch prefix
python3 .github/skills/spi-fleet/fleet.py watch --main # the latest push run on each mainEach fork is judged by the Validation run for its PR's head SHA. A failure is an environment failure when Validation raised it with the annotation title Environment: the environment stayed undeployable, the pin stayed refused, or the digest never went live. Anything else is a failure of the change, and so is an environment failure that has already been rerun once. Exit codes: 0 green, 1 real failure, 2 pending, 3 environment failure that waits for a rerun.
Merge
python3 .github/skills/spi-fleet/fleet.py merge # print the groups
python3 .github/skills/spi-fleet/fleet.py merge --go # merge them, after the person says gomerge re-reads every PR first. It merges green, approved PRs in fleet order, and ordering exceptions follow rollout.json. Before each group it counts the Validation runs already queued or running across the whole fleet, PR and main alike, and merges only into the lanes left free. It waits for each merge SHA's push run on main and stops the line on any failure, or on any PR that did not merge. A merge whose push changed only paths Validation ignores shows no run; after --grace seconds (default 600) it is reported unvalidated and the line carries on.
Each merge is written to fleet-merge-<date>.jsonl as it happens, with the PR, merge SHA, image and the main-snapshot digest it replaced, and a second record follows with the main run's result. When a forward fix is slow, that digest is the last-good pin the person can choose.
Change the rollout
Raise lanes in rollout.json once a rollout at the current value runs clean. An ordering entry may name only forks in the fleet list; fleet.py refuses to run otherwise. A new environment failure is classified by giving its ::error in validate.yml the title Environment, not by adding a rule here. Run bash .github/local-actions/spi-fleet-tests/run-tests.sh.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

