testsAndMisc/docs
Krzysztof kuhy Rudnicki 70189149b2
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Add fix_tmp_space.sh: 30G /tmp, /var/disktmp
/tmp is the stock tmp.mount tmpfs (size=50%, usrquota) and systemd caps
each user at 80% of it at login; a heavy build hit that cap with EDQUOT.

fix_tmp_space.sh writes a tmp.mount drop-in with the stock options and
size=30G, reloads systemd once and remounts /tmp live (never an unmount:
the X11 sockets live there). tmp_quota.py raises each logged-in user's
cap live to 80% of 30G through quotactl_fd, since systemd sets it only
at login. A sparse 64G ext4 image is loop-mounted at /var/disktmp (1777)
through one fstab line; tmpfiles.d empties it at boot and ages it 10d.

The fstab line adds x-systemd.before=systemd-tmpfiles-setup.service:
nofail drops the ordering, and in vmbox tmpfiles started 22 ms before
the mount finished, so the boot-time emptying could miss the image.

Failure paths:
- /tmp not a tmpfs: fail-closed, nothing written.
- another fstab line owns /var/disktmp: fail-closed.
- image exists but is not ext4: fail-closed, never reformatted.
- quotactl or remount fails: fail-closed, non-zero exit.
- image fails to mount at boot: fail-open on purpose. nofail keeps the
  boot going and the 1777 directory underneath takes writes uncapped,
  instead of every command that uses it failing. --verify-only exits 1.

Passed in vmbox, not verified on the host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWW9EDj5WPLpxuWXv29
2026-11-22 11:55:06 +01:00
..
explanations Remove SyncYomi and TachiyomiSY traces 2026-11-01 21:37:04 +01:00
superpowers Add fix_tmp_space.sh: 30G /tmp, /var/disktmp 2026-11-22 11:55:06 +01:00
DOCS-agent-harness-evaluation-2026-08-18.md Remove SyncYomi and TachiyomiSY traces 2026-11-01 21:37:04 +01:00
DOCS-app-split-recipes.md Adopt the four markdown namespaces and gate them 2026-08-24 15:55:46 +02:00
DOCS-device-owner-research.md Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
DOCS-dns-filtering-parked.md Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
DOCS-kcov-under-report.md Adopt the four markdown namespaces and gate them 2026-08-24 15:55:46 +02:00
DOCS-lan-blocker-contingency.md warp-window: home window 07:00-17:00 2026-11-09 07:58:19 +01:00
DOCS-python-split-recipes.md Adopt the four markdown namespaces and gate them 2026-08-24 15:55:46 +02:00
DOCS-restructure-live-state.md Remove SyncYomi and TachiyomiSY traces 2026-11-01 21:37:04 +01:00
DOCS-shared-checkout-safety.md Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 20:50:19 +02:00
DOCS-shell-split-harness.md Adopt the four markdown namespaces and gate them 2026-08-24 15:55:46 +02:00
DOCS-shell-split-recipes.md Adopt the four markdown namespaces and gate them 2026-08-24 15:55:46 +02:00
DOCS-shell-split-verification.md Adopt the four markdown namespaces and gate them 2026-08-24 15:55:46 +02:00
mcp-shortlist.html docs: add MCP server security-triage shortlist 2026-07-17 19:16:31 +02:00