grit://cooking/dogfood← what’s cooking
Monday, November 2, 2026 · Ubuntu 24.04.5 LTS (kernel 6.12.94+)

Dogfood on linux-cloud: Automation and CI scripter

5 repos · 31 commands · 7 broken · 1 slow · 5 filed

Scripter/CI persona on a Cursor Linux VM: machine output with hostile data, env/config overrides, a CI flow over real smart HTTP (grit serve with token auth), stalled-server signals, loose-ref accumulation, startup loops, plus re-verification of six fixed issues. Core CI flow (shallow/blobless clone, tag, commit, push, rejected push, exit codes, json kinds) is solid and fast; the weak spots are non-UTF-8 names outside add/commit (stash, switch, merge, restore, clean), non-UTF-8 tag messages that make a repo uncloneable, and http.lowSpeed* not bounding a silent server. 5 bugs filed (#2510-#2514); #2409 not fixed, the other five fixes verified.

os
Ubuntu 24.04.5 LTS (kernel 6.12.94+) · x86_64
machine
Cursor cloud VM, 4 vCPU Intel Xeon, 15 GB RAM
versions
grit 0.5.28 · main d1cb18b5 · 2.43.0
repositories5
repofilescommits.gitnotes
octocat/Hello-World131 MB
rust-lang/cargo3,07823,61181 MB
git/git4,86382,668326 MB
scratch/20k-loose-tags0179 MB20,000 tag refs on one empty commit; plus a bare 22k-tag remote
scratch/hostile-names (s1, nu*, host, host2)941 MBcontrol chars, quotes, non-UTF-8 names, Latin-1 commits and tags
commandsgrit vs. system git, wall time
commandrepogritgitgrit/gitresultnotes
grit status --jsongit/git5.0 ms5.0 ms1.0×ok
grit diff v2.48.0-rc1 v2.55.0-rc2 --jsongit/git500 ms990 ms0.5×ok2.1x git's peak RSS, borderline
grit diff --stat v2.48.0-rc1 v2.55.0-rc2git/git300 ms770 ms0.4×ok
grit diff v2.20.0 v2.30.0 > filegit/git420 ms700 ms0.6×ok#2501 verified
grit diff v2.20.0 v2.30.0 --json --filter '.files|length'git/git1.39 s——memoryunfiltered json 570 ms / 355 MB; #2409 reopened
grit log --json -n 100git/git5.0 ms5.0 ms1.0×ok
grit revs v2.48.0-rc1..v2.55.0-rc2 --countgit/git400 ms190 ms2.1×ok2.1x slower
grit tag --jsongit/git10 ms5.0 ms2.0×ok
grit blame --json builtin/add.cgit/git440 ms470 ms0.9×ok
grit log --json -n 50 -- builtin/add.cgit/git70 ms70 ms1.0×ok
grit show --json v2.55.0-rc2git/git5.0 ms5.0 ms1.0×ok
grit fsckgit/git21.13 s40.95 s0.5×ok
grit clone --depth 1 http://127.0.0.1:8099/cargo.git (grit serve)rust-lang/cargo670 ms810 ms0.8×ok
grit clone --blobs none http://127.0.0.1:8099/cargo.gitrust-lang/cargo3.55 s4.31 s0.8×ok
grit diff --stat <tag> <tag> (blobless clone, lazy fetch)rust-lang/cargo1.63 s1.03 s1.6×ok
grit switch --detach <tag> (blobless clone)rust-lang/cargo190 ms200 ms0.9×ok
grit branch zz / tag t / switch -c (20k loose tags)scratch/20k-loose-tags3.0 ms3.0 ms1.0×ok#2502 verified
grit log --json -n1 (20k loose tags)scratch/20k-loose-tags260 ms220 ms1.2×ok
grit clone file:// (20k tags remote)scratch/20k-loose-tags440 ms170 ms2.6×ok2.6x slower, 2.2x memory, borderline
grit fetch (2000 new tags)scratch/20k-loose-tags270 ms150 ms1.8×ok
grit status --json x2000 loopoctocat/Hello-World2.2 ms1.5 ms1.5×ok4.33 s vs 2.93 s for 2000 runs
grit resolve HEAD x2000 loopoctocat/Hello-World2.0 ms1.2 ms1.7×ok3.93 s vs 2.41 s for 2000 runs
grit clone file:// of repo with non-UTF-8 tag messagescratch/hostile-names (s1, nu*, host, host2)———error#2510
grit fsck / tag --json / show / gc with non-UTF-8 tag messagescratch/hostile-names (s1, nu*, host, host2)———error#2510
grit stash / stash pop with non-UTF-8 modified filescratch/hostile-names (s1, nu*, host, host2)———wrong#2512
grit switch / merge with non-UTF-8 changed filescratch/hostile-names (s1, nu*, host, host2)———error#2513
grit restore --source br -- .scratch/hostile-names (s1, nu*, host, host2)———wrong#2513, creates U+FFFD-named file
grit clean --force with non-UTF-8 untracked filescratch/hostile-names (s1, nu*, host, host2)———wrong#2514
grit fetch/clone against silent HTTP server with http.lowSpeedLimitoctocat/Hello-World———wrong#2511, hangs; git aborts in 5 s
grit clone/fetch/pull/push/remote refs + SIGINT/SIGTERM/SIGHUP vs stalled serveroctocat/Hello-World———ok#2469 verified fixed on main
grit push (non-ff) / push --force-with-lease / pull --ff-only over HTTPoctocat/Hello-World———okexit 1 with structured rejected/auth_required output
worked8
  • ›Non-interactive behaviour: no prompts with stdin closed, clear auth_required error with hint, nothing_to_commit/revision_not_found/not_a_repository json kinds
  • ›Env overrides (GIT_DIR, GIT_WORK_TREE, GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY, GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_CEILING_DIRECTORIES, -C chains) behave like git
  • ›grit.changeIds=false makes commit oids byte-identical to git's for the same inputs
  • ›Shallow and blobless clone over grit serve with token auth; fsck-clean and sizes equal to git's
  • ›Large diff/fsck on git/git are 2x faster than git; blame/log -- path on par
  • ›Signals now abort stalled clone/fetch/pull/push/remote refs promptly with no leftovers
  • ›PAGER failing/missing is tolerated with a warning
  • ›Ref creation with 20k loose tags is as fast as git; clone packs refs
problems12
  • ›#2510 non-UTF-8 annotated tag message breaks clone/gc/show/tag --json/fsck (filed)
  • ›#2511 http.lowSpeedLimit/Time never fires on silent/stalled-body server (filed)
  • ›#2512 stash with non-UTF-8 tracked file stores bogus pathhex path, leaves file modified, pop makes a stray file (filed)
  • ›#2513 switch/merge refuse on clean tree with non-UTF-8 changed file; restore --source writes a U+FFFD-named file (filed)
  • ›#2514 clean --force silently skips non-UTF-8 untracked files with exit 0 (filed)
  • ›#2409 json --filter on a large diff still 2.4x time / 2.5x RSS of unfiltered (reopened via verify_fix)
  • ›Unfiled: fatal signals exit 130 for SIGTERM on clone/fetch/pull but 143 on push/remote refs (inconsistent, minor)
  • ›Unfiled: markdown output prints raw ESC in table cells while headings use quoted form (same family as #2481/#2303)
  • ›Unfiled: grit commit is not reproducible by default because of the random change-id header (documented design; grit.changeIds=false opts out)
  • ›Unfiled: `grit mv` / explicit non-UTF-8 path operands are rejected as 'invalid UTF-8 in arguments' (documented in status.md), so the pathhex names printed by status cannot be passed to clean/restore/mv/rm reliably
  • ›Unfiled: fixed startup overhead is ~0.7 ms over git (1.3 ms for --version); fine for scripts but 1.5x in 2000x loops
  • ›Unfiled: clone of a 20k-tag remote is 2.6x slower than git (0.44 vs 0.17 s)
bugs filed5
#2510 #2511 #2512 #2513 #2514already reported: #2481 #2303 #2368 #2338
next time
  • ›Cover the non-UTF-8 fixes: stash, switch, merge, restore, clean, mv, rm, worktree add, bundle, notes with such names and with 'grit+pathhex:'-literal names, and non-UTF-8 tag/commit/author data through fetch, push, bundle and history rewriting
  • ›Run the CI flow over real ssh (sshd on localhost) and with credential helpers other than store; check receive.shallowUpdate and shallow push
  • ›Stalled-server coverage for bundle-uri, push to a drip receiver, and library Cancel/ProgressSink on slow (not stalled) transfers; check that fix #2511 also covers clone over proxies
  • ›json --filter memory on other big outputs (log --json with --stat on cargo, blame --json on long files) once #2409 is reworked
  • ›Casefold/case-insensitive checkout tests need a macOS or kernel with CONFIG_UNICODE; retest #2499 there
  • ›Hooks under signals on a big work tree (pre-push, post-merge) and lock cleanup after SIGKILL for rebase/merge
  • ›Library angle: embed grit-lib to read tags/commits with non-UTF-8 text and check the typed error variants and Cancel on Remote::fetch over HTTP with a slow server