agentleFS
kubetail-orgkubetail-org/kubetail/.github/CLAUDE.md

kubetail

CLAUDE.md1.8k starsChanged 3 days agoApache-2.0View on GitHub

How the workflows are built. The root guide's Checks holds what every change needs to know about CI. While working, and before you push: It needs uv, Go and shellcheck; CI's Lint · YAML runs it. A change to scripts/ also runs make lint-repo-sh test-repo.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 3 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the kubetail-org/kubetail repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about kubetail-org/kubetail

The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 27

Talked about on GitHub, Bluesky and Hacker News (27 times).

On GitHub · 20

15 more on GitHub

On Bluesky · 5

On Hacker News · 2

The file

Files
CLAUDE.md

.github — CI, coverage and release workflows

How the workflows are built. The root guide's Checks holds what every change needs to know about CI.

Checks

While working, and before you push:

make lint-repo-yaml   # from the repo root: yamllint, actionlint, zizmor, cicallers and cisteps

It needs uv, Go and shellcheck; CI's Lint · YAML runs it. A change to scripts/ also runs make lint-repo-sh test-repo.

Workflows

  • CI is one workflow per area, called from three: ci.yml calls ci-cli.yml (the CLI and the Dashboard backend), ci-libs.yml (libs/go-common), ci-cluster.yml, ci-web.yml, ci-desktop.yml, ci-e2e.yml and ci-repo.yml; coverage.yml calls coverage-<area>.yml for cli, libs, cluster, web and desktop; stress.yml calls stress-<area>.yml nightly for cli, libs, cluster and desktop. The first two run on every pull request and push to main, and never take an on: paths:. Each area file also runs alone by dispatch (gh workflow run ci-cli.yml --ref <branch>), so a ci-*.yml keeps a Plan job, its own CACHE_MODE and its own Prune · Caches. → ADR: run CI as one workflow per area
  • An area file runs on a pull request only when its caller calls it. tools/cicallers fails when ci.yml, coverage.yml or stress.yml misses a ci-*.yml, coverage-*.yml or stress-*.yml beside it. → ADR: report CI and coverage without requiring them to merge
  • On a pull request, each workflow's Plan picks its jobs by path. .github/actions/plan composes them from the narrow keys of ci-config/path-filters.yml, as codeql.yml does. A path is in a key when it matches one of its patterns and none of its ! patterns; each key that runs code jobs ends in !**/*.md. A push to main or a dispatch runs every job. Every job needs Plan, which skips a fork's push and cron runs.
  • A push to a wip/* branch runs coverage.yml and codeql.yml, not ci.yml, and saves no Go or Rust cache. It gives the branch's tip the Codecov report and CodeQL baseline a pull request into it is compared with; a pull request into wip/* runs CodeQL too. → ADR: run coverage and CodeQL on a push to a wip branch
  • A check step is run: make <target> or run: bash scripts/<name>.sh; any other has # ci-inline: <reason> above it (tools/cisteps). A script a target calls joins its jobs' filter keys. Windows runs make in shell: bash; macOS's is 3.81: no .ONESHELL, $(file …), !=, ::=. → ADR: run every CI check through make or a script
  • Pin a new action to a commit SHA with its exact version in a comment (# v7.0.1), and pass ${{ }} values to a run: script through env:. zizmor's config is ci-config/zizmor.yml.

Caches

  • Only runs on main save CI caches; PRs only read them. Each ci-*.yml's CACHE_MODE decides, and its Prune · Caches keeps the newest of each cache its own jobs save.
  • The BuildKit caches Build · Docker saves are the exception: their blobs are shared across scopes, so ci.yml's Prune · BuildKit prunes them once, after cli and cluster, and only when both areas' Docker builds succeeded. It keeps the newest index of each scope and the blobs accessed since the run was created (scripts/prune-buildkit-caches.sh).
  • A cache key starts with its job id, so a job id is unique across the ci-*.yml files.
  • Only the *-test jobs save a Go cache, in their last step; vet, staticcheck, Alpine, 386 and E2E restore one. A test job's flags must match a PR's, or a PR replays no cached test result.

Platforms

  • On a PR, ci-cli.yml's and ci-libs.yml's Build and Test run on linux/amd64 alone, since coverage-cli.yml and coverage-libs.yml test macOS and Windows. ci-cli.yml's Build · Docker builds the cli image's final stage for amd64 alone unless a Dockerfile changed, and ci-cluster.yml builds its images only then: E2E builds the other images. The arm64 legs and the Alpine and 386 jobs run only on main and on a dispatch; the riscv64 tests and images run weekly, in riscv64.yml. → ADR: run each OS once on a PR and the other platforms on main, ADR: run the riscv64 jobs weekly
  • On a PR, Test · Shell runs every bats file on Linux, and only the changed scripts' on Windows and macOS (scripts/test-changed.sh repo). → ADR: run only the changed scripts' bats files on Windows and macOS on a PR
  • ci-config/runners.json lists the runners the ci-*.yml files test on, in sets (default, and the desktop's own), and marks the ones a PR runs; the Plan action turns a workflow's set into its matrices. → ADR: define the CI runner matrix in one runners.json file, ADR: keep a runner set per area in runners.json

Job names

  • A job's name: is <Verb> · <Qualifier> (<matrix values>): Lint · Rust, Build · Docker (cli, amd64, final). The qualifier tells same-verb jobs apart and is left out when the workflow has one subject (ci / libs / Lint). Matrix values are values only, from OS to arch to variant; GitHub appends them to a name with no ${{ }} expression. A single-purpose workflow drops the verb (codeql / Go) unless nothing would be left (Measure). Plan, Gate, Prune · Caches and Report · Failures are fixed. Change only name:, never a job id. → ADR: name workflow jobs verb first
  • A job's name: never repeats its workflow's name: the checks list shows codeql / Go, not codeql / CodeQL · Go. So names repeat across workflows (Go, Plan), and a ruleset's required check, which matches the job name alone, would match each of them: rename a job to something unique before requiring it.

Coverage and stress

  • A step that runs a vet-, test- or cover-<area> target passes FULL=1, on the make line or in env:. Under CI=true, which every runner sets, the target fails without it.
  • Each area measures its coverage in its own coverage-*.yml, on the same filter keys as its ci-*.yml, so a path that runs a language's tests measures its coverage too. Its uploads carry the area's Codecov flags, and its gate reads the area's component in codecov.yml; a new area adds both, with its flags in flag_management. No area's flags may measure another component's paths. A coverage job runs bash scripts/cover-profile.sh <area> <out>, as scripts/cover-changed.sh does under FULL=1. A new coverage area also gets a case in scripts/cover-changed.sh, a cover-<area> target and a case in scripts/cover-changed.bats, which runs each area's suite and checks it lists a known uncovered line. The tools it runs live in tools/.
  • Each stress-<area>.yml runs its area's tests with -shuffle=on, -count and several -cpu values, with and without -race, and opens an issue labelled with the area per failing test, or per package that fails outside one, with its output. It runs bash scripts/stress.sh <area>; its report script, scripts/stress.go, is tested by make test-tools. → ADR: run the stress tests as one workflow per area
  • audit.yml fails a PR only for the advisories it brings in, and audits the whole tree on main and nightly. A failure there opens a security issue.

Releases

A published <component>/v* release runs the publish-<component>-*.yml workflows, each job gated on its tag, and a desktop/v* release is never the repo's latest.

Each release attests its build provenance in the job that publishes it: release in release-cli.yml and release-desktop.yml, create-and-publish-manifest in release-docker.yml. SECURITY.md's gh attestation verify commands name those workflow files: renaming one, or moving the attest step out of it, breaks them. → ADR: attest build provenance in the release jobs

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.