Update weekly workflow skills for relocated CI paths

This commit is contained in:
notplants
2026-11-23 20:14:49 +00:00
parent 93e140d2e3
commit a62ed579c5
9 changed files with 46 additions and 46 deletions
+3 -3
View File
@@ -16,14 +16,14 @@ deploys on other people's infrastructure, so a human merges them (see AGENTS.md)
write it performs, always with a comment saying why. write it performs, always with a comment saying why.
## Arguments ## Arguments
- `<recipe> …` — limit to these recipes (else every recipe in `cc-ci-plan/used-recipes.md`). - `<recipe> …` — limit to these recipes (else every recipe in `data/cc-ci/used-recipes.md`).
- `--dry-run` — classify and report, close nothing. - `--dry-run` — classify and report, close nothing.
## Procedure ## Procedure
### 1. Reconcile every mirror from TRUE upstream — MANDATORY, FIRST ### 1. Reconcile every mirror from TRUE upstream — MANDATORY, FIRST
``` ```
cc-ci-plan/reconcile-upstream.sh --all # or: reconcile-upstream.sh <recipe>... scripts/cc-ci/reconcile-upstream.sh --all # or: reconcile-upstream.sh <recipe>...
``` ```
**Do not skip this and do not reorder it.** Every signal in step 2 is measured against the mirror's **Do not skip this and do not reorder it.** Every signal in step 2 is measured against the mirror's
`main`; against a stale mirror they are all wrong. This step also does a chunk of the cleanup by `main`; against a stale mirror they are all wrong. This step also does a chunk of the cleanup by
@@ -36,7 +36,7 @@ itself — it closes any PR whose changes upstream has already merged.
### 2. Survey every open PR (deterministic — no judgement yet) ### 2. Survey every open PR (deterministic — no judgement yet)
``` ```
python3 cc-ci-plan/pr-survey.py [recipe ...] # add --json for the raw facts python3 scripts/cc-ci/pr-survey.py [recipe ...] # add --json for the raw facts
``` ```
Per PR it measures: `behind_main`, `ahead`, `mergeable`, `diff_files`, the images it **adds**, which Per PR it measures: `behind_main`, `ahead`, `mergeable`, `diff_files`, the images it **adds**, which
of those are **already in main**, `obsolete`, the newest `!testme` verdict + build, `branch_kind`, of those are **already in main**, `obsolete`, the newest `!testme` verdict + build, `branch_kind`,
+1 -1
View File
@@ -85,7 +85,7 @@ Push the branch and open a PR via the Gitea API (`POST /repos/recipe-maintainers
auth with `GITEA_USERNAME:GITEA_PASSWORD`). Tag `@notplants` for human awareness. **Never push `main`.** auth with `GITEA_USERNAME:GITEA_PASSWORD`). Tag `@notplants` for human awareness. **Never push `main`.**
### 7. Independent adversary verification ### 7. Independent adversary verification
Write a verification plan (see `cc-ci-plan/adversary-verify-pr6.md` for the template) and dispatch an Write a verification plan (see `archive/original-build/cc-ci-plan/adversary-verify-pr6.md` for the template) and dispatch an
**independent** verifier (Agent tool, adversarial stance — disbelieve and verify; it must NOT reuse **independent** verifier (Agent tool, adversarial stance — disbelieve and verify; it must NOT reuse
your working dirs). It does a fresh clone, the full unit suite cold, a **diff regression review** your working dirs). It does a fresh clone, the full unit suite cold, a **diff regression review**
(especially: confirm no verdict/SSO enforcement was weakened, no test was weakened), a live full-stage (especially: confirm no verdict/SSO enforcement was weakened, no test was weakened), a live full-stage
+1 -1
View File
@@ -91,7 +91,7 @@ For each real (non-flaky) finding, write the actual fix and open a PR. **Never m
> ### ⚠️ RECONCILE FROM UPSTREAM FIRST — always, before any PR work or upgrade check > ### ⚠️ RECONCILE FROM UPSTREAM FIRST — always, before any PR work or upgrade check
> ``` > ```
> cc-ci-plan/reconcile-upstream.sh <recipe>... # or --all > scripts/cc-ci/reconcile-upstream.sh <recipe>... # or --all
> ``` > ```
> Deterministic, idempotent, and safe (recipe work lives in branches, never on mirror `main`). It > Deterministic, idempotent, and safe (recipe work lives in branches, never on mirror `main`). It
> force-syncs each mirror to coopcloud's **default branch — resolved from the API, `main` OR > force-syncs each mirror to coopcloud's **default branch — resolved from the API, `main` OR
+9 -9
View File
@@ -18,7 +18,7 @@ too, use **`/cve-check-and-upgrade`**.
deploy. The only thing it writes is its own log and the published report page. deploy. The only thing it writes is its own log and the published report page.
## Arguments ## Arguments
- `<recipe> …` — sweep only these recipes (else every recipe in `cc-ci-plan/used-recipes.md`). - `<recipe> …` — sweep only these recipes (else every recipe in `data/cc-ci/used-recipes.md`).
- `--weekly-only` — skip rows tagged `external`. **Off by default on purpose**: an `external` recipe is - `--weekly-only` — skip rows tagged `external`. **Off by default on purpose**: an `external` recipe is
still deployed and still exposes us, so a security sweep that silently skipped it would misreport the still deployed and still exposes us, so a security sweep that silently skipped it would misreport the
fleet's exposure. Externals are swept and clearly marked "maintained elsewhere" in the report. fleet's exposure. Externals are swept and clearly marked "maintained elsewhere" in the report.
@@ -30,7 +30,7 @@ deploy. The only thing it writes is its own log and the published report page.
> (`git` and other commands do NOT need the wrapper.) > (`git` and other commands do NOT need the wrapper.)
### 1. Build the candidate list ### 1. Build the candidate list
Read `cc-ci-plan/used-recipes.md` — the canonical inventory. Take every row (both tiers), recording the Read `data/cc-ci/used-recipes.md` — the canonical inventory. Take every row (both tiers), recording the
tier per recipe; with `--weekly-only`, drop the `external` rows. An explicit recipe argument overrides tier per recipe; with `--weekly-only`, drop the `external` rows. An explicit recipe argument overrides
any skip. any skip.
@@ -49,7 +49,7 @@ This is `/recipe-upgrade` step 1's research, stopping before it implements anyth
> 4. **tag+digest pins abra cannot parse** — abra FATAs and aborts the WHOLE recipe (immich). Do not > 4. **tag+digest pins abra cannot parse** — abra FATAs and aborts the WHOLE recipe (immich). Do not
> hand-check the registry; run the resolver, which is abra-independent and covers every image: > hand-check the registry; run the resolver, which is abra-independent and covers every image:
> ``` > ```
> python3 /srv/cc-ci/cc-ci-plan/resolve-images.py <recipe> --ssh cc-ci --table > python3 /srv/cc-ci/scripts/cc-ci/resolve-images.py <recipe> --ssh cc-ci --table
> ``` > ```
> It reports, per image, `newest_within_major` (the compatibility-safe pick) and > It reports, per image, `newest_within_major` (the compatibility-safe pick) and
> `newest_same_shape` (the newest of that tag's form). **Use `newest_within_major` unless you have > `newest_same_shape` (the newest of that tag's form). **Use `newest_within_major` unless you have
@@ -58,7 +58,7 @@ This is `/recipe-upgrade` step 1's research, stopping before it implements anyth
> the deploy. `all_resolved: false` means an image could NOT be resolved — that is a `?`, never a 0. > the deploy. `all_resolved: false` means an image could NOT be resolved — that is a `?`, never a 0.
**Reconcile the mirror from true upstream FIRST — ALWAYS, no exceptions** — one command, **Reconcile the mirror from true upstream FIRST — ALWAYS, no exceptions** — one command,
`cc-ci-plan/reconcile-upstream.sh <recipe>... | --all`. This is the same reconcile `scripts/cc-ci/reconcile-upstream.sh <recipe>... | --all`. This is the same reconcile
`/upgrade-all` does. Do not skip it in the name of keeping the sweep read-only: skipping it makes you `/upgrade-all` does. Do not skip it in the name of keeping the sweep read-only: skipping it makes you
research a stale checkout, and on the first real run that produced **two recipes with no survey output research a stale checkout, and on the first real run that produced **two recipes with no survey output
at all**, which is indistinguishable from "no upgrades" unless you check. It is safe — recipe work at all**, which is indistinguishable from "no upgrades" unless you check. It is safe — recipe work
@@ -107,7 +107,7 @@ CRITICAL came from, and an image with no window is not counted at all.
### 2c. Know which recipes CANNOT see CVEs at all ### 2c. Know which recipes CANNOT see CVEs at all
``` ```
python3 cc-ci-plan/audit-sources.py --security-sources python3 scripts/cc-ci/audit-sources.py --security-sources
``` ```
A recipe whose sources yield **no CVE data at all** cannot produce a meaningful `0` — nothing was A recipe whose sources yield **no CVE data at all** cannot produce a meaningful `0` — nothing was
measured, the same way a missing registry file cannot. Render those as **`?`**, not `0`. measured, the same way a missing registry file cannot. Render those as **`?`**, not `0`.
@@ -136,7 +136,7 @@ advisory feed (redis, gitea, minio, clickhouse all do). Only "no usable source f
### 3. Run the advisory scan over that window ### 3. Run the advisory scan over that window
``` ```
python3 /srv/cc-ci/cc-ci-plan/advisory-scan.py <recipe> --from <old-app> --to <new-app> \ python3 /srv/cc-ci/scripts/cc-ci/advisory-scan.py <recipe> --from <old-app> --to <new-app> \
[--image <name>=<old>:<new>]... [--image <name>=<old>:<new>]...
``` ```
**One call per recipe with every image in it** — the count is a union across images, and the **One call per recipe with every image in it** — the count is a union across images, and the
@@ -148,7 +148,7 @@ If the block reports advisories it **could NOT judge**, or the count is **UNKNOW
`--adjudicate` and decide each open case yourself: `--adjudicate` and decide each open case yourself:
``` ```
python3 /srv/cc-ci/cc-ci-plan/advisory-scan.py <recipe> … --adjudicate python3 /srv/cc-ci/scripts/cc-ci/advisory-scan.py <recipe> … --adjudicate
``` ```
Answer **FIXED / NOT-FIXED / STILL-UNKNOWN** per case, each with a one-line reason **citing the Answer **FIXED / NOT-FIXED / STILL-UNKNOWN** per case, each with a one-line reason **citing the
@@ -194,8 +194,8 @@ clean. A recipe with no upgrade available is `0`, not `?`. Many `?` is a bug for
### 7. Render and publish — via the script only ### 7. Render and publish — via the script only
``` ```
python3 /srv/cc-ci/cc-ci-plan/recipe-report.py render /tmp/cve-spec-<DATE>.json /tmp/cve-<DATE>.html python3 /srv/cc-ci/scripts/cc-ci/recipe-report.py render /tmp/cve-spec-<DATE>.json /tmp/cve-<DATE>.html
python3 /srv/cc-ci/cc-ci-plan/recipe-report.py publish /tmp/cve-<DATE>.html <DATE> cve python3 /srv/cc-ci/scripts/cc-ci/recipe-report.py publish /tmp/cve-<DATE>.html <DATE> cve
``` ```
All layout is owned by `recipe-report.py`. Never hand-write or post-process HTML; if `render` errors, All layout is owned by `recipe-report.py`. Never hand-write or post-process HTML; if `render` errors,
fix the spec JSON and re-render. **Public page — no secrets, tokens, internal hostnames, raw logs, or fix the spec JSON and re-render. **Public page — no secrets, tokens, internal hostnames, raw logs, or
+4 -4
View File
@@ -12,7 +12,7 @@ edit, or comment on PRs. The page is **public + unauthenticated** — include on
(recipe names, version bumps, PR titles/links, CI verdicts, concise error summaries); **never** secrets, (recipe names, version bumps, PR titles/links, CI verdicts, concise error summaries); **never** secrets,
tokens, internal IPs, or raw logs. tokens, internal IPs, or raw logs.
Helper: `python3 /srv/cc-ci/cc-ci-plan/recipe-report.py {survey|render|publish}` (see its header). Helper: `python3 /srv/cc-ci/scripts/cc-ci/recipe-report.py {survey|render|publish}` (see its header).
**Deterministic formatting — spec in, page out (NON-NEGOTIABLE).** ALL layout, CSS, and HTML is owned by **Deterministic formatting — spec in, page out (NON-NEGOTIABLE).** ALL layout, CSS, and HTML is owned by
`recipe-report.py`'s `render()`. Your ONLY output artifact is the **spec JSON** (data + editorial text). `recipe-report.py`'s `render()`. Your ONLY output artifact is the **spec JSON** (data + editorial text).
@@ -27,11 +27,11 @@ keeps every weekly edition looking the same regardless of which model writes the
1. **Pick the date.** `DATE` = the argument, else today (UTC). The `/upgrade-all` summary for that run is 1. **Pick the date.** `DATE` = the argument, else today (UTC). The `/upgrade-all` summary for that run is
`/srv/cc-ci/.cc-ci-logs/upgrades/upgrade-all-<DATE>.md`. `/srv/cc-ci/.cc-ci-logs/upgrades/upgrade-all-<DATE>.md`.
2. **Survey.** `python3 /srv/cc-ci/cc-ci-plan/recipe-report.py survey <DATE> > /tmp/survey.json`. This 2. **Survey.** `python3 /srv/cc-ci/scripts/cc-ci/recipe-report.py survey <DATE> > /tmp/survey.json`. This
gives you: the raw `/upgrade-all` summary; for every recipe mirror its open PRs + the `cc-ci/testme` gives you: the raw `/upgrade-all` summary; for every recipe mirror its open PRs + the `cc-ci/testme`
verdict; and each recipe's **per-recipe upgrade notes** (`upgrade_notes_md` — the breaking-change / verdict; and each recipe's **per-recipe upgrade notes** (`upgrade_notes_md` — the breaking-change /
**CVE / security** analysis the upgrade did). Read it all. Also run **CVE / security** analysis the upgrade did). Read it all. Also run
`python3 /srv/cc-ci/cc-ci-plan/audit-sources.py --security-sources`; a recipe with no verified `python3 /srv/cc-ci/scripts/cc-ci/audit-sources.py --security-sources`; a recipe with no verified
security source or a failed source must be called out, not presented as a clean CVE scan. security source or a failed source must be called out, not presented as a clean CVE scan.
3. **Review & classify.** The page order is: **short lead → the full wire table (priority-sorted) → 3. **Review & classify.** The page order is: **short lead → the full wire table (priority-sorted) →
@@ -52,7 +52,7 @@ keeps every weekly edition looking the same regardless of which model writes the
be verified, use `?` and explain why. If the PR head is behind the target branch or unmergeable, be verified, use `?` and explain why. If the PR head is behind the target branch or unmergeable,
say so in the same row; its old CI result is not proof that the current combined recipe works. say so in the same row; its old CI result is not proof that the current combined recipe works.
- **ADDITIONALLY, and never instead:** each per-recipe log carries an `### Advisory scan - **ADDITIONALLY, and never instead:** each per-recipe log carries an `### Advisory scan
(deterministic pre-step)` block (from `cc-ci-plan/advisory-scan.py` — GitHub Security (deterministic pre-step)` block (from `scripts/cc-ci/advisory-scan.py` — GitHub Security
Advisories + vendor security pages + OSV, with severities and fixed-in versions). Treat its Advisories + vendor security pages + OSV, with severities and fixed-in versions). Treat its
CVE list as a **further source** and report the **UNION** of it and what you found by reading. CVE list as a **further source** and report the **UNION** of it and what you found by reading.
Its entries are machine-derived with advisory IDs, so prefer them for CVE ids / severities / Its entries are machine-derived with advisory IDs, so prefer them for CVE ids / severities /
+11 -11
View File
@@ -1,6 +1,6 @@
--- ---
name: recipe-upgrade name: recipe-upgrade
description: Upgrade ONE Co-op Cloud recipe end-to-end and verify it on the cc-ci CI server. Researches available upstream upgrades — fetching each image's release notes via a persisted per-recipe registry (cc-ci-plan/upstream/<recipe>.md) + the recipe README — plans them (breaking changes, migrations, config), implements the bump (image tags + recipe version label + config), opens a recipe PR, and verifies it by posting `!testme` on the PR (real CI; results visible in the PR; iterates up to 3×). DEFAULT: recipe PR only, using existing tests — if a test fails because it is genuinely stale, it leaves an explanatory COMMENT on the PR for the operator (does NOT touch tests). With `--with-tests`: also opens + verifies a PR to update the stale cc-ci test. NEVER merges. The per-recipe worker behind /upgrade-all. Invoke as /recipe-upgrade <recipe> [--with-tests]. description: Upgrade ONE Co-op Cloud recipe end-to-end and verify it on the cc-ci CI server. Researches available upstream upgrades — fetching each image's release notes via a persisted per-recipe registry (data/cc-ci/upstream/<recipe>.md) + the recipe README — plans them (breaking changes, migrations, config), implements the bump (image tags + recipe version label + config), opens a recipe PR, and verifies it by posting `!testme` on the PR (real CI; results visible in the PR; iterates up to 3×). DEFAULT: recipe PR only, using existing tests — if a test fails because it is genuinely stale, it leaves an explanatory COMMENT on the PR for the operator (does NOT touch tests). With `--with-tests`: also opens + verifies a PR to update the stale cc-ci test. NEVER merges. The per-recipe worker behind /upgrade-all. Invoke as /recipe-upgrade <recipe> [--with-tests].
--- ---
# recipe-upgrade # recipe-upgrade
@@ -93,7 +93,7 @@ the real current recipe, not a stale mirror.
- a **digest-only pin** (`image@sha256:…`, no tag) — nothing for abra to compare. - a **digest-only pin** (`image@sha256:…`, no tag) — nothing for abra to compare.
So **before** writing `SKIPPED — up-to-date`, do a **direct upstream check ONLY for those abra-unparseable So **before** writing `SKIPPED — up-to-date`, do a **direct upstream check ONLY for those abra-unparseable
images** (not for images abra evaluated fine): images** (not for images abra evaluated fine):
1. Read `cc-ci-plan/upstream/<recipe>.md` (per-image releases/changelog URLs; discover + write it per 1. Read `data/cc-ci/upstream/<recipe>.md` (per-image releases/changelog URLs; discover + write it per
the registry bullet below if missing). the registry bullet below if missing).
2. For each such image, list the **upstream registry tags** and pick the newest tag the app version 2. For each such image, list the **upstream registry tags** and pick the newest tag the app version
supports (the §2 "list the registry tags, pick the newest one the app supports — don't blindly take supports (the §2 "list the registry tags, pick the newest one the app supports — don't blindly take
@@ -112,12 +112,12 @@ the real current recipe, not a stale mirror.
- Check `git log HEAD..origin/main` and upstream PRs (`git.coopcloud.tech/coop-cloud/<recipe>/pulls`) - Check `git log HEAD..origin/main` and upstream PRs (`git.coopcloud.tech/coop-cloud/<recipe>/pulls`)
— if someone already started the bump, **re-plan from the tip of `origin/main`**, not from scratch. — if someone already started the bump, **re-plan from the tip of `origin/main`**, not from scratch.
- **Release-notes registry (discover once, reuse — parity with recipe-maintainer's `upstream.md`).** - **Release-notes registry (discover once, reuse — parity with recipe-maintainer's `upstream.md`).**
Read `cc-ci-plan/upstream/<recipe>.md` — a per-image map of source repo + releases/changelog URL. If Read `data/cc-ci/upstream/<recipe>.md` — a per-image map of source repo + releases/changelog URL. If
it's missing, or an image in `compose.yml` isn't covered (new/renamed service), discover the upstream it's missing, or an image in `compose.yml` isn't covered (new/renamed service), discover the upstream
project + releases page for each uncovered image (WebSearch the image → its GitHub/source repo → project + releases page for each uncovered image (WebSearch the image → its GitHub/source repo →
releases/changelog), **write/update** `cc-ci-plan/upstream/<recipe>.md` and commit it releases/changelog), **write/update** `data/cc-ci/upstream/<recipe>.md` and commit it
(`git -C /srv/cc-ci-orch add cc-ci-plan/upstream/<recipe>.md && git -C /srv/cc-ci-orch commit -m "upstream(<recipe>): release-notes sources" && git -C /srv/cc-ci-orch push`). (`git -C /srv/cc-ci-orch add data/cc-ci/upstream/<recipe>.md && git -C /srv/cc-ci-orch commit -m "upstream(<recipe>): release-notes sources" && git -C /srv/cc-ci-orch push`).
Format + how it's used: `cc-ci-plan/upstream/README.md`. Format + how it's used: `data/cc-ci/upstream/README.md`.
- **For each service with an upgrade, fetch the release notes from the registry URLs** (WebFetch) - **For each service with an upgrade, fetch the release notes from the registry URLs** (WebFetch)
between current → target versions, and call out **breaking changes / required migrations / new-or- between current → target versions, and call out **breaking changes / required migrations / new-or-
renamed config / dependency version requirements** in an "Operator Action Required" section. renamed config / dependency version requirements** in an "Operator Action Required" section.
@@ -169,7 +169,7 @@ verbatim into the per-recipe log. Use the proposed head's `compose.yml` and the
from (the merge base with the target branch), both pinned by commit SHA: from (the merge base with the target branch), both pinned by commit SHA:
``` ```
python3 /srv/cc-ci/cc-ci-plan/advisory-scan.py <recipe> \ python3 /srv/cc-ci/scripts/cc-ci/advisory-scan.py <recipe> \
--compose-from <raw-compose-url-at-pr-base-sha> \ --compose-from <raw-compose-url-at-pr-base-sha> \
--compose-to <raw-compose-url-at-pr-head-sha> --compose-to <raw-compose-url-at-pr-head-sha>
``` ```
@@ -188,7 +188,7 @@ STILL-UNKNOWN rather than inferring from memory, and never record an undecided C
It also shows what pass 1 already decided; if a verdict looks wrong given its evidence, say so. It also shows what pass 1 already decided; if a verdict looks wrong given its evidence, say so.
It queries, per recipe: the **GitHub Security Advisories API** for every source repo in It queries, per recipe: the **GitHub Security Advisories API** for every source repo in
`cc-ci-plan/upstream/<recipe>.md` (CVE + GHSA + severity + vulnerable/patched ranges, so `data/cc-ci/upstream/<recipe>.md` (CVE + GHSA + severity + vulnerable/patched ranges, so
"fixed by THIS upgrade" is computed, not guessed), every **vendor release/security URL** in that "fixed by THIS upgrade" is computed, not guessed), every **vendor release/security URL** in that
registry (fetched + regex-scanned for CVE ids), and **OSV** where a package mapping exists. registry (fetched + regex-scanned for CVE ids), and **OSV** where a package mapping exists.
@@ -205,7 +205,7 @@ keyword), which is why the GitHub advisory API and the vendor pages lead.
If the scanner reports **failed sources**, say so in the log — an incomplete scan must not read as If the scanner reports **failed sources**, say so in the log — an incomplete scan must not read as
a clean one. If a vendor publishes security notes at a URL the registry lacks (gitea's a clean one. If a vendor publishes security notes at a URL the registry lacks (gitea's
`blog.gitea.com`), **add it to `cc-ci-plan/upstream/<recipe>.md`** so the next scan sees it. `blog.gitea.com`), **add it to `data/cc-ci/upstream/<recipe>.md`** so the next scan sees it.
### 2b. Direct deploy + inspect on cc-ci — live feedback BEFORE CI (recipe-maintainer style) ### 2b. Direct deploy + inspect on cc-ci — live feedback BEFORE CI (recipe-maintainer style)
Before opening the PR / running `!testme`, deploy the WIP recipe **directly** on the cc-ci server and Before opening the PR / running `!testme`, deploy the WIP recipe **directly** on the cc-ci server and
@@ -254,7 +254,7 @@ ssh cc-ci 'export PATH=/run/current-system/sw/bin:$PATH; set -a; . /srv/cc-ci/.t
touch: do not edit a test/overlay to make a `dev-` deploy or a `!testme` go green. Editing cc-ci tests touch: do not edit a test/overlay to make a `dev-` deploy or a `!testme` go green. Editing cc-ci tests
is gated **exclusively** by `--with-tests` (step 5b); in DEFAULT mode a stale test gets a PR **comment**, is gated **exclusively** by `--with-tests` (step 5b); in DEFAULT mode a stale test gets a PR **comment**,
never an edit. Fix the *recipe*, never the gate. (Interim rule while the upgrader still runs on the never an edit. Fix the *recipe*, never the gate. (Interim rule while the upgrader still runs on the
cc-ci host — see `cc-ci-plan/IDEAS.md`, "Move the upgrader's direct deploy onto separate infra".) cc-ci host — see `archive/original-build/cc-ci-plan/IDEAS.md`, "Move the upgrader's direct deploy onto separate infra".)
### 3. Open the recipe PR (never merge) ### 3. Open the recipe PR (never merge)
``` ```
@@ -272,7 +272,7 @@ closed or touched — the operator decides on those. The PR's diff is exactly th
real current upstream main. This squash happens **before `!testme`**, so CI tests the one-commit PR real current upstream main. This squash happens **before `!testme`**, so CI tests the one-commit PR
head. Capture the `PR_URL`. Export `RECIPE_PR_BODY` first (image-tag table + the head. Capture the `PR_URL`. Export `RECIPE_PR_BODY` first (image-tag table + the
planned operator-action notes) — and **the PR body MUST link the upstream release notes**: for each planned operator-action notes) — and **the PR body MUST link the upstream release notes**: for each
upgraded image/service, pull its release-notes URL from the registry `cc-ci-plan/upstream/<recipe>.md` upgraded image/service, pull its release-notes URL from the registry `data/cc-ci/upstream/<recipe>.md`
(between the current → new version) and include one explicit line per service in the body, e.g. (between the current → new version) and include one explicit line per service in the body, e.g.
`**Upstream release notes:** <service> <old>→<new>: <url>`. These links go in the PR comment/body `**Upstream release notes:** <service> <old>→<new>: <url>`. These links go in the PR comment/body
itself (so a reviewer sees exactly what changed upstream) — do NOT relegate them to the plan/report itself (so a reviewer sees exactly what changed upstream) — do NOT relegate them to the plan/report
+11 -11
View File
@@ -1,6 +1,6 @@
--- ---
name: upgrade-all name: upgrade-all
description: Weekly autonomous upgrade run for the cc-ci CI server. Surveys every enrolled recipe (except those tagged `external` in cc-ci-plan/used-recipes.md — used/tested but maintained elsewhere, e.g. uptime-kuma) for available upstream upgrades, then runs /recipe-upgrade on each upgradeable one via a subagent — plan, implement, verify green on cc-ci, open a recipe PR (and, only if a cc-ci test went stale, a verified cc-ci test PR). Collects results into one summary listing every PR to review. Rolling pool by default — works through recipes ALPHABETICALLY keeping DRONE_RUNNER_CAPACITY (the drone runner's slots, currently 2) subagents running at once, starting the next as each finishes; --sequential for one-at-a-time, --capacity N to override the pool size, --parallel to start all at once, --dry-run to preview. NEVER merges. Built to run once weekly on a cron. Invoke as /upgrade-all. description: Weekly autonomous upgrade run for the cc-ci CI server. Surveys every enrolled recipe (except those tagged `external` in data/cc-ci/used-recipes.md — used/tested but maintained elsewhere, e.g. uptime-kuma) for available upstream upgrades, then runs /recipe-upgrade on each upgradeable one via a subagent — plan, implement, verify green on cc-ci, open a recipe PR (and, only if a cc-ci test went stale, a verified cc-ci test PR). Collects results into one summary listing every PR to review. Rolling pool by default — works through recipes ALPHABETICALLY keeping DRONE_RUNNER_CAPACITY (the drone runner's slots, currently 2) subagents running at once, starting the next as each finishes; --sequential for one-at-a-time, --capacity N to override the pool size, --parallel to start all at once, --dry-run to preview. NEVER merges. Built to run once weekly on a cron. Invoke as /upgrade-all.
--- ---
# upgrade-all # upgrade-all
@@ -14,7 +14,7 @@ Drives cc-ci over `ssh cc-ci`. Logs/summary go to `/srv/cc-ci/.cc-ci-logs/upgrad
**Runs as the `cc-ci-upgrader` agent.** This skill is normally executed by a dedicated, observable **Runs as the `cc-ci-upgrader` agent.** This skill is normally executed by a dedicated, observable
**one-shot job agent** — `cc-ci-upgrader` — spun up under remote-control (viewable/steerable at **one-shot job agent** — `cc-ci-upgrader` — spun up under remote-control (viewable/steerable at
claude.ai/code, like the Builder) by `cc-ci-plan/launch-upgrader.sh`. That agent runs this skill to claude.ai/code, like the Builder) by `scripts/cc-ci/launch-upgrader.sh`. That agent runs this skill to
completion, then **stops and stays idle** so the run + summary remain reviewable in the web UI (it does completion, then **stops and stays idle** so the run + summary remain reviewable in the web UI (it does
NOT self-terminate). The weekly cron just invokes `launch-upgrader.sh start`; the next week's run NOT self-terminate). The weekly cron just invokes `launch-upgrader.sh start`; the next week's run
clears the idle session and starts fresh. You can also run `/upgrade-all` inline in any `/srv/cc-ci` clears the idle session and starts fresh. You can also run `/upgrade-all` inline in any `/srv/cc-ci`
@@ -62,7 +62,7 @@ Then **reclaim leaked overlay IPs and guard against `proxy` VIP exhaustion.** Th
overlay (a `/24` = 254 VIPs that EVERY recipe deploy joins) leaks endpoints under concurrent stack overlay (a `/24` = 254 VIPs that EVERY recipe deploy joins) leaks endpoints under concurrent stack
`rm` (a Swarm endpoint-GC race); over many days of churn the pool exhausts and new test deploys hang `rm` (a Swarm endpoint-GC race); over many days of churn the pool exhausts and new test deploys hang
in Swarm `New` state with `could not find an available IP while allocating VIP` — which looks exactly in Swarm `New` state with `could not find an available IP while allocating VIP` — which looks exactly
like a recipe failure but is infra (root-caused 2026-06-12; see cc-ci-plan `plan-proxy-vip-exhaustion-fix.md`). like a recipe failure but is infra (root-caused 2026-06-12; see archive `plan-proxy-vip-exhaustion-fix.md`).
Reclaim before the run: Reclaim before the run:
``` ```
# 1. reclaim leaked per-stack overlay networks (cheap, always safe) # 1. reclaim leaked per-stack overlay networks (cheap, always safe)
@@ -93,11 +93,11 @@ ssh cc-ci 'docker image prune -af --filter until=168h 2>&1 | tail -1; df -h / |
## 1. Build the candidate list ## 1. Build the candidate list
Enrolled recipes = the cc-ci `tests/<recipe>/` dirs (same set `ci-test-review` sweeps), **MINUS any Enrolled recipes = the cc-ci `tests/<recipe>/` dirs (same set `ci-test-review` sweeps), **MINUS any
recipe tagged `external` in `cc-ci-plan/used-recipes.md`** — recipes cc-ci uses/tests but does NOT recipe tagged `external` in `data/cc-ci/used-recipes.md`** — recipes cc-ci uses/tests but does NOT
maintain (someone else upgrades them, e.g. **uptime-kuma**). `used-recipes.md` is the canonical maintain (someone else upgrades them, e.g. **uptime-kuma**). `used-recipes.md` is the canonical
inventory of every recipe we use; only its `weekly` rows get an upgrade survey + PR here. inventory of every recipe we use; only its `weekly` rows get an upgrade survey + PR here.
``` ```
EXTERNAL=$(awk '!/^[[:space:]]*#/ && $2=="external"{print $1}' /srv/cc-ci/cc-ci-plan/used-recipes.md) EXTERNAL=$(awk '!/^[[:space:]]*#/ && $2=="external"{print $1}' /srv/cc-ci/data/cc-ci/used-recipes.md)
ssh cc-ci 'cd /root/cc-ci/tests && ls -d */' | sed 's#/##' \ ssh cc-ci 'cd /root/cc-ci/tests && ls -d */' | sed 's#/##' \
| grep -vE '^(_generic|unit|__pycache__)$' \ | grep -vE '^(_generic|unit|__pycache__)$' \
| grep -vxF -f <(printf '%s\n' "$EXTERNAL") # drop externally-maintained recipes | grep -vxF -f <(printf '%s\n' "$EXTERNAL") # drop externally-maintained recipes
@@ -109,7 +109,7 @@ can still upgrade one on request.)
checking versions, reading open PRs, or deciding it is up-to-date.** This is the first per-recipe checking versions, reading open PRs, or deciding it is up-to-date.** This is the first per-recipe
survey action, including for recipes that end up skipped. The helper syncs mirror `main` and closes survey action, including for recipes that end up skipped. The helper syncs mirror `main` and closes
PRs whose changes are already upstream. It requires a local recipe checkout; if absent, stage that PRs whose changes are already upstream. It requires a local recipe checkout; if absent, stage that
checkout first (see `cc-ci-plan/plan-proxy-vip-exhaustion-fix.md` / the host-rebuild memory): checkout first (see `archive/original-build/cc-ci-plan/plan-proxy-vip-exhaustion-fix.md` / the host-rebuild memory):
``` ```
set -a; . /srv/cc-ci/.testenv; set +a set -a; . /srv/cc-ci/.testenv; set +a
ssh cc-ci "GITEA_USERNAME='$GITEA_USERNAME' GITEA_PASSWORD='$GITEA_PASSWORD' GITEA_URL='$GITEA_URL' bash -s <recipe> --reconcile-only" \ ssh cc-ci "GITEA_USERNAME='$GITEA_USERNAME' GITEA_PASSWORD='$GITEA_PASSWORD' GITEA_URL='$GITEA_URL' bash -s <recipe> --reconcile-only" \
@@ -157,7 +157,7 @@ ssh cc-ci 'export PATH=/run/current-system/sw/bin:$PATH; R=<r>; \
``` ```
**Mandatory registry cross-check for EVERY recipe and EVERY image, even if abra says current:** after **Mandatory registry cross-check for EVERY recipe and EVERY image, even if abra says current:** after
reconciling the mirror and refreshing the recipe checkout, run reconciling the mirror and refreshing the recipe checkout, run
`python3 /srv/cc-ci/cc-ci-plan/resolve-images.py <recipe> --recipe-dir /root/.abra/recipes` `python3 /srv/cc-ci/scripts/cc-ci/resolve-images.py <recipe> --recipe-dir /root/.abra/recipes`
on cc-ci. Read the JSON `images`, `upgrades_available`, `unresolved`, and `all_resolved` fields. on cc-ci. Read the JSON `images`, `upgrades_available`, `unresolved`, and `all_resolved` fields.
The candidate list is the **union** of abra's upgrades and the resolver's upgrades. CryptPad's The candidate list is the **union** of abra's upgrades and the resolver's upgrades. CryptPad's
`version-YYYY.M.D` app tag is a known counterexample: abra only reports a parse warning, while the `version-YYYY.M.D` app tag is a known counterexample: abra only reports a parse warning, while the
@@ -181,7 +181,7 @@ floating, or lacks comparable tags, investigate it directly and record the evide
record `unverified` with the image and reason; never fold it into `up-to-date`. `dirty-worktree` record `unverified` with the image and reason; never fold it into `up-to-date`. `dirty-worktree`
applies only to real tracked edits. A tag+digest parse failure is not `not-fetchable`. applies only to real tracked edits. A tag+digest parse failure is not `not-fetchable`.
Run `python3 /srv/cc-ci/cc-ci-plan/audit-sources.py --security-sources` once for the full inventory Run `python3 /srv/cc-ci/scripts/cc-ci/audit-sources.py --security-sources` once for the full inventory
and include any `NO VERIFIED CVE SOURCE` recipes or failed advisory sources in the weekly summary. and include any `NO VERIFIED CVE SOURCE` recipes or failed advisory sources in the weekly summary.
Do not describe their CVE count as clean. This audit is a coverage check, not a substitute for Do not describe their CVE count as clean. This audit is a coverage check, not a substitute for
`advisory-scan.py` on each actual upgrade window. `advisory-scan.py` on each actual upgrade window.
@@ -275,7 +275,7 @@ End with the report path and a reminder that **nothing was merged**.
## 6. Launch the public Recipe Report ## 6. Launch the public Recipe Report
Once the summary is written, kick off the weekly public report (its own agent; model overridable via Once the summary is written, kick off the weekly public report (its own agent; model overridable via
REPORT_BACKEND/REPORT_MODEL, defaults to opencode-go/deepseek-v4.1-flash): **`python3 /srv/cc-ci/cc-ci-plan/launch-report.py fresh`** (use `fresh`, not `start` — the report REPORT_BACKEND/REPORT_MODEL, defaults to opencode-go/deepseek-v4.1-flash): **`python3 /srv/cc-ci/scripts/cc-ci/launch-report.py fresh`** (use `fresh`, not `start` — the report
is a one-shot and must always run a NEW session for THIS week, even if a previous report session is is a one-shot and must always run a NEW session for THIS week, even if a previous report session is
still around). It runs `/recipe-report`, reviews this run + the live recipe/PR state, and publishes to still around). It runs `/recipe-report`, reviews this run + the live recipe/PR state, and publishes to
https://report.ci.commoninternet.net. Fire-and-forget — it runs independently; you can then go idle. https://report.ci.commoninternet.net. Fire-and-forget — it runs independently; you can then go idle.
@@ -300,7 +300,7 @@ https://report.ci.commoninternet.net. Fire-and-forget — it runs independently;
- **Never merges**; failures/ skips are surfaced and retried next week — safe to re-run anytime. - **Never merges**; failures/ skips are surfaced and retried next week — safe to re-run anytime.
## Cron ## Cron
Designed for a weekly Claude Code scheduled task that runs **`cc-ci-plan/launch-upgrader.sh start`** — Designed for a weekly Claude Code scheduled task that runs **`scripts/cc-ci/launch-upgrader.sh start`** —
which spins up the `cc-ci-upgrader` remote-control agent to run this skill to completion (the agent which spins up the `cc-ci-upgrader` remote-control agent to run this skill to completion (the agent
then stays idle/viewable). The cron does NOT invoke `/upgrade-all` inline. then stays idle/viewable). The cron does NOT invoke `/upgrade-all` inline.
@@ -311,7 +311,7 @@ install a weekly job at T0's day-of-week + `HH:MM` (`MM HH * * DOW`) running `la
start`. Then **verify the first kickoff** actually launches the `cc-ci-upgrader` agent. Do NOT install start`. Then **verify the first kickoff** actually launches the `cc-ci-upgrader` agent. Do NOT install
it earlier — while the loops are still building cc-ci it would contend for the shared host; until then it earlier — while the loops are still building cc-ci it would contend for the shared host; until then
run it manually via `launch-upgrader.sh start`/`fresh`. Full procedure: Phase 5 plan §4 run it manually via `launch-upgrader.sh start`/`fresh`. Full procedure: Phase 5 plan §4
(`cc-ci-plan/plan-phase5-verify-upgrade-flow.md`). (`archive/original-build/cc-ci-plan/plan-phase5-verify-upgrade-flow.md`).
Re-running is idempotent: already-current recipes report `SKIPPED — up-to-date`; recipes with an open Re-running is idempotent: already-current recipes report `SKIPPED — up-to-date`; recipes with an open
PR for the same branch report the existing PR rather than duplicating it. PR for the same branch report the existing PR rather than duplicating it.
+2 -2
View File
@@ -85,7 +85,7 @@ failure (AI — this is the `ci-test-review` step-3 diagnosis):
> ### ⚠️ RECONCILE FROM UPSTREAM FIRST — always, before any PR work or upgrade check > ### ⚠️ RECONCILE FROM UPSTREAM FIRST — always, before any PR work or upgrade check
> ``` > ```
> cc-ci-plan/reconcile-upstream.sh <recipe>... # or --all > scripts/cc-ci/reconcile-upstream.sh <recipe>... # or --all
> ``` > ```
> Deterministic, idempotent, and safe (recipe work lives in branches, never on mirror `main`). It > Deterministic, idempotent, and safe (recipe work lives in branches, never on mirror `main`). It
> force-syncs each mirror to coopcloud's **default branch — resolved from the API, `main` OR > force-syncs each mirror to coopcloud's **default branch — resolved from the API, `main` OR
@@ -124,7 +124,7 @@ branch off `main`, in a clone you're not racing the loops on.)
`tests/<recipe>/` (custom tests, overlays, fixtures). Read: `tests/<recipe>/` (custom tests, overlays, fixtures). Read:
- the failing test (the sweep / carry-over names it), - the failing test (the sweep / carry-over names it),
- the recipe's current `compose.yml` + upstream changelog (use the per-recipe registry - the recipe's current `compose.yml` + upstream changelog (use the per-recipe registry
`cc-ci-plan/upstream/<recipe>.md` for the release-notes URLs — the `/upgrade-all` diagnosis `data/cc-ci/upstream/<recipe>.md` for the release-notes URLs — the `/upgrade-all` diagnosis
already identified what changed), already identified what changed),
- what the test currently asserts vs what the new version does. - what the test currently asserts vs what the new version does.
+4 -4
View File
@@ -14,9 +14,9 @@ the 2026-08-03 wordpress enrollment (cc-ci PR #14).
2. `tests/<recipe>/` enrolled in the cc-ci repo (this is what `/upgrade-all` + `ci-test-review` 2. `tests/<recipe>/` enrolled in the cc-ci repo (this is what `/upgrade-all` + `ci-test-review`
enumerate). enumerate).
3. `POLL_REPOS` in `nix/modules/bridge.nix` includes the mirror (the `!testme` bridge). 3. `POLL_REPOS` in `nix/modules/bridge.nix` includes the mirror (the `!testme` bridge).
4. `cc-ci-plan/used-recipes.md` has a `<recipe> weekly` row (orchestrator repo — `/upgrade-all` 4. `data/cc-ci/used-recipes.md` has a `<recipe> weekly` row (orchestrator repo — `/upgrade-all`
skips recipes without it or tagged `external`). skips recipes without it or tagged `external`).
5. `cc-ci-plan/upstream/<recipe>.md` registry entry (release-notes URLs + standing notes). 5. `data/cc-ci/upstream/<recipe>.md` registry entry (release-notes URLs + standing notes).
## Preconditions ## Preconditions
@@ -86,8 +86,8 @@ cd … && git checkout -b test/<recipe>-enroll-$(date -u +%Y%m%d)
### 5. Inventory + registry (orchestrator repo, direct to main) ### 5. Inventory + registry (orchestrator repo, direct to main)
- `cc-ci-plan/used-recipes.md`: add `<recipe> weekly` row (alphabetical). - `data/cc-ci/used-recipes.md`: add `<recipe> weekly` row (alphabetical).
- `cc-ci-plan/upstream/<recipe>.md`: images table (source repo + releases/changelog links) + - `data/cc-ci/upstream/<recipe>.md`: images table (source repo + releases/changelog links) +
standing notes (setup-wizard behavior, auth caveats, known upgrade traps). standing notes (setup-wizard behavior, auth caveats, known upgrade traps).
- Commit + push (doc commits go direct to main in this repo). - Commit + push (doc commits go direct to main in this repo).