Skip to content

Commit f6c2de4

Browse files
committed
docs(plan): add P12 to remove the temporary CI trigger after the merge
Revision 6: P0 now lists the temporary feat/site-deployment push trigger in ci.yml, and a new last phase, P12, drops it right after the branch is merged into develop (a one-file PR). It also notes that pushes run CI twice while a PR is open. The phase count goes from 43 to 44.
1 parent d114760 commit f6c2de4

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

‎docs/plans/site-deployment.md‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Site deployment — manage WordPress plugins on remote sites
22

3-
Status: **in progress**: P0 implemented and verified locally (macOS and Ubuntu clients); its first CI run is pending. Rewritten 2026-10-09; revisions 2 and 3 (review feedback), 4 (P0 results) and 5 (adversarial audit, 2026-10-11). · Target version: **3.4.0** (from 3.3.0) · Author: Sandy Figueroa
3+
Status: **in progress**: P0 implemented and verified locally (macOS and Ubuntu clients); its first CI run is pending. Rewritten 2026-10-09; revisions 2 and 3 (review feedback), 4 (P0 results), 5 (adversarial audit, 2026-10-11) and 6 (CI on the branch). · Target version: **3.4.0** (from 3.3.0) · Author: Sandy Figueroa
44

55
---
66

@@ -18,12 +18,18 @@ Status: **in progress**: P0 implemented and verified locally (macOS and Ubuntu c
1818
- **Ownership respects owner *and* group:** WP-CLI runs as the plugins directory's owner **and group** (`sudo -n -u <owner> -g <group>`), so `ftpuser:www-data` sites stay `ftpuser:www-data` with the group bits the web server needs. Mismatches are repaired without root (`chgrp`, `chmod g+`); a root `chown` runs only on sites that opt in, under strict preconditions.
1919
- **Uploads:** each zip is inspected locally, streamed over SSH into a private **staging dir** (`/tmp/apvm.XXXXXXXXXX`, owned by the identity, `0700`), checksum-verified, installed from there, and always cleaned up.
2020
- **Transport:** system OpenSSH (your `~/.ssh/config`, agent, ProxyJump), multiplexed on Unix. Scripts travel over SSH's stdin, so the remote login shell (bash, zsh, fish, …) never parses them.
21-
- **Phases:** 43 small ones; libraries first, then the CLI and NAPI front ends in parallel tracks. No new crates.io dependencies.
21+
- **Phases:** 44 small ones; libraries first, then the CLI and NAPI front ends in parallel tracks. No new crates.io dependencies.
2222

2323
---
2424

2525
## 0. Change log
2626

27+
### Revision 6 (CI on the branch, 2026-10-11)
28+
29+
| Topic | Change |
30+
|---|---|
31+
| CI | `ci.yml` temporarily runs on pushes to `feat/site-deployment` (P0); new last phase P12 removes the trigger after the merge |
32+
2733
### Revision 5 (adversarial audit of P0 and revision 4, 2026-10-11)
2834

2935
| Topic | Change |
@@ -1174,6 +1180,7 @@ Tracks: **lib** = `apvm-sites`/core, **cli**, **napi**.
11741180
- `target/{Dockerfile, entrypoint.sh, apvm-e2e.sh, sudoers, sshd_config, vhosts.conf}`;
11751181
- `fixtures/{plugins,variants}/…`;
11761182
- `.github/workflows/ci.yml` job `e2e-sites` (`harness.sh up` + `verify.sh`, results uploaded; gates `CI`);
1183+
- a **temporary** `push` trigger for `feat/site-deployment` in `ci.yml`, so CI runs on this branch before its PR exists (`commit-artifacts` stays develop-only); P12 removes it;
11771184
- §3.5 results recorded in this plan, which is adjusted in revisions 4 and 5.
11781185
- **Done when:** the harness is healthy locally and in CI; `verify.sh` passes, or each deviation is recorded and the plan adjusted.
11791186
- **Result:** 43 asserted checks pass on macOS and Ubuntu clients, plus the optional real-BackWPup check locally; 2 INFO checks record versions and a network-dependent timeout. The deviations are marked ⚠ in §3.5 and resolved in revisions 4 and 5. P0 is done once the CI job passes.
@@ -1522,6 +1529,14 @@ Tracks: **lib** = `apvm-sites`/core, **cli**, **napi**.
15221529
- tag `v3.4.0` after CI is green.
15231530
- **Depends:** P0–P10 · **Parallel:** —
15241531

1532+
### P12 — Remove the temporary CI trigger
1533+
- **Goal:** CI triggers go back to `develop` pushes and PRs to `develop` only.
1534+
- **When:** right after `feat/site-deployment` is merged into `develop`, as a one-file PR to `develop`. Until then, once a PR to `develop` is open, every push runs CI twice (`push` + `pull_request`); that is expected.
1535+
- **Changes:** `.github/workflows/ci.yml`: drop the `feat/site-deployment` entry and its comment from `on.push.branches` (back to `branches: [develop]`); mark P12 done here.
1536+
- **Tests:** none (workflow config only).
1537+
- **Done when:** `grep -n 'feat/site-deployment' .github/workflows/ci.yml` finds nothing, and the next CI run on `develop` passes.
1538+
- **Depends:** P11 (branch merged) · **Parallel:** —
1539+
15251540
### Dependency overview
15261541

15271542
```
@@ -1542,7 +1557,7 @@ P8.1+P6.3+P6.4 ─ P8.2 ┬ P8.3(+P7.1) ─ P8.6(+P8.5)
15421557
└ P8.5(+P1.4)
15431558
P6.4 ─ P9.1 ┬ P9.2(+P7.1) ; P9.1+P5.4 ─ P9.3
15441559
P6.1+P4.2 ─ P10.1 ─ P10.2(+P7.3, P8.3, P7.5)
1545-
all ─ P11
1560+
all ─ P11 ─ P12
15461561
```
15471562

15481563
**Critical path:** P1.1 → P3.1 → P3.2 → P3.3 → P4.2 → P5.1 → P6.2 → P6.3 → P8.2 → P8.3 → P10.2 → P11. NAPI phases never sit on it.

0 commit comments

Comments
 (0)