Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa406a1660 | ||
|
|
43bee5b833 | ||
|
|
a63012bcab | ||
|
|
a20f633697 | ||
|
|
d569e6528f | ||
|
|
870f00d3e3 | ||
|
|
53f204fc8c | ||
|
|
c7545505f2 | ||
|
|
a47c1caa8c |
@@ -0,0 +1,45 @@
|
|||||||
|
# lasuite-docs upstream sources
|
||||||
|
|
||||||
|
## lasuite/impress-frontend + impress-backend + impress-yhub + impress-y-provider
|
||||||
|
- image: lasuite/impress-frontend, lasuite/impress-backend, lasuite/impress-yhub, lasuite/impress-y-provider
|
||||||
|
- source: https://github.com/suitenumerique/docs (La Suite Docs / impress)
|
||||||
|
- releases: https://github.com/suitenumerique/docs/releases
|
||||||
|
- upgrade guide: https://github.com/suitenumerique/docs/blob/main/UPGRADE.md
|
||||||
|
- security: https://github.com/suitenumerique/docs/security
|
||||||
|
|
||||||
|
## valkey/valkey (yhub-valkey)
|
||||||
|
- image: valkey/valkey
|
||||||
|
- source: https://github.com/valkey-io/valkey
|
||||||
|
- releases: https://github.com/valkey-io/valkey/releases
|
||||||
|
- security: https://github.com/valkey-io/valkey/security/advisories
|
||||||
|
|
||||||
|
## ghcr.io/docspec/api (docspec; formerly archived Elixir ghcr.io/docspecio/api)
|
||||||
|
- image: ghcr.io/docspec/api
|
||||||
|
- source: https://github.com/docspec/docspec
|
||||||
|
- releases: https://github.com/docspec/docspec/releases
|
||||||
|
|
||||||
|
## redis (celery broker/cache)
|
||||||
|
- image: redis
|
||||||
|
- source: https://github.com/redis/redis
|
||||||
|
- releases: https://github.com/redis/redis/releases
|
||||||
|
|
||||||
|
## bitnamilegacy/minio (minio)
|
||||||
|
- image: bitnamilegacy/minio
|
||||||
|
- source: https://github.com/minio/minio
|
||||||
|
- releases: https://github.com/minio/minio/releases
|
||||||
|
|
||||||
|
## pgautoupgrade/pgautoupgrade (db)
|
||||||
|
- image: pgautoupgrade/pgautoupgrade
|
||||||
|
- source: https://github.com/pgautoupgrade/docker-postgres-upgrade
|
||||||
|
- releases: https://github.com/pgautoupgrade/docker-postgres-upgrade/releases
|
||||||
|
|
||||||
|
## nginx (web)
|
||||||
|
- image: nginx
|
||||||
|
- source: https://github.com/nginx/nginx
|
||||||
|
- releases: https://nginx.org/en/CHANGES (security: https://nginx.org/en/security_advisories.html)
|
||||||
|
|
||||||
|
## node:22-alpine (jwt-keys sidecar)
|
||||||
|
- image: node
|
||||||
|
- source: https://github.com/nodejs/node
|
||||||
|
- releases: https://github.com/nodejs/node/releases
|
||||||
|
- security: https://nodejs.org/en/blog/vulnerability
|
||||||
@@ -2,24 +2,15 @@
|
|||||||
|
|
||||||
## Build backlog
|
## Build backlog
|
||||||
|
|
||||||
- [x] Re-inventory current PR/branch/comment/build state — PR#7 is the sole current upgrade PR; historical PR#4 is closed
|
- [x] Inventory open and closed Ghost upgrade PRs and branches.
|
||||||
- [x] Trigger fresh post-proxy `!testme` on PR#7 (`14575de6`) — comment `15814`, Drone build #1332
|
- [ ] Trigger one fresh post-proxy `!testme` on the sole open upgrade PR #9.
|
||||||
- [x] Watch build #1332 and collect tier/teardown evidence — success, level 5/5, all lifecycle tiers and lint passed
|
- [ ] Record the fresh build verdict and classify the historical 2026-06-12 failures.
|
||||||
- [x] Classify the fresh retry and update the operator-facing PR state — Gitea result comment `15815` reports passed
|
- [ ] Verify exactly one operator-ready open Ghost upgrade PR remains.
|
||||||
- [x] Verify no Ghost resources leak after the retry — no `ghos-*`/`dev-ghost` stacks, services, or volumes
|
- [ ] Verify no `ghos-*` or `dev-ghost` stacks/volumes remain.
|
||||||
- [x] M1 current evidence Adversary-verified — PASS @2026-09-07T21:29:58Z
|
- [ ] Claim M1 after the fresh retry evidence is recorded.
|
||||||
- [x] M2 current operator-ready outcome Adversary-verified — PASS @2026-09-07T21:29:58Z
|
- [ ] Claim M2 after the final operator-ready state is verified.
|
||||||
- [x] Fresh current PR#8 post-proxy retry — comment 16237, build #50, level 5/5
|
|
||||||
- [x] Fresh PR#8 cleanup and duplicate inventory — exactly one open PR, no Ghost resources
|
|
||||||
- [x] Fresh M1/M2 revalidation Adversary-verified — PASS @2026-10-13T03:14:20Z
|
|
||||||
- [x] Fresh PR#8 retry after level-4 lint uncertainty — comment 16297, build #66, level 5/5
|
|
||||||
- [x] Fresh M1/M2 revalidation for build #66 — Adversary PASS @2026-10-20T03:22:00Z; operator classification comment #16299 added
|
|
||||||
- [x] Fresh current-head PR#8 retry — comment 16382, build #94, level 5/5
|
|
||||||
- [x] [adversary] **[A5] The claimed build #66 was stale for the advanced PR head** — cold inventory found PR#8 had advanced from `dbe40ecb` to `6121a987`; build #66 therefore could not verify the current claim. @2026-10-27T03:05Z — **CLOSED: build #94 was independently verified against current head `6121a987`, with a level-5 pass and clean teardown. M1+M2 PASS @03:06Z**
|
|
||||||
|
|
||||||
## Adversary findings
|
## Adversary findings
|
||||||
|
|
||||||
- [x] [adversary] **[A1] Build #585 must NOT be used as the "clean post-proxy pass"** — it ran pre-proxy (03:59Z vs proxy fix at 05:38Z) and tested PR#5 (cfold probe), not PR#4. A genuine post-proxy !testme on PR#4 is required for M1. @2026-06-13T06:22Z — **CLOSED: Builder used build #612 (post-proxy, 06:13Z), not #585. M1 PASS @06:38Z**
|
- [ ] [adversary] **[A6] Current phase lacks a fresh post-proxy retry** — PR#9 head `256c0f879bc4b64bf321161c1e8bb3338b826058` has build #160 from 2026-11-20, but that run is over 24 hours old and STATUS-ghost says no retry has been triggered in this phase. Repro: inspect PR#9 comments #16732/#16733 and `/var/lib/cc-ci-runs/160/results.json`; trigger a new exact `!testme` and verify the resulting build against the unchanged/current head. @2026-11-23T18:17Z
|
||||||
- [x] [adversary] **[A2] `update_config.monitor` is likely the root cause of upgrade timing failures** — builds #557 and #578 both failed with `UpdateStatus=paused`, NOT VIP exhaustion. @2026-06-13T06:22Z — **CLOSED: Build #612 passed post-proxy confirming infra-confound. Operator comment explains MySQL timing under load. M1+M2 PASS @06:38Z**
|
- [ ] [adversary] **[A7] Current PR lacks operator-facing historical classification** — PR#9's result comment #16733 reports only the green build; the required explanation separating the 2026-06-12 proxy/IPAM and load/timing failures is present only on superseded PR#8 comment #16299. Add an accurate classification/readiness comment to PR#9 after the fresh retry. @2026-11-23T18:17Z
|
||||||
- [x] [adversary] **[A3] PR#5 (cfold probe) should be closed once PR#4 has its verdict** — not the canonical upgrade. @2026-06-13T06:22Z — **CLOSED: PR#5 closed (verified). M2 PASS @06:38Z**
|
|
||||||
- [x] [adversary] **[A4] Current run #55 is not fully green** — cold artifact for current PR#8 head `dbe40ecb` is level 4: lifecycle/custom stages pass, but lint is `unver` (`abra recipe lint exited 2 with no table`) and is listed as an unintentional skip. Result comment #16249 says only `passed` without explaining the blocker. Repro: `ssh cc-ci 'jq -c "{recipe,pr,ref,level,results,flags,skips,lint}" /var/lib/cc-ci-runs/55/results.json'`. @2026-10-20T03:10:02Z — **CLOSED: fresh build #66 for the same current head reports level 5 with lint pass and no unintentional skips; M2 PASS @2026-10-20T03:22Z**
|
|
||||||
|
|||||||
+10
-214
@@ -1,219 +1,15 @@
|
|||||||
# JOURNAL — phase ghost
|
# JOURNAL — phase ghost
|
||||||
|
|
||||||
## 2026-06-13T07:10Z — Phase start, PR inventory, fresh run triggered
|
## 2026-11-23 — Bootstrap and inventory
|
||||||
|
|
||||||
### PR inventory findings
|
Access checks passed: `ssh cc-ci 'hostname && whoami && nixos-version'` returned
|
||||||
|
`cc-ci`, `root`, and NixOS `26.05.20260906.c257840`; Gitea API version returned
|
||||||
|
were present on cc-ci.
|
||||||
|
|
||||||
Three open PRs on recipe-maintainers/ghost:
|
The historical plan named PR #4, but live inventory shows that PR closed on
|
||||||
|
2026-06-15. PR #9 is the only open Ghost upgrade PR and is therefore the correct
|
||||||
|
current target. Its existing build #160 is prior evidence only; this phase needs
|
||||||
|
a fresh post-proxy trigger.
|
||||||
|
|
||||||
- **PR#4** (d88f5801): `chore: upgrade to 1.4.0+6.44.1-alpine` — the correct upgrade PR.
|
The unrelated working-tree modification to `opencode.json` was preserved and not
|
||||||
Had 4 pre-proxy-fix failures, all on 2026-06-12. The detailed failure in build 519 showed
|
touched.
|
||||||
MySQL 8.0→8.4 data-dir timing under load (Swarm UpdateStatus=paused) but the server
|
|
||||||
was under unusual load at the time (IPAM fix, Docker daemon restart, multiple concurrent builds).
|
|
||||||
The 3/3 budget was exhausted and then a 4th run was triggered at 21:51Z by the cfold/ghost agent,
|
|
||||||
also failing (pre-proxy-fix).
|
|
||||||
|
|
||||||
- **PR#5** (d42d0f7c): `ci: cfold ghost green-head probe` — created by cfold/ghost agent as
|
|
||||||
sweep probe to verify the old-green head separately from the current PR#4 head regression.
|
|
||||||
Passed build 585 at 03:59Z on 2026-06-13 (BEFORE proxy fix at 05:38Z), so this pass was
|
|
||||||
on old infra. Not the correct PR — close after M2.
|
|
||||||
|
|
||||||
- **PR#3** (720faa0b): `chore: upgrade to 1.3.0+6.43.1-alpine` — superseded by PR#4. Close.
|
|
||||||
|
|
||||||
### Proxy fix status
|
|
||||||
|
|
||||||
`docker network inspect proxy` shows subnet 10.10.0.0/16 — the /16 fix is in place.
|
|
||||||
pvfix completed at 05:38Z on 2026-06-13, pvcheck completed (M1+M2 PASS).
|
|
||||||
|
|
||||||
### No resource leaks
|
|
||||||
|
|
||||||
`docker stack ls`, `docker service ls`, `docker volume ls` — no ghost stacks or volumes.
|
|
||||||
|
|
||||||
### Decision: trigger fresh post-proxy !testme on PR#4
|
|
||||||
|
|
||||||
The phase plan says "Do not count pre-proxy failures as current recipe evidence" and to run
|
|
||||||
one clean post-proxy `!testme`. All 4 failures on PR#4 were pre-proxy-fix.
|
|
||||||
|
|
||||||
PR#5's build 585 passed the OLD head (d42d0f7c, ghost 6.44.0) but that was also pre-proxy-fix.
|
|
||||||
The upgrade path under test in PR#4 is different: upgrading to 1.4.0 (ghost 6.44.1 + mysql 8.4
|
|
||||||
from mysql 8.0 base). This is the critical path.
|
|
||||||
|
|
||||||
### Why the prior failures may be infra-confounded
|
|
||||||
|
|
||||||
The diagnostic comment on PR#4 (build 519) specifically mentions "Docker daemon had just been
|
|
||||||
restarted (IPAM fix), multiple concurrent builds in progress, resulting in slower MySQL startup".
|
|
||||||
This is a direct load-induced timing issue, not a systematic recipe bug. The /16 proxy fix means
|
|
||||||
there's no longer VIP exhaustion risk, and we're not in the middle of an IPAM repair.
|
|
||||||
|
|
||||||
However, the MySQL 8.0→8.4 data-dir upgrade timing is a real concern even without load pressure —
|
|
||||||
the update_config.monitor: 5s default may genuinely be too short for the migration. The fresh run
|
|
||||||
will clarify this.
|
|
||||||
|
|
||||||
## 2026-06-13T06:20Z — Build #612 PASSED — level 5/5
|
|
||||||
|
|
||||||
Build #612 triggered by !testme on PR#4 at 06:12:48Z, completed ~06:20Z.
|
|
||||||
|
|
||||||
Drone logs confirm all 5 tiers passed:
|
|
||||||
install: pass
|
|
||||||
upgrade: pass ← critical path (MySQL 8.0→8.4 data-dir migration)
|
|
||||||
backup: pass
|
|
||||||
restore: pass
|
|
||||||
custom: pass
|
|
||||||
|
|
||||||
Level 5/5 — results.json written, summary.png + badge.svg generated.
|
|
||||||
|
|
||||||
The upgrade tier passed cleanly. This confirms the prior failures were load-induced (infra-confounded).
|
|
||||||
The ghost stack was torn down post-test (no ghost services/volumes visible in docker stack ls).
|
|
||||||
|
|
||||||
Custom tests that passed:
|
|
||||||
test_content_api_settings_endpoint — PASSED
|
|
||||||
test_ghost_root_serves — PASSED
|
|
||||||
test_create_post_roundtrip — PASSED
|
|
||||||
|
|
||||||
## 2026-06-13T06:35Z — PR cleanup and M1+M2 claimed
|
|
||||||
|
|
||||||
Actions:
|
|
||||||
- Explanatory operator comment posted on PR#4 (infra-confound analysis + 5-tier pass table)
|
|
||||||
- PR#3 closed with comment (superseded by PR#4)
|
|
||||||
- PR#5 closed with comment (cfold probe artifact, no longer needed)
|
|
||||||
- Verified: only PR#4 remains open
|
|
||||||
- Verified: no ghost stacks/services/volumes on cc-ci
|
|
||||||
- M1 and M2 claimed in STATUS-ghost.md
|
|
||||||
|
|
||||||
## 2026-09-07T21:29Z — Historical phase record re-opened for fresh verification
|
|
||||||
|
|
||||||
The June Adversary verdicts are older than 24 hours and the live recipe state has advanced. Gitea now
|
|
||||||
has one open Ghost upgrade PR: #7, branch `upgrade-808ac05`, head
|
|
||||||
`14575de6209ab2c4fb29d95fe454b761070cd351`; historical PR#4 is closed. PRs #3, #5, and #6 are also
|
|
||||||
closed. The host reports proxy subnet `10.10.0.0/16` and no matching Ghost stack, service, or volume.
|
|
||||||
|
|
||||||
Verification commands and output:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
ssh cc-ci 'docker network inspect proxy --format "{{range .IPAM.Config}}{{.Subnet}}{{end}}"'
|
|
||||||
# 10.10.0.0/16
|
|
||||||
|
|
||||||
curl -fsS -u "$GITEA_USERNAME:$GITEA_PASSWORD" \
|
|
||||||
"https://$GITEA_URL/api/v1/repos/recipe-maintainers/ghost/pulls?state=open&limit=50"
|
|
||||||
# #7 open ... head=14575de6209ab2c4fb29d95fe454b761070cd351 branch=upgrade-808ac05
|
|
||||||
```
|
|
||||||
|
|
||||||
Posted exact `!testme` as Gitea comment `15814` at `2026-09-07T21:29:04Z`. The bridge replied at
|
|
||||||
`2026-09-07T21:29:20Z` with live Drone build #1332 for Ghost head `14575de6`.
|
|
||||||
|
|
||||||
## 2026-09-07T21:35Z — Fresh retry and cleanup verified
|
|
||||||
|
|
||||||
Drone API result for build #1332 was `status=success`, with parameters `RECIPE=ghost`, `PR=7`,
|
|
||||||
`REF=14575de6209ab2c4fb29d95fe454b761070cd351`, and the result artifact reported level 5:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{"backup":"pass","custom":"pass","install":"pass","restore":"pass","upgrade":"pass"}
|
|
||||||
```
|
|
||||||
|
|
||||||
The artifact also reports the `lint` stage as pass. Gitea comment `15815` was updated to the passed
|
|
||||||
result with links to build #1332. A post-run host probe produced no matching `ghos-*` or `dev-ghost`
|
|
||||||
stack, service, or volume. `REVIEW-ghost.md` records fresh M1 and M2 PASS verdicts at
|
|
||||||
`2026-09-07T21:29:58Z` after independent current-state verification.
|
|
||||||
|
|
||||||
## 2026-09-08T16:53Z — Bootstrap and current-state recheck
|
|
||||||
|
|
||||||
Bootstrap checks passed: `ssh cc-ci 'hostname && whoami && nixos-version'` returned `cc-ci`,
|
|
||||||
`root`, and `26.05.20260906.c257840`; the authenticated Gitea API returned version `1.27.3`; and
|
|
||||||
the wildcard probe resolved to `195.201.88.249`. `git pull --rebase` reported an up-to-date clone.
|
|
||||||
|
|
||||||
Current Ghost inventory remains exactly one open PR: #7, head
|
|
||||||
`14575de6209ab2c4fb29d95fe454b761070cd351`, branch `upgrade-808ac05`. Closed PR inventory contains
|
|
||||||
PRs #1–#6, with PR#4 merged and PR#5/PR#6 closed. Gitea comments #15814 and #15815 contain the
|
|
||||||
fresh `!testme` and passed result for build #1332.
|
|
||||||
|
|
||||||
The authoritative host artifact `/var/lib/cc-ci-runs/1332/results.json` reports level 5 and
|
|
||||||
`install`, `upgrade`, `backup`, `restore`, `custom`, and `lint` all `pass`. The host probe reports
|
|
||||||
proxy subnet `10.10.0.0/16` and no matching Ghost stacks, services, volumes, or networks. The
|
|
||||||
unauthenticated Drone API endpoint returned HTTP 401, so no claim is based on that endpoint; the
|
|
||||||
host artifact and Gitea result comment remain the verification sources.
|
|
||||||
|
|
||||||
## 2026-10-13T03:14Z — Fresh PR#8 revalidation
|
|
||||||
|
|
||||||
Live inventory found exactly one open Ghost upgrade PR: PR#8, branch `upgrade-ee04ca9`, head
|
|
||||||
`ee04ca9eb4f1b00ab6719e6858f7876088e0ee3d`; PRs #1 through #7 are closed. The proxy network is
|
|
||||||
`10.10.0.0/16`.
|
|
||||||
|
|
||||||
Triggered `!testme` as Gitea comment `16237` at `2026-10-13T03:11:52Z`. The bridge created build
|
|
||||||
#50 and result comment `16238`. The cold artifact `/var/lib/cc-ci-runs/50/results.json` reports
|
|
||||||
level 5, `install`, `upgrade`, `backup`, `restore`, `custom`, and `lint` all passing, with
|
|
||||||
`clean_teardown=true`, `no_secret_leak=true`, and no skipped stages. The upgrade stage included
|
|
||||||
`tests.ghost.test_upgrade.test_upgrade_preserves_state`.
|
|
||||||
|
|
||||||
Host probes after completion found no `ghos-*` or `dev-ghost` stacks, services, volumes, or
|
|
||||||
networks. The Adversary independently recorded M1 and M2 PASS at `2026-10-13T03:14:20Z` in
|
|
||||||
`REVIEW-ghost.md`.
|
|
||||||
|
|
||||||
## 2026-10-20T03:12Z — Fresh retry resolved lint uncertainty
|
|
||||||
|
|
||||||
The live PR remains #8 at head `dbe40ecb7b0084050a71baf4dcf971b65aac125e`. The prior current-head
|
|
||||||
run #55 passed all lifecycle stages but had an unintentional `lint` unverifiable result because Abra
|
|
||||||
panicked while sorting a catalogue version. One fresh retry was triggered with comment #16297. It
|
|
||||||
created build #66, which completed successfully at level 5/5.
|
|
||||||
|
|
||||||
Verification commands and results:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
curl -fsS https://drone.ci.autonomic.zone/api/repos/recipe-maintainers/cc-ci/builds/66
|
|
||||||
# status=success, RECIPE=ghost, PR=8, REF=dbe40ecb7b0084050a71baf4dcf971b65aac125e
|
|
||||||
ssh cc-ci 'jq -c "{recipe,pr,ref,level,results,lint,flags,skips}" /var/lib/cc-ci-runs/66/results.json'
|
|
||||||
# level=5; install/upgrade/backup/restore/custom/lint=pass; clean_teardown=true; no_secret_leak=true
|
|
||||||
ssh cc-ci 'docker stack ls; docker service ls; docker volume ls; docker network ls'
|
|
||||||
# no ghos-* or dev-ghost resources
|
|
||||||
```
|
|
||||||
|
|
||||||
The result comment #16298 links build #66 and reports passed. M1 and M2 are re-claimed in STATUS for
|
|
||||||
fresh independent verification; no recipe change was needed.
|
|
||||||
|
|
||||||
## 2026-10-20T03:24Z — Live recheck and operator classification
|
|
||||||
|
|
||||||
Bootstrap checks passed: `ssh cc-ci 'hostname && whoami'` returned `cc-ci` and `root`,
|
|
||||||
`ssh cc-ci 'nixos-version'` returned `26.05.20260906.c257840 (Yarara)`, authenticated Gitea API
|
|
||||||
version is `1.27.3`, and a random `probe-*.ci.commoninternet.net` resolved to gateway address
|
|
||||||
`195.201.88.249`.
|
|
||||||
|
|
||||||
Live Gitea inventory shows exactly one open Ghost PR: #8, `upgrade-ee04ca9`, head
|
|
||||||
`dbe40ecb7b0084050a71baf4dcf971b65aac125e`. Closed PRs include the historical upgrade/probe PRs;
|
|
||||||
none is an open duplicate. The clean post-proxy retry is comment #16297 / build #66. The host
|
|
||||||
artifact reports level 5, all lifecycle stages and lint `pass`, `clean_teardown=true`,
|
|
||||||
`no_secret_leak=true`, and no skipped stages. The proxy subnet is `10.10.0.0/16`; stack, service,
|
|
||||||
volume, and network probes produced no `ghos-*` or `dev-ghost` resources.
|
|
||||||
|
|
||||||
Posted operator-facing classification comment #16299 on PR #8. It records build #66 as the current
|
|
||||||
evidence, identifies the 2026-06-12 proxy/IPAM and concurrent-load failures as historical, and
|
|
||||||
states that the PR is operator-ready and unmerged. No recipe or test change was needed.
|
|
||||||
|
|
||||||
## 2026-10-20T03:26Z — M1/M2 passed and phase completed
|
|
||||||
|
|
||||||
`REVIEW-ghost.md` records fresh independent PASSes for M1 and M2 at 2026-10-20T03:22:00Z. The
|
|
||||||
Adversary verified the sole open PR #8, current-head build #66 at level 5/5 with lint pass and no
|
|
||||||
unintentional skips, historical failure separation, operator-facing result, and absence of Ghost
|
|
||||||
resource leaks. The prior level-4 lint VETO is explicitly cleared. STATUS-ghost.md now records
|
|
||||||
`## DONE`; no recipe PR was merged.
|
|
||||||
|
|
||||||
## 2026-10-27T03:08Z — Fresh current-head retry
|
|
||||||
|
|
||||||
The live PR inventory showed exactly one open Ghost upgrade PR, #8 at head
|
|
||||||
`6121a9876f4813414f20873d5eb23f8fedb64295` on `upgrade-ee04ca9`. Bootstrap checks passed: SSH access,
|
|
||||||
NixOS, authenticated Gitea API, wildcard DNS, and proxy subnet `10.10.0.0/16`.
|
|
||||||
|
|
||||||
Posted `!testme` as Gitea comment `16382`. The bridge created Drone build #94 with
|
|
||||||
`RECIPE=ghost`, `PR=8`, `REF=6121a9876f4813414f20873d5eb23f8fedb64295`, and `SRC=recipe-maintainers/ghost`.
|
|
||||||
Build #94 completed successfully. Host artifact `/var/lib/cc-ci-runs/94/results.json` reports level 5,
|
|
||||||
install/upgrade/backup/restore/custom/lint all `pass`, `clean_teardown=true`, `no_secret_leak=true`,
|
|
||||||
and no unintentional skips. Result comment `16383` reports the pass.
|
|
||||||
|
|
||||||
Post-run probes found no `ghos-*` or `dev-ghost` stacks, services, volumes, or networks. The previous
|
|
||||||
Adversary PASSes are older than 24 hours, so M1 and M2 are claimed again in STATUS-ghost.md and await
|
|
||||||
fresh independent verification. No recipe or cc-ci test change was made.
|
|
||||||
|
|
||||||
## 2026-10-27T03:14Z — Fresh M1/M2 PASS and completion
|
|
||||||
|
|
||||||
`REVIEW-ghost.md` records independent PASSes for M1 and M2 at 2026-10-27T03:06:13Z. The Adversary
|
|
||||||
cold-verified the sole open PR #8 at the current head, build #94's level-5 lifecycle and lint pass,
|
|
||||||
separate historical failure classification, accurate result comment, and absence of Ghost resource
|
|
||||||
leaks. STATUS-ghost.md now records `## DONE`; no recipe PR was merged.
|
|
||||||
|
|||||||
@@ -296,3 +296,29 @@ Ghost resources leak.
|
|||||||
**Fresh verdict:** M1 and M2 PASS. Build #94 is current-head, post-proxy, fully green evidence;
|
**Fresh verdict:** M1 and M2 PASS. Build #94 is current-head, post-proxy, fully green evidence;
|
||||||
the historical failures remain separately classified, exactly one operator-ready PR remains, and
|
the historical failures remain separately classified, exactly one operator-ready PR remains, and
|
||||||
Ghost resources are clean.
|
Ghost resources are clean.
|
||||||
|
|
||||||
|
## Current-state audit — 2026-11-23T18:17:00Z
|
||||||
|
|
||||||
|
### M1: PENDING, not claimed
|
||||||
|
|
||||||
|
- Cold Gitea inventory shows exactly one open Ghost upgrade PR: PR#9, head
|
||||||
|
`256c0f879bc4b64bf321161c1e8bb3338b826058`, branch `upgrade-f385a33`; PRs #1-#8 are
|
||||||
|
closed.
|
||||||
|
- A prior `!testme` comment #16732 on this head produced result comment #16733 and build
|
||||||
|
#160 on 2026-11-20. The host artifact independently reports `recipe=ghost`, `pr=9`,
|
||||||
|
ref `256c0f879bc4`, level 5, install/upgrade/backup/restore/custom/lint all `pass`,
|
||||||
|
no unintentional skips, `clean_teardown=true`, and `no_secret_leak=true`.
|
||||||
|
- This is useful current-head evidence, but it is more than 24 hours old and STATUS-ghost
|
||||||
|
explicitly says the post-proxy retry has not yet been triggered in this phase. M1 is not
|
||||||
|
signed off until the Builder claims it and a fresh phase retry is independently verified.
|
||||||
|
|
||||||
|
### M2: FAIL pending M1 / current operator explanation
|
||||||
|
|
||||||
|
- Cold Swarm probes show proxy subnet `10.10.0.0/16` and no `ghos-*`/`dev-ghost` stacks,
|
||||||
|
services, volumes, or networks.
|
||||||
|
- The current PR has a green level-5 result comment, but its comments do not contain a
|
||||||
|
current operator-facing classification of the 2026-06-12 failures. That explanation is
|
||||||
|
only on superseded PR#8 comment #16299, so it cannot be treated as the current PR's
|
||||||
|
final-state explanation.
|
||||||
|
- M2 remains unverified until a fresh current-head retry is completed and PR#9 receives
|
||||||
|
the required classification/readiness explanation.
|
||||||
|
|||||||
@@ -1,82 +1,29 @@
|
|||||||
# STATUS — phase ghost (ghost upgrade re-evaluation)
|
# STATUS — phase ghost
|
||||||
|
|
||||||
**Updated:** 2026-10-27T03:14:00Z
|
**Updated:** 2026-11-23T00:00Z
|
||||||
**Phase:** ghost
|
**Phase:** ghost re-evaluation
|
||||||
**Builder:** autonomic-bot
|
**Builder:** autonomic-bot
|
||||||
|
|
||||||
---
|
## Current State
|
||||||
|
|
||||||
Gate: M1 and M2 PASS, independently verified at 2026-10-27T03:06:13Z for build #94.
|
Inventory is complete. `recipe-maintainers/ghost` has exactly one open upgrade PR:
|
||||||
|
PR #9, `chore: upgrade ghost to 6.78.0-alpine`, branch `upgrade-f385a33`, head
|
||||||
|
`256c0f879bc4b64bf321161c1e8bb3338b826058`. Historical PR #4 is closed; PR #8 is
|
||||||
|
closed. No duplicate open Ghost upgrade PR exists.
|
||||||
|
|
||||||
## DONE
|
The post-proxy fresh retry has not yet been triggered in this phase.
|
||||||
|
|
||||||
M1 and M2 have fresh Adversary PASSes in `REVIEW-ghost.md` at 2026-10-27T03:06:13Z.
|
## Verification Inputs
|
||||||
|
|
||||||
| Check | Result |
|
- PR inventory: `GET /api/v1/repos/recipe-maintainers/ghost/pulls?state=open&limit=50`
|
||||||
|---|---|
|
- Closed comparison: `GET /api/v1/repos/recipe-maintainers/ghost/pulls?state=closed&limit=100`
|
||||||
| Current Ghost PR | PR#8, `upgrade-ee04ca9`, head `6121a9876f4813414f20873d5eb23f8fedb64295` |
|
- Live infrastructure check: `ssh cc-ci 'docker service ls; docker stack ls'`
|
||||||
| Fresh post-proxy retry | Gitea comment `16382`; Drone build #94 |
|
- Fresh retry trigger: comment exact body `!testme` on PR #9.
|
||||||
| Build #94 | success, level 5/5; install, upgrade, backup, restore, custom, and lint passed |
|
|
||||||
| PR result comment | Gitea comment `16383` reports passed and links build #94 |
|
|
||||||
| Operator classification comment | Gitea comment `16299` explains historical infra/load confounds and operator readiness |
|
|
||||||
| Post-run cleanup | no `ghos-*`/`dev-ghost` stacks, services, or volumes |
|
|
||||||
| M1 Adversary PASS | PASS @2026-10-27T03:06:13Z |
|
|
||||||
| M2 Adversary PASS | PASS @2026-10-27T03:06:13Z |
|
|
||||||
|
|
||||||
### Definition-of-Done checklist (ghost phase)
|
## Gate
|
||||||
|
|
||||||
- [x] Exactly one current Ghost upgrade PR is operator-ready
|
M1 not claimed. Waiting for the fresh post-proxy build result.
|
||||||
- [x] Fresh post-proxy `!testme` result is green for the current PR head
|
|
||||||
- [x] 2026-06-12 failures are classified separately from current recipe evidence
|
|
||||||
- [x] Historical duplicate PRs are closed; no current duplicate exists
|
|
||||||
- [x] No Ghost resources remain after the fresh retry
|
|
||||||
- [x] M1 and M2 have fresh Adversary PASSes for build #94
|
|
||||||
|
|
||||||
## M1 — State inventory and clean retry
|
## Blocked
|
||||||
|
|
||||||
**Result:** current canonical Ghost upgrade PR verified by build #94; Adversary PASS recorded.
|
None.
|
||||||
|
|
||||||
### Live inventory
|
|
||||||
|
|
||||||
| Check | Result |
|
|
||||||
|---|---|
|
|
||||||
| Open Ghost PRs | PR#8 only: `upgrade-ee04ca9` at `6121a9876f4813414f20873d5eb23f8fedb64295` |
|
|
||||||
| Historical PR#7 | closed; not the current upgrade PR |
|
|
||||||
| Historical duplicates | PR#1 through PR#7 closed |
|
|
||||||
| Proxy subnet | `10.10.0.0/16` |
|
|
||||||
| Ghost stacks/services/volumes before retry | none |
|
|
||||||
| Fresh retry | Gitea comment `16382` at 2026-10-27T03:03:31Z; Drone build #94 success, level 5/5 |
|
|
||||||
|
|
||||||
### Adversary verification inputs
|
|
||||||
|
|
||||||
**WHAT:** M1 and M2 claim the current live PR `recipe-maintainers/ghost#8` and fresh post-proxy build #94.
|
|
||||||
|
|
||||||
**HOW:**
|
|
||||||
|
|
||||||
```sh
|
|
||||||
set -a; . /srv/cc-ci/cc-ci-plan/load-env.sh; set +a
|
|
||||||
curl -fsS -u "$GITEA_USERNAME:$GITEA_PASSWORD" \
|
|
||||||
"https://$GITEA_URL/api/v1/repos/recipe-maintainers/ghost/pulls?state=open" \
|
|
||||||
| jq -r '.[] | [.number, .state, .head.sha, .head.ref] | @tsv'
|
|
||||||
ssh cc-ci 'docker network inspect proxy --format "{{range .IPAM.Config}}{{.Subnet}}{{end}}"; docker stack ls --format "{{.Name}}" | rg "^(ghos-|dev-ghost)" || true; docker service ls --format "{{.Name}}" | rg "(^|[-_])(ghos-|dev-ghost)" || true; docker volume ls --format "{{.Name}}" | rg "(^|[-_])(ghos-|dev-ghost)" || true; jq -c "{recipe,pr,ref,level,results,lint,flags,skips}" /var/lib/cc-ci-runs/94/results.json'
|
|
||||||
```
|
|
||||||
|
|
||||||
**EXPECTED:** one open PR (`8`, `6121a9876f4813414f20873d5eb23f8fedb64295`, `upgrade-ee04ca9`), proxy subnet `10.10.0.0/16`, and no Ghost resource output. Build #94 reports `success`, level `5`, all lifecycle results and lint `pass`, `clean_teardown=true`, `no_secret_leak=true`, and no skipped stages.
|
|
||||||
|
|
||||||
**WHERE:** Gitea issue comments `16382` and `16383`; Drone URL `https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/94`; host artifact `/var/lib/cc-ci-runs/94/results.json`; Adversary evidence in `REVIEW-ghost.md`.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Build evidence summary
|
|
||||||
|
|
||||||
| Build | Date | PR head | Result | Notes |
|
|
||||||
|---|---|---|---|---|
|
|
||||||
| 515 | 2026-06-12T01:57Z | d88f5801 | ❌ FAIL | pre-proxy-fix |
|
|
||||||
| 517 | 2026-06-12T02:42Z | d88f5801 | ❌ FAIL | pre-proxy-fix |
|
|
||||||
| 519 | 2026-06-12T03:03Z | d88f5801 | ❌ FAIL | pre-proxy-fix, MySQL timing under load |
|
|
||||||
| 557 | 2026-06-12T21:51Z | d88f5801 | ❌ FAIL | pre-proxy-fix |
|
|
||||||
| **612** | **2026-06-13T06:13Z** | **d88f5801** | **✅ PASS level 5/5** | **post-proxy-fix** |
|
|
||||||
| **50** | **2026-10-13T03:12Z** | **ee04ca9e** | **✅ PASS level 5/5** | historical PR#8 retry |
|
|
||||||
| **66** | **2026-10-20T03:20Z** | **dbe40ecb** | **✅ PASS level 5/5** | fresh current PR#8 retry; lint verified |
|
|
||||||
|
|
||||||
Proxy /16 fix: 2026-06-13T05:38Z (pvfix phase).
|
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ let
|
|||||||
. + { "ci.autonomic.zone": .["ci.commoninternet.net"] }
|
. + { "ci.autonomic.zone": .["ci.commoninternet.net"] }
|
||||||
else . end' "$src" > "$dst.tmp"
|
else . end' "$src" > "$dst.tmp"
|
||||||
mv "$dst.tmp" "$dst"
|
mv "$dst.tmp" "$dst"
|
||||||
|
chown acme:acme "$dst"
|
||||||
chmod 0600 "$dst"
|
chmod 0600 "$dst"
|
||||||
echo "storage seed: ok"
|
echo "storage seed: ok"
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -126,6 +126,25 @@ def recipe_checkout(recipe: str, version: str) -> None:
|
|||||||
subprocess.run(["git", "-C", path, "checkout", "-f", "--quiet", version], check=True)
|
subprocess.run(["git", "-C", path, "checkout", "-f", "--quiet", version], check=True)
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_secret_versions_from_recipe(recipe: str, domain: str) -> None:
|
||||||
|
"""Fill missing secret versions after a pinned checkout.
|
||||||
|
|
||||||
|
`app new <recipe> <version>` creates its .env from whichever recipe tree was
|
||||||
|
checked out *before* it pins the version. A removed secret in the current
|
||||||
|
recipe can therefore be missing from the older base's .env. Keep existing
|
||||||
|
assignments, including versions intentionally changed by install hooks.
|
||||||
|
"""
|
||||||
|
sample = os.path.join(recipe_dir(recipe), ".env.sample")
|
||||||
|
if not os.path.isfile(sample):
|
||||||
|
return
|
||||||
|
pattern = re.compile(r"^\s*(SECRET_[A-Z0-9_]+_VERSION)=(v[A-Za-z0-9._-]+)")
|
||||||
|
with open(sample) as fh:
|
||||||
|
for line in fh:
|
||||||
|
match = pattern.match(line)
|
||||||
|
if match and env_get(domain, match.group(1)) is None:
|
||||||
|
env_set(domain, match.group(1), match.group(2))
|
||||||
|
|
||||||
|
|
||||||
def has_lightweight_version_tags(recipe: str) -> bool:
|
def has_lightweight_version_tags(recipe: str) -> bool:
|
||||||
"""True if the recipe's local checkout has any LIGHTWEIGHT (non-annotated) version tag.
|
"""True if the recipe's local checkout has any LIGHTWEIGHT (non-annotated) version tag.
|
||||||
|
|
||||||
|
|||||||
@@ -444,6 +444,7 @@ def deploy_app(
|
|||||||
)
|
)
|
||||||
elif version:
|
elif version:
|
||||||
abra.recipe_checkout(recipe, version)
|
abra.recipe_checkout(recipe, version)
|
||||||
|
abra.ensure_secret_versions_from_recipe(recipe, domain)
|
||||||
# A pinned (non-chaos) deploy runs `abra recipe lint`, which FATAs R014 ('only annotated
|
# A pinned (non-chaos) deploy runs `abra recipe lint`, which FATAs R014 ('only annotated
|
||||||
# tags') if the upstream recipe ships a stray lightweight version tag (e.g. lasuite-meet's
|
# tags') if the upstream recipe ships a stray lightweight version tag (e.g. lasuite-meet's
|
||||||
# 0.3.0+v1.16.0). In that case deploy the EXPLICITLY-checked-out pinned version with chaos:
|
# 0.3.0+v1.16.0). In that case deploy the EXPLICITLY-checked-out pinned version with chaos:
|
||||||
|
|||||||
@@ -20,6 +20,24 @@ set -euo pipefail
|
|||||||
: "${CCCI_APP_DOMAIN:?missing}"
|
: "${CCCI_APP_DOMAIN:?missing}"
|
||||||
ENV_PATH="${CCCI_APP_ENV:?missing}"
|
ENV_PATH="${CCCI_APP_ENV:?missing}"
|
||||||
|
|
||||||
|
# The v6 release requires two RSA PEM secrets with generate=false. CI must
|
||||||
|
# supply those operator-managed keys before deploy, including when the base
|
||||||
|
# is v5 and the upgrade head is v6. A PR head with its own key sidecar ignores
|
||||||
|
# these secrets after upgrade.
|
||||||
|
STACK_NAME="${CCCI_APP_DOMAIN//./_}"
|
||||||
|
for SECRET_NAME in jwt_pk yhub_jwt_pk; do
|
||||||
|
ENV_NAME="SECRET_${SECRET_NAME^^}_VERSION"
|
||||||
|
VERSION=$(sed -n "s/^${ENV_NAME}=\([^ #]*\).*/\1/p" "$ENV_PATH" | tail -1)
|
||||||
|
if [ -n "$VERSION" ]; then
|
||||||
|
DOCKER_SECRET="${STACK_NAME}_${SECRET_NAME}_${VERSION}"
|
||||||
|
if ! docker secret inspect "$DOCKER_SECRET" >/dev/null 2>&1; then
|
||||||
|
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 2>/dev/null \
|
||||||
|
| docker secret create "$DOCKER_SECRET" - >/dev/null
|
||||||
|
echo " install_steps: supplied ${SECRET_NAME} for the published base recipe"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# No deps file / no keycloak entry → install-time provisioning failed or was skipped. NO-OP so the
|
# No deps file / no keycloak entry → install-time provisioning failed or was skipped. NO-OP so the
|
||||||
# recipe still boots; the @requires_deps OIDC custom test then SKIPs and F2-11 flips the run RED.
|
# recipe still boots; the @requires_deps OIDC custom test then SKIPs and F2-11 flips the run RED.
|
||||||
if [ -z "${CCCI_DEPS_FILE:-}" ] || [ ! -s "${CCCI_DEPS_FILE}" ]; then
|
if [ -z "${CCCI_DEPS_FILE:-}" ] || [ ! -s "${CCCI_DEPS_FILE}" ]; then
|
||||||
@@ -42,6 +60,13 @@ echo " lasuite-docs install_steps: wiring OIDC at install against keycloak ${KC
|
|||||||
# can be created independently — so the single deploy below picks up v2.
|
# can be created independently — so the single deploy below picks up v2.
|
||||||
CUR_VER=$(grep -E '^\s*SECRET_OIDC_RPCS_VERSION=' "$ENV_PATH" | tail -1 | cut -d= -f2 | tr -d '"\r' || echo "v1")
|
CUR_VER=$(grep -E '^\s*SECRET_OIDC_RPCS_VERSION=' "$ENV_PATH" | tail -1 | cut -d= -f2 | tr -d '"\r' || echo "v1")
|
||||||
NEW_NUM=$((${CUR_VER#v} + 1))
|
NEW_NUM=$((${CUR_VER#v} + 1))
|
||||||
|
# A previous warm canonical may have left the next version behind. Its value
|
||||||
|
# belongs to an old Keycloak realm, so select a fresh version instead of
|
||||||
|
# reusing it or failing promotion with Swarm's AlreadyExists error.
|
||||||
|
STACK_NAME="${CCCI_APP_DOMAIN//./_}"
|
||||||
|
while docker secret inspect "${STACK_NAME}_oidc_rpcs_v${NEW_NUM}" >/dev/null 2>&1; do
|
||||||
|
NEW_NUM=$((NEW_NUM + 1))
|
||||||
|
done
|
||||||
NEW_VER="v${NEW_NUM}"
|
NEW_VER="v${NEW_NUM}"
|
||||||
INSERT_LOG=$(abra app secret insert "$CCCI_APP_DOMAIN" oidc_rpcs "$NEW_VER" "$KC_SECRET" --no-input -C -o 2>&1) ||
|
INSERT_LOG=$(abra app secret insert "$CCCI_APP_DOMAIN" oidc_rpcs "$NEW_VER" "$KC_SECRET" --no-input -C -o 2>&1) ||
|
||||||
INSERT_LOG=$(script -qec "abra app secret insert $CCCI_APP_DOMAIN oidc_rpcs $NEW_VER $KC_SECRET --no-input -C -o" /dev/null 2>&1) ||
|
INSERT_LOG=$(script -qec "abra app secret insert $CCCI_APP_DOMAIN oidc_rpcs $NEW_VER $KC_SECRET --no-input -C -o" /dev/null 2>&1) ||
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
"""Pinned base recipes need the secret versions declared by their own tag."""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "runner"))
|
||||||
|
from harness import abra # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
|
def test_pinned_base_adds_removed_secret_without_overwriting_existing_version(
|
||||||
|
monkeypatch, tmp_path
|
||||||
|
):
|
||||||
|
monkeypatch.setenv("HOME", str(tmp_path))
|
||||||
|
monkeypatch.setenv("ABRA_DIR", str(tmp_path / ".abra"))
|
||||||
|
recipe = tmp_path / ".abra" / "recipes" / "lasuite-docs"
|
||||||
|
recipe.mkdir(parents=True)
|
||||||
|
(recipe / ".env.sample").write_text(
|
||||||
|
"SECRET_COLLAB_SS_VERSION=v1\n"
|
||||||
|
"SECRET_JWT_PK_VERSION=v1 # generate=false\n"
|
||||||
|
"# SECRET_UNUSED_VERSION=v1\n"
|
||||||
|
)
|
||||||
|
env = tmp_path / ".abra" / "servers" / "default" / "test.example.env"
|
||||||
|
env.parent.mkdir(parents=True)
|
||||||
|
env.write_text("SECRET_JWT_PK_VERSION=v2\n")
|
||||||
|
|
||||||
|
abra.ensure_secret_versions_from_recipe("lasuite-docs", "test.example")
|
||||||
|
|
||||||
|
assert abra.env_get("test.example", "SECRET_COLLAB_SS_VERSION") == "v1"
|
||||||
|
assert abra.env_get("test.example", "SECRET_JWT_PK_VERSION") == "v2"
|
||||||
|
assert abra.env_get("test.example", "SECRET_UNUSED_VERSION") is None
|
||||||
@@ -127,7 +127,13 @@ def test_previous_overlay_deploys_checked_out_base_without_clean_tree_gate(monke
|
|||||||
"prepull_images",
|
"prepull_images",
|
||||||
):
|
):
|
||||||
monkeypatch.setattr(lifecycle, name, lambda *a, **kw: None)
|
monkeypatch.setattr(lifecycle, name, lambda *a, **kw: None)
|
||||||
for name in ("app_config_remove", "app_new", "env_set", "secret_generate"):
|
for name in (
|
||||||
|
"app_config_remove",
|
||||||
|
"app_new",
|
||||||
|
"env_set",
|
||||||
|
"secret_generate",
|
||||||
|
"ensure_secret_versions_from_recipe",
|
||||||
|
):
|
||||||
monkeypatch.setattr(lifecycle.abra, name, lambda *a, **kw: None)
|
monkeypatch.setattr(lifecycle.abra, name, lambda *a, **kw: None)
|
||||||
monkeypatch.setattr(lifecycle.meta_mod, "extra_env", lambda *a: {})
|
monkeypatch.setattr(lifecycle.meta_mod, "extra_env", lambda *a: {})
|
||||||
monkeypatch.setattr(lifecycle.meta_mod, "hook_ctx", lambda *a: None)
|
monkeypatch.setattr(lifecycle.meta_mod, "hook_ctx", lambda *a: None)
|
||||||
|
|||||||
Reference in New Issue
Block a user