cast/test
dan-claude-bot 5075310336 test: release.test.ts allocates through tmp(), like everything else under test/
The rebase onto main was textually clean and behaviourally broken, and this
PR's own guard is what caught it.

This branch removed test/release.test.ts's `mkdtempSync`/`tmpdir` imports when
it converted that file's call sites to `tmp()`. While it was open, #133's
changelog-monotonic work landed on main and added THREE new
`mkdtempSync(join(tmpdir(), ...))` sites to the same file. The two changes
never touch the same line, so git merged them without a word — leaving call
sites whose imports this branch had deleted. 20 tests died on
`ReferenceError: mkdtempSync is not defined`.

Converted all three to `tmp()`, which is what the file already imports and
what every other test file under test/ uses.

Worth noting which test failed and why it matters: test/tmp-guard.test.ts,
this PR's own class check, reported `offenders: ["release.test.ts"]`. It was
written to stop exactly this — a new raw allocation drifting in — and it did
so on a real regression rather than a synthetic one, before the fix existed.
That is the guard earning its place on its first genuine encounter.
2026-07-21 12:58:14 +00:00
..
fixtures feat(service): set and diff per-container service hostnames via urls (#72) 2026-07-16 15:14:29 +00:00
helpers fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
apply.test.ts fix(diff): compare non-secret env vars against fresh value, not stale real_value (#78) 2026-07-16 14:53:00 +00:00
backup-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
bindings.test.ts fix: smoke resolves its target inside the project it was declared under (#29) 2026-07-13 20:08:35 +00:00
capture-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
capture.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
config.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
coolify.test.ts fix(draft): read backup schedules and emit backup blocks (#75) 2026-07-16 18:25:34 +00:00
destroy.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
diff.test.ts fix(diff): compare non-secret env vars against fresh value, not stale real_value (#78) 2026-07-16 14:53:00 +00:00
domain-preflight.test.ts feat(service): set and diff per-container service hostnames via urls (#72) 2026-07-16 15:14:29 +00:00
draft-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
draft.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
envtemplate.test.ts feat(resolve): derive base-URL env vars from manifest domains via ${domain:...} (#66) 2026-07-15 12:02:33 +00:00
fleet-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
fleet.test.ts feat: --all — every project in an environment, and a report that says so (#26) 2026-07-13 20:23:23 +00:00
github-app-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
greenfield-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
install-sh.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
inventory.test.ts feat: read-side coordinates (#17, #18) + cast inventory (#19) 2026-07-13 18:20:53 +00:00
labels-reconcile.sh fix(labels): a missing state label skips the edit, not the whole PR 2026-07-20 18:09:16 +00:00
layout-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
live-lookup.test.ts feat(draft): capture service hostnames via per-service GET (#83) 2026-07-16 18:30:49 +00:00
manifest.test.ts fix(apply): express static-site build settings so a monorepo app is served, not run (#63) 2026-07-14 23:46:14 +00:00
placement-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
read-side-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
release.test.ts test: release.test.ts allocates through tmp(), like everything else under test/ 2026-07-21 12:58:14 +00:00
reserved.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
resolve.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
secrets.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
smoke-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
smoke.test.ts feat: cast — the Coolify executor, extracted from the infra state repo 2026-07-11 12:25:44 +00:00
sweep-cli.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
team.test.ts feat: assert the token's team before touching Coolify (fail-closed) 2026-07-12 20:55:04 +00:00
tmp-guard.test.ts fix: reap temp dirs — a runtime clone leak in resolveCheckout, and 68 uncleaned test sites 2026-07-21 12:58:14 +00:00
version-cli.test.ts refactor: rescope to versioned installations — the release flow moves out 2026-07-18 21:17:59 +00:00
wire.test.ts fix: resolve the GitHub App only when the manifest declares applications (#103) 2026-07-19 12:26:35 +00:00