fleet: standard CI kit v1 (setup, report, superseded, templates) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fleet-ci-kit-v1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fleet CI standard, Phase 3: the standard CI kit.
fleet/setup: detects stacks from lockfiles (pnpm, npm, bun, uv, go, any mix), installs toolchains, points each manager at its fleet cache mount only when the mount exists and accepts a write, installs with retries, exports Turbo env whenturbo-tokenis set, and prints onefleet-cache:line per job. Never uses an archive cache (FORGE-198). With no mount it falls back to the npm.forgegraf.com mirror whenregistry-tokenis set.fleet/report: sends the same/api/fg/ci/reportpayload as today's hand-written steps, pluslogTailon failure. It never fails the job.fleet/superseded: on a push to the default branch,skip=truewhen the branch has a newer commit. Alwaysfalseon PRs and dispatch.templates/:node-turbo.yml(PRs runturbo --affected),node.yml,python-uv.yml,go.yml,preview-addon.yml(merge/close guard). All useruns-on: appsand the standard on/concurrency block.fleet/README.md.Verification (test repos under gmackie,
runs-on: apps)mountis the cache-instance id stored in the mount; matching ids mean the two runs shared a cache.e3ee2b1): hit, 0.8 s, 80430bc6. The earlier 37698 was fully cached but counted as a miss because of the project's own build (fixed ine3ee2b1)Also checked:
skip=false.--affected: the PR touchingpackages/aran only@kit/a. Main ran@kit/a, @kit/b.closedevent cancel the queued deploy (37933). The live-state check returnsdeploy=falsefor a merged PR and fails open when the PR can't be read.unknown repofor the unregistered test repo). With no token it warns and skips.registry=https://npm.forgegraf.com/,cache=off.Reusable-workflow spike: go, with limits
uses: owner/repo/.forgejo/workflows/x.yml@refworks. Forgejo 15 expands it server-side. Inputs and outputs pass, andsecrets: inheritpasses the caller's secrets.https://…URL form never schedules. It waits for "a runner with the following labels: " forever, with no error.workflow_call.secrets; Forgejo rejects the file.v1 therefore ships composite actions plus templates. Details are in
fleet/README.md.Tested kit SHA:
e3ee2b1(pnpm, npm, bun and uv green on it; go green on940f574, whose go path is identical). The previewclosedrun skipped the deploy and ran cleanup (merged=true). The head commit after it changes README only.🤖 Generated with Claude Code