Update weekly workflow skills for relocated CI paths
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
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
|
||||
@@ -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.
|
||||
So **before** writing `SKIPPED — up-to-date`, do a **direct upstream check ONLY for those abra-unparseable
|
||||
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).
|
||||
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
|
||||
@@ -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`)
|
||||
— 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`).**
|
||||
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
|
||||
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
|
||||
(`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`).
|
||||
Format + how it's used: `cc-ci-plan/upstream/README.md`.
|
||||
releases/changelog), **write/update** `data/cc-ci/upstream/<recipe>.md` and commit it
|
||||
(`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: `data/cc-ci/upstream/README.md`.
|
||||
- **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-
|
||||
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:
|
||||
|
||||
```
|
||||
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-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 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
|
||||
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
|
||||
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)
|
||||
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
|
||||
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
|
||||
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)
|
||||
```
|
||||
@@ -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
|
||||
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
|
||||
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.
|
||||
`**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
|
||||
|
||||
Reference in New Issue
Block a user