Update weekly workflow skills for relocated CI paths
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
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
|
||||
@@ -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
|
||||
**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
|
||||
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`
|
||||
@@ -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
|
||||
`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
|
||||
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:
|
||||
```
|
||||
# 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
|
||||
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
|
||||
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#/##' \
|
||||
| grep -vE '^(_generic|unit|__pycache__)$' \
|
||||
| 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
|
||||
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
|
||||
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
|
||||
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
|
||||
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.
|
||||
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
|
||||
@@ -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`
|
||||
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.
|
||||
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.
|
||||
@@ -275,7 +275,7 @@ End with the report path and a reminder that **nothing was merged**.
|
||||
|
||||
## 6. Launch the public Recipe Report
|
||||
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
|
||||
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.
|
||||
@@ -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.
|
||||
|
||||
## 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
|
||||
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
|
||||
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
|
||||
(`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
|
||||
PR for the same branch report the existing PR rather than duplicating it.
|
||||
|
||||
Reference in New Issue
Block a user