oliver-zehentleitner / maity

clean-up: Deploy and supply chain: run the helm-upgrade test in CI, fix stale install, CONTRIBUTING and context texts

Sign in to report

tsk-0ssrf55nnvgx Open

From the clean-up audit, area 15 (Deploy and supply chain), tsk-hgnbapyw7hnh. Read at main 80647565; all lines refer to that SHA, so check each one against current main before changing it. Sent to the lead as seq 125443.

Mostly text: deploy and install docs, CONTRIBUTING.md and context entries, plus one CI step (item 1). Very low risk; one PR.

Left out as a duplicate: A15-8 (the PostgreSQL image is pinned five different ways: digest in CI, postgres:17.10 in deploy/k3s-single/, postgres:17 in deploy/docker-compose.yml and deploy/helm/kind-smoke.sh). tsk-xesvyydh2yd3 covers it as item 8, "Pin the postgres image by digest". Whoever takes that card should also cover compose (deploy/docker-compose.yml:14), kind-smoke.sh:76 and the digest copy in .github/workflows/hub-load.yml:36.

Overlap to watch: tsk-xesvyydh2yd3 item 3 also changes deploy/scripts/helm-upgrade.sh. Item 1 here only runs its test script. Run tools/overlap.sh before pushing.

1. deploy/scripts/test-helm-upgrade.sh is run by nothing (A15-10)

  • Kind: debt (a test with no runner)
  • Files: deploy/scripts/test-helm-upgrade.sh (stub kubectl and helm, no cluster needed). Its only references are deploy/helm/maity-hub/README.md:412 and the script itself. The helm job in .github/workflows/ci.yml:370-384 runs check.sh and kind-smoke.sh only, although it runs on every change under deploy/ (ci.yml:94).
  • What is wrong: helm-upgrade.sh is the documented upgrade path for every release with a migration (chart README:194-197 and :437-439, hub/context/kubernetes.md:211), and its failure-path tests have never run in CI. CHANGELOG.md:6094 records a fix that "the stub test pins", and nothing re-checks it.
  • Proposal: add - run: deploy/scripts/test-helm-upgrade.sh to the helm job before check.sh.
  • Effort: S. Risk: low. If the script is red on main, the first run shows it.

2. The context entry "Python 3.11 is the minimum everywhere" is contradicted by the hub (A15-11)

  • Kind: docs drift
  • Files: context/architecture.md:59-77 (22a7d470, active: "Every Maity component requires at least Python 3.11"); context/index.md:7 repeats it. Against it: hub/pyproject.toml:11 (requires-python = ">=3.12"), :59, :63, :69; deploy/Dockerfile:10 (python:3.12-slim); deploy/runner/install-python.sh:15 (PYTHON_SERIES=3.12); docs/install/README.md:16 and docs/install/quickstart.md:13 ("Python 3.12 or newer"); hub/context/packaging.md:73.
  • What is wrong: an active entry says one thing, and every hub and deploy file says another.
  • Proposal: narrow the entry to the CLI (3.11, for the agent hosts) and record the hub's 3.12 floor with its reason.
  • Open question for the maintainer: narrow or supersede the entry? The reason for 3.12 is not recorded anywhere I read.
  • Effort: S. Risk: none.

3. CONTRIBUTING.md still asks for a commit of its own per context entry (A15-12)

  • Kind: docs drift
  • Files: CONTRIBUTING.md:15-17 ("A context/ entry is committed right after it is written, in its own commit, so its Git timestamp is the moment the reasoning was recorded") and :264 ("context/ entries are the exception and get one each"). Against it: context/process.md:590-607 (70b1f348, active since 2026-10-27): "It no longer needs a commit of its own, and pull requests stay squash-merged".
  • Proposal: replace both passages with "a context/ entry goes into the pull request of the change it explains".
  • Effort: S. Risk: none.

4. Upgrade instructions disagree about helm-upgrade.sh, and the chart README is out of date (A15-13)

  • Kind: docs drift
  • Files:
  • docs/install/README.md:484 ("Helm: helm upgrade … --timeout 10m. The hook Job migrates first.") and :365 (k3s: "Upgrades are helm upgrade with the new digest"). The chart README (deploy/helm/maity-hub/README.md:194-197 and :437-439) says a release with a migration goes through deploy/scripts/helm-upgrade.sh, because the hook can deadlock against the running pod. docs/install/README.md:470-472 mentions "the upgrade script with DUMP_REQUIRES_ATTACHMENTS=1" one step earlier without naming it.
  • deploy/helm/maity-hub/README.md:415-416: "maity-hub has serve, migrate and owner". hub/src/maity_hub/cli.py:66-106 also has second-factor, account, loadtest and attachments, and the same README uses maity-hub attachments copy-to-s3.
  • deploy/helm/maity-hub/README.md:62: "until its first release you build the image yourself". The hub is at 0.1.0a5 (hub/pyproject.toml:7), and publish-image.yml:85-87 refers to v0.1.0a1's published tags. The proposed card tsk-xp98bh2j012f (first publish of the image and the chart) is about the same sentence. Check it first, and close it or drop the sentence.
  • Proposal: in docs/install/README.md, name deploy/scripts/helm-upgrade.sh -f values.yaml for a release with a migration in the Helm and k3s upgrade lines (a link to the chart section is enough). Reword the chart's Rollback bullet to "has no downgrade command", and drop "until its first release".
  • Effort: S. Risk: none.

5. Smaller stale statements about CI and the locks (A15-14)

  • Kind: docs drift
  • Files:
  • .github/workflows/ci.yml:3-4: the header says "the test suite against PostgreSQL and MariaDB", but MariaDB moved to hub-mariadb.yml, as the same file says at :42-43.
  • deploy/runner/README.md:14: "so the three jobs of a push run side by side". hub-mariadb starts only after ci-ok (ci.yml:571-573), and hub-postgresql is now three shards that run one after another on the one pg runner (ci.yml:423-427).
  • hub/context/packaging.md:71-73: "There are four: runtime, dev, build and tools (uv)". There are five (release.txt), and tools.txt also holds pip-audit (hub/requirements/tools.in:4). hub/README.md:431-435 has it right.
  • context/process.md:1966-1973 (9a0ed6f7, needs-review): its "Revisit when: the CLI gets a hashed dev lock of its own" has fired, since cli/requirements/dev.txt exists (entry 3026ae2a at :2004).
  • Proposal: fix the first three texts.
  • Open question: for 9a0ed6f7, can the separate CLI venv in web-e2e and join-smoke now come from dev.txt, or should the entry record why release.txt stays?
  • Effort: S. Risk: none.

Effort sum: S+S+S+S+S = 5 points.

Notes

  1. Maity Coder Claude 003 · Nov 20, 2026, 11:55 UTC

    Audit round 3 (tsk-hgnbapyw7hnh), read at 588f911b: the same gap now covers four more scripts added in 19ed029a..588f911b. deploy/scripts/test-backup-dump.sh, test-backup-signing.sh, test-postgres-roles.sh and test-restore-blocks.sh are called by no workflow, Makefile or check.sh (.github/workflows/ci.yml:374-386, the helm job, runs only check.sh and kind-smoke.sh). docs/install/README.md:732 presents test-postgres-roles.sh as the check for the roles, and these tests guard the restore blocks operators run. Proposal: run the three that need no cluster in the helm job, and the roles test where Postgres is available. Effort S-M, risk low (CI time only).