From 8bd56eb30b41281bcee9214d69699203a6e3870e Mon Sep 17 00:00:00 2001 From: Costin Cozianu Date: Sun, 15 Nov 2026 17:16:18 +0000 Subject: [PATCH] Records: close rootless-Docker bug after owner verification on target host Owner verified devcapsule-local.pex (v0.3.1-local-linux-x86_64, built from a1a54eba, SHA-256 7921e3bbd6abbe5ade7790d5c9020383d6117aa109608fa2714206246fde5d40) on the Ubuntu 24.04.5 LTS rootless Docker installation. Co-authored-by: Antigravity --- ...capsule-fails-on-mounted-settings-and-pex-cache.md | 11 ++++++----- engineering-docs/releases/v0.3.1/bugs.md | 2 +- .../wip/2026-09-18-maintenance/CURRENT-STATUS.md | 10 ++++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/engineering-docs/bugs/devcapsule/2026-11-15-in-capsule-devcapsule-fails-on-mounted-settings-and-pex-cache.md b/engineering-docs/bugs/devcapsule/2026-11-15-in-capsule-devcapsule-fails-on-mounted-settings-and-pex-cache.md index 226e7206..9e127fc7 100644 --- a/engineering-docs/bugs/devcapsule/2026-11-15-in-capsule-devcapsule-fails-on-mounted-settings-and-pex-cache.md +++ b/engineering-docs/bugs/devcapsule/2026-11-15-in-capsule-devcapsule-fails-on-mounted-settings-and-pex-cache.md @@ -1,9 +1,10 @@ --- -status: fixed +status: closed severity: blocking target: 0.3.1 owner: maintenance opened: 2026-11-15 +closed: 2026-11-15 requirements: [R-CONFIG-001] --- @@ -171,10 +172,10 @@ emitted the `PEXWarning` twice with two different fallback directories - `CapsuleUser.command()` and `CapsuleUser.owner_changes()` (and `logs.own`, `display._own`, and both `entrypoint.sh` scripts) skip redundant `gosu 0:0` / same-UID `chown 0:0` calls that `--cap-drop ALL` would otherwise refuse. -- **Verification target:** full `nox -s tests`, `nox -s typecheck`, `nox -s docs-contract`, - plus end-to-end validation on a real rootless Docker daemon (`Docker` with `Security Options: rootless`). +- **Validation and closure (2026-11-15):** + - `validate_unittests_follow_conventions.py --base release-0.3.1` (`0` breaches), `nox -s typecheck` (`344` files), `nox -s tests` (`3267 passed`), `nox -s smoke`, and `nox -s docs-contract` (`249 pages`) passed on `ws-maintenance/0.3.1-rootless-docker` (`a1a54eba`). + - Owner transported `devcapsule-local.pex` (`v0.3.1-local-linux-x86_64`, SHA-256 `7921e3bbd6abbe5ade7790d5c9020383d6117aa109608fa2714206246fde5d40`, built from `a1a54eba`) to the affected Ubuntu 24.04.5 LTS rootless Docker host and confirmed it worked on the rootless Docker installation (PR #38 merged into `release-0.3.1` at `2a3d6f61`). - **Remaining note:** `scie` `boot.commands[""]` still unpacks without exporting `PEX_ROOT`; once `/home/devcapsule/.cache` is writable under rootless `0:0`, the default `$XDG_CACHE_HOME/pex` path stops falling back to `/tmp/pex-root.*` on writable capsule homes. -- **Close criteria:** PR on `ws-maintenance/0.3.1-rootless-docker` is merged into `release-0.3.1` - and `devcapsule project run` is verified end-to-end inside a capsule on the owner's rootless Docker host. +- **Reopen criteria:** Reopen if a capsule launched with the merged `0.3.1` executable on rootless Docker again fails with `/etc/devcapsule/home/settings.toml` permission denied or `/home/devcapsule/.cache/pex` unwritable, or if non-rootless behavior regresses. diff --git a/engineering-docs/releases/v0.3.1/bugs.md b/engineering-docs/releases/v0.3.1/bugs.md index a2f96f31..3ecfecc1 100644 --- a/engineering-docs/releases/v0.3.1/bugs.md +++ b/engineering-docs/releases/v0.3.1/bugs.md @@ -13,7 +13,7 @@ before each candidate and record the reconciliation revision here. | Record | Status | Severity | Owner | Disposition | Next action | |---|---|---|---|---|---| -| [Inside a capsule on another machine, `devcapsule` warns on `/home/devcapsule/.cache/pex` and aborts with `Permission denied` reading `/etc/devcapsule/home/settings.toml`](../../bugs/devcapsule/2026-11-15-in-capsule-devcapsule-fails-on-mounted-settings-and-pex-cache.md) | fixed | blocking | maintenance | filed 2026-11-15 at owner direction (`blocking` for `0.3.1`); rootless-only fix implemented on `ws-maintenance/0.3.1-rootless-docker`: when `docker info` reports `Security Options: rootless`, run container `--user 0:0` and plan `identity=(0, 0, "root")` without `gosu 0:0` / redundant `chown 0:0`; non-rootless behavior unchanged | review/merge PR on `ws-maintenance/0.3.1-rootless-docker` into `release-0.3.1` and validate end-to-end on the owner's Ubuntu 24.04.5 rootless Docker host | +| [Inside a capsule on another machine, `devcapsule` warns on `/home/devcapsule/.cache/pex` and aborts with `Permission denied` reading `/etc/devcapsule/home/settings.toml`](../../bugs/devcapsule/2026-11-15-in-capsule-devcapsule-fails-on-mounted-settings-and-pex-cache.md) | closed | blocking | maintenance | filed 2026-11-15 at owner direction (`blocking` for `0.3.1`); rootless-only fix merged into `release-0.3.1` via PR #38 (`2a3d6f61`): when `docker info` reports `Security Options: rootless`, run container `--user 0:0` and plan `identity=(0, 0, "root")` without `gosu 0:0` / redundant `chown 0:0` (non-rootless unchanged); closed 2026-11-15 after owner verified `devcapsule-local.pex` (`a1a54eba`, SHA-256 `7921e3bb…`) worked on the rootless Docker installation | none | | [This repository's own project configuration predates 0.3: the committed manifest and lock are not what the release writes](../../bugs/devcapsule/2026-11-13-repository-project-configuration-predates-0.3.md) | confirmed | blocking | maintenance | rated blocking by the owner on 2026-11-13: the committed manifest is schema 1 and the lock is from `embedded-28`, the release ships `embedded-33`; an uncommitted rewrite of 2026-11-04 in the owner's checkout is from `embedded-31` and is not the fix; the refresh was checked on a copy with `v0.3.1-rc2` on 2026-11-13: the manifest is unchanged and the lock moves to `embedded-33`, Claude Code 2.1.321 and Codex 0.167.0; the write is refused inside the capsule | the owner runs `devcapsule project --path /home/costin/work.provisional/costin3/myProjects/devcapsule init --regenerate` on the host and `config check` there; then the two files are committed, before the final tag | | [Eclipse cannot be acquired from scratch on amd64: the libsoup package URLs return 404](../../bugs/devcapsule/2026-11-07-eclipse-amd64-libsoup-urls-return-404.md) | closed | major | maintenance | found by PR #338 on 2026-11-04, confirmed at the cut; both packages repinned at `3.4.4-5ubuntu0.10` (PR #10), matrix `embedded-32`; closed 2026-11-08 by a fresh amd64 Eclipse acquisition with an empty home on the downloaded `v0.3.1-rc1` | none; the 0.3.0 executable stays affected, 0.3.1 is the remedy | | [Codex status and version checks fail: the npm registry document exceeds the channel's 16 MiB cap](../../bugs/devcapsule/2026-11-08-codex-npm-metadata-exceeds-16-mib.md) | closed | major | maintenance | found 2026-11-08 reading the feed: Codex `inconclusive` for 45 runs since 2026-10-01; the full registry document is 18.7 MB against the channel's 16 MiB cap; resolved via PR #20 (`eb8ff8cf`, `Accept: application/vnd.npm.install-v1+json` in `NpmChannel.check()`); closed 2026-11-10 on `origin/component-status` (`0bc31c64`, `result: "ok"`, `consecutive_failures: 0`) and `project versions check` on downloaded `v0.3.1-rc2` (`2c3ace0f…`) | none; the 0.3.0 executable stays affected, 0.3.1 is the remedy | diff --git a/engineering-docs/wip/2026-09-18-maintenance/CURRENT-STATUS.md b/engineering-docs/wip/2026-09-18-maintenance/CURRENT-STATUS.md index e0c94775..26b8b6ba 100644 --- a/engineering-docs/wip/2026-09-18-maintenance/CURRENT-STATUS.md +++ b/engineering-docs/wip/2026-09-18-maintenance/CURRENT-STATUS.md @@ -6,7 +6,7 @@ Start date: 2026-09-18 State: active 2026-11-10; releasing 0.3.1 from `release-0.3.1`, cut from `main` at `31e8fec7`; candidate 2 (`v0.3.1-rc2` on `be0140ca`, merged to `main` via PR #22 `aabace3c`) published and verified; all three 0.3.1 release bugs closed (Eclipse libsoup on rc1; launcher-delivered `devcapsule_webconsole` `D-0017` and Codex npm abbreviated metadata on rc2 + `component-status` feed `0bc31c64`); Codex `0.167.0` and Claude Code `2.1.321` shipped in `embedded-33`; two rulings open (Mac/arm64 executables, compatibility feed's website path) plus end-to-end run, `notes.md`, and docs promotion before final `v0.3.1`; the blocking bug of 2026-11-10, unit tests reading the capsule's mounted launcher settings, closed 2026-11-13 on the owner's word after the merge of pull request #29 (`82b9c07e`); one blocking bug open since 2026-11-13, this repository's own project configuration predates 0.3: the refresh is checked on a copy and waits for the owner's `project init --regenerate` on the host; one major bug in fixing, the Python route and its guard, merged through #25 with the local gate's routing open; a follow-up to PR #18 on `ws-maintenance/host-inputs-at-source`, by Pair Review, for the owner's review; rewritten 2026-11-12 on the owner's direction so that host inputs are values and no touched test patches; the rule *Host Inputs* written into `WORKFLOW-LOCAL.md` on the owner's word and the rewrite reviewed by the partner through #28, merged at `83d238b8`; the owner's reading of #26 and rulings on the rule's open readings are next; *Unit Tests* rules 8 and 9 added on the owner's word and held by machine, the command line only in `test_cli.py` with eight files in a debt list, and no network in a unit test; the owner's read-then-decide direction merged through #29, on top of #26: the launch's decisions are testable from values, the holding pen is empty and three files remain in the command-line debt list -Definition read: WORKFLOW.md@e83f22a20701, WORKFLOW-LOCAL.md@e84d2678942b +Definition read: WORKFLOW.md@196d3760f99e, WORKFLOW-LOCAL.md@94a29cb6eedb Integration target: `main` @@ -5439,13 +5439,15 @@ claimed. No final release or graphical/end-user acceptance is claimed yet. ## Open Threads -- Blocking for 0.3.1, fixed on `ws-maintenance/0.3.1-rootless-docker` 2026-11-15 - (host rootless validation pending): when `docker info` reports +- Blocking for 0.3.1, filed and closed 2026-11-15 (PR #38 merged into + `release-0.3.1` at `2a3d6f61`): when `docker info` reports `Security Options: rootless`, entry layers pass `uid=0, gid=0, user="root"` to `project_runtime_plan()` and `rootless_docker=True` to `PycharmRunOptions` (`--user 0:0`, `IDE_UID=0`, `IDE_GID=0`, `IDE_USER=root`, skipping redundant `gosu 0:0` and same-owner `chown` under `--cap-drop ALL`). All changes gate on - `rootless_docker` so non-rootless behavior stays unchanged. Record: + `rootless_docker` so non-rootless behavior stays unchanged. Owner verified + `devcapsule-local.pex` (`a1a54eba`, SHA-256 `7921e3bb…`) on the rootless + Docker installation. Record: [the 2026-11-15 bug](../../bugs/devcapsule/2026-11-15-in-capsule-devcapsule-fails-on-mounted-settings-and-pex-cache.md). - Blocking for 0.3.1, owner's rating of 2026-11-13: this repository's own `.devcapsule` is committed in its pre-0.3 form, a schema-1 manifest and a