146 lines
10 KiB
Plaintext
146 lines
10 KiB
Plaintext
✔ a first launch clones the root at its branch, with the root's path as origin (30.465864ms)
|
||
✔ the clone is not at its place until git clone has finished (19.535626ms)
|
||
✔ a later launch fast-forwards a clean clone after a commit to the root, then finds it current (57.664871ms)
|
||
✔ a clone ahead of the root keeps its commits and counts as current (35.802407ms)
|
||
▶ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves
|
||
✔ a modified file (41.6465ms)
|
||
✔ an untracked file (41.998747ms)
|
||
✔ a staged file (44.037871ms)
|
||
✔ another branch (42.485078ms)
|
||
✔ a detached HEAD (41.605191ms)
|
||
✔ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves (212.891184ms)
|
||
✔ a diverged clone gets the fetch into refs/remotes and is kept, not-fast-forward (41.937074ms)
|
||
▶ a clone kept before the branch check, or for a failed status, gets no fetch
|
||
✔ not-a-clone (22.571431ms)
|
||
✔ hooks-present (23.358059ms)
|
||
✔ submodule (29.755738ms)
|
||
✔ config-changed (26.782133ms)
|
||
✔ root-unreadable (27.082002ms)
|
||
✔ root-detached (33.025258ms)
|
||
✔ status-failed, on the root's branch and clean (35.536529ms)
|
||
✔ status-failed, dirty (36.106185ms)
|
||
✔ a clone kept before the branch check, or for a failed status, gets no fetch (235.368508ms)
|
||
✔ a dirty clone whose fetch fails is kept, fetch-failed, exactly as it was (38.912889ms)
|
||
✔ every git call the host makes, for a new clone and an existing one, carries maintenance.auto=false and gc.auto=0 (44.13586ms)
|
||
✔ a clone with loose objects enough for gc --auto gets no maintenance or gc from the fetch and the merge (72.299287ms)
|
||
▶ a clone with user.name or user.email in its config is kept, and git runs nothing in it
|
||
✔ user.name (24.960511ms)
|
||
✔ user.email (24.768972ms)
|
||
✔ a clone with user.name or user.email in its config is kept, and git runs nothing in it (50.143557ms)
|
||
✔ a commit git can't read after the fast-forward is null (45.333531ms)
|
||
✔ a new clone whose commit can't be read refuses the launch and leaves nothing behind (18.69944ms)
|
||
▶ a clone the session rigged is kept, and git runs nothing and writes nothing outside it
|
||
✔ core.fsmonitor (33.724778ms)
|
||
✔ core.hooksPath (32.562327ms)
|
||
✔ a hook file (30.586659ms)
|
||
✔ include.path (32.51932ms)
|
||
✔ includeIf (33.113745ms)
|
||
✔ a filter driver (33.947149ms)
|
||
✔ origin moved (33.516198ms)
|
||
✔ a second origin url (33.068947ms)
|
||
✔ the origin url twice, both the root (34.454669ms)
|
||
✔ an ext:: origin (32.76077ms)
|
||
✔ a branch tracking another remote (33.47843ms)
|
||
✔ a branch merging a tag (33.594982ms)
|
||
✔ a fetch line onto local branches (33.525554ms)
|
||
✔ no origin (33.124921ms)
|
||
✔ a config file over the size cap (31.027568ms)
|
||
✔ config a symlink to /dev/zero (30.915436ms)
|
||
✔ the clone a symlink to the bait (30.722403ms)
|
||
✔ the clone a file (30.966617ms)
|
||
✔ the clone a plain directory (30.427326ms)
|
||
✔ .git a gitdir: file (30.207347ms)
|
||
✔ .git a symlink (31.364567ms)
|
||
✔ .git/logs a symlink (31.813241ms)
|
||
✔ .git/refs/heads a symlink (32.261827ms)
|
||
✔ .git/objects a symlink (31.698025ms)
|
||
✔ a reflog hard-linked to a file outside (30.930961ms)
|
||
✔ HEAD a fifo (32.040489ms)
|
||
✔ a commondir file (31.24185ms)
|
||
✔ an alternates file (32.030286ms)
|
||
✔ a gitlink staged, no .gitmodules (43.880635ms)
|
||
✔ a gitlink and .gitmodules staged (44.845395ms)
|
||
✔ a gitlink to a repository with its own gitlink (52.469603ms)
|
||
✔ a gitlink and .gitmodules committed (47.886282ms)
|
||
✔ a gitlink and submodule.active in config (45.225705ms)
|
||
✔ a .git/modules with no gitlink (33.5377ms)
|
||
✔ a clone the session rigged is kept, and git runs nothing and writes nothing outside it (1173.801024ms)
|
||
▶ a root that can't be cloned refuses with the project id and leaves nothing behind
|
||
✔ missing (10.830802ms)
|
||
✔ not a repository (10.071669ms)
|
||
✔ a plain directory inside another repository (14.581948ms)
|
||
✔ unreadable (9.894331ms)
|
||
✔ on no branch (12.188231ms)
|
||
✔ missing an object (15.311099ms)
|
||
✔ a root that can't be cloned refuses with the project id and leaves nothing behind (73.746687ms)
|
||
✔ a clone whose root is on no branch, or gone, is kept and named (28.466899ms)
|
||
✔ no credential or forge remote of the root reaches a clone (47.327257ms)
|
||
✔ every project in the business file gets its own clone at its own branch (34.276223ms)
|
||
✔ a clone past its time gets SIGTERM and refuses the launch, with nothing left in the workspace (513.778389ms)
|
||
✔ a clone that ignores SIGTERM gets SIGKILL once the grace period is over (1033.83343ms)
|
||
✔ a timeout signals git's process group, so a process git started dies with it (514.342437ms)
|
||
✔ once a signalled git has closed, its group gets SIGKILL, so a process that ignored SIGTERM dies too (516.221119ms)
|
||
✔ RUNNER_FILES is exactly what the runner and the harness sources it starts import (1.438981ms)
|
||
✔ sandboxProblem names a missing bwrap and a bwrap that fails (9.251858ms)
|
||
✔ every bind says why; the bundle and session file stay read-only over the run directory (1.172128ms)
|
||
✔ the host's git socket is bound only when given, read-only and before the writable binds (0.598047ms)
|
||
✔ the git identity is the instance's, at <instance>@<business>.mosaic.invalid, and sandboxArgv refuses without it (1.026396ms)
|
||
✔ a confined session's shell reaches its own workspace and run directory and nothing of the founder's or another session's (1852.965965ms)
|
||
✔ a bind that exposes a stand-in, or a missing workspace bind, fails the matching check (2756.754595ms)
|
||
✔ a confined session that runs tester-cli.mjs is refused as tester, and the same shim outside the sandbox binds (242.14813ms)
|
||
✔ resolveSeat: by name under --repo resolves the repo layout (1.581962ms)
|
||
✔ resolveSeat: by path resolves the fleet layout (0.368645ms)
|
||
✔ resolveSeat: refusals for missing dir, missing launch.sh, non-executable launch.sh, invalid name, and unknown layout (0.738852ms)
|
||
✔ tmuxContext: outside tmux, default socket, custom socket, and exec failure (0.669534ms)
|
||
✔ makeRegistration produces a record that validates; each shape violation throws SeatError (0.891815ms)
|
||
✔ writeRegistration/readRegistration: round trip, permissions, absence, and malformed records (1.398879ms)
|
||
✔ updateTask: changes task, taskSetBy and updatedAt only, and refuses appropriately (1.214569ms)
|
||
✔ CLI launch: registers, execs the fake launch script, and passes args through (32.902514ms)
|
||
✔ CLI launch: --harness lands in the record (28.029253ms)
|
||
✔ CLI launch: the launch script's own exit code passes through (28.472404ms)
|
||
✔ CLI launch: relaunching a seat rewrites the one registration record (53.840628ms)
|
||
✔ CLI launch: omitting --task records an empty string, not null (25.782879ms)
|
||
✔ CLI seat task: updates only the task after a launch, and refuses on an unlaunched seat (80.025977ms)
|
||
✔ CLI refusals: no args, unknown flag, missing config, already-registered env, and exec failure (132.597395ms)
|
||
✔ samePath: equal paths, symlinked dirs, distinct dirs, and non-strings (0.377759ms)
|
||
✔ resolveSetBy: explicit --by wins over the environment; absent or empty environment gives unknown; invalid explicit or environment values refuse with exit 4 (0.561756ms)
|
||
✔ validateRegistration/readRegistration: taskSetBy is optional; a record without it (written before #1511) still loads unchanged; an invalid one is refused; the version does not change (0.682211ms)
|
||
✔ updateTask: records setBy, preserves startedAt and every unrelated field, upgrades an old record in place only when the task is set, and replaces a previous attribution (1.12297ms)
|
||
✔ CLI seat task: --by beats MOSAIC_AGENT_NAME, the environment beats nothing, empty environment is unknown, invalid --by or environment refuses with exit 4 and leaves the record byte for byte (257.783649ms)
|
||
✔ REQ-LIMIT-1: family substring matching is no longer exported (0.667715ms)
|
||
✔ sessionEnv passes only the allowlist, the repo's bin on PATH, and the run id (0.634177ms)
|
||
✔ sessionExit gives a runner's signal death back as the signal; a session credential is one whole set of nonempty variables (0.23792ms)
|
||
✔ newRun: short ids, 0700 directories, and a refusal when the socket path won't fit (1.360737ms)
|
||
✔ session file and launch log: 0600, the session file written once (0.932952ms)
|
||
✔ endReason maps the runner's exit codes; a signal is killed (0.111239ms)
|
||
✔ Registry mirrors to sessions.json; readSessions marks live entries; bad files refuse (1.363534ms)
|
||
✔ stopSession refuses an unknown run, reports a stale one, and won't signal a pid that isn't a runner (0.972918ms)
|
||
✔ a session runs in its sandbox as pid 1 of its namespace, claims, answers, and stops on mosaic stop (189.303516ms)
|
||
✔ workRef and validBranch take only what a ref name can hold (1.054103ms)
|
||
✔ a push lands as the task's work ref, a fast-forward lands after it, and main is the root's (96.405013ms)
|
||
✔ a rewritten branch refuses non-fast-forward and the work ref stays (81.742312ms)
|
||
✔ a branch with no history in common with main refuses unrelated-history (43.806933ms)
|
||
✔ a bundle that needs commits the working repository lacks refuses missing-prerequisite (38.14496ms)
|
||
✔ main is fetched from the root again before each push, so a clone of a newer root pushes (90.241834ms)
|
||
✔ a root moved back after the clone leaves the push's base unknown: missing-prerequisite (59.842111ms)
|
||
✔ a commit with a broken object refuses invalid-bundle, and only because fsck is on (60.263362ms)
|
||
✔ only a v2 bundle with the named branch is read (57.904832ms)
|
||
✔ a branch named main, or named for another task, moves only this task's work ref (77.392178ms)
|
||
✔ a record that throws moves the work ref back, or removes a new one (99.845087ms)
|
||
✔ a work ref that can't go back refuses rollback-failed, naming the ref and the commit (362.527409ms)
|
||
✔ a root that can't be read refuses root-unreadable (29.366988ms)
|
||
✔ a git past its time gets SIGTERM, leaves no ref lock, and the next push lands (2123.542673ms)
|
||
✔ a git that ignores SIGTERM gets SIGKILL once the grace period is over (1038.075379ms)
|
||
✔ a working repository path that isn't a directory refuses (29.411001ms)
|
||
✔ review bundles a pushed commit as refs/mosaic/review, leaving out what the reviewer has (135.964681ms)
|
||
✔ review of a project with no working repository refuses unknown-commit (13.587398ms)
|
||
✔ the runner's git tools hold the host's limits and branch rule (1.391235ms)
|
||
ℹ tests 132
|
||
ℹ suites 0
|
||
ℹ pass 132
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 15229.359008
|