cc2e989efbf8
G-06/G-07 Run 2 green on golden-v2 (fmt/doctor/diff fixed); add cfgsearch+search tests; record search OOM-at-2GB finding
- time
- 2026-05-29 19:15 UTC · 4 months ago
- machine
- koh2
- parent
- 1eec3bc4456a
↓ nina-cc2e989e.tar.gzatlas at this save
files changed2 files
test/vm/tests/cfgsearch.sh+32 −0test/vm/tests/search.sh+20 −0test/vm/tests/cfgsearch.sh+32 −0
@@ -0,0 +1,32 @@1+#!/usr/bin/env sh2+# Run 2 for the previously-failing G-06/G-07 commands (fmt, doctor, diff) now that3+# the golden ships nixpkgs-fmt + enables nix-command/flakes, plus G-04 search.4+set -u5+N=/root/nina6+7+echo "KILN_CS2_BEGIN"8+9+# Second generation so diff has something to compare.10+sed -i 's| ./hardware-configuration.nix | ./hardware-configuration.nix ./genmarker.nix |' /etc/nixos/configuration.nix11+printf '{ ... }: { environment.etc."nina-gen".text = "Y"; }\n' > /etc/nixos/genmarker.nix12+$N apply >/dev/null 2>&1; echo "setup apply rc=$?"13+14+echo "### G-06 T-084 nina fmt (expect :: done, exit 0)"15+$N fmt; echo "FMT_RC=$?"16+echo "### G-06 T-085 nina fmt --check (expect ok, exit 0)"17+$N fmt --check; echo "FMTCHK_RC=$?"18+19+echo "### G-07 T-094 nina doctor (expect config syntax ok now)"20+$N doctor; echo "DOCTOR_RC=$?"21+22+echo "### G-07 T-091 nina diff (expect closure changes, no nix-command error)"23+$N diff; echo "DIFF_RC=$?"24+25+echo "### G-04 T-040 nina search firefox (expect firefox + version)"26+$N search firefox; echo "SEARCH_FF_RC=$?"27+echo "### G-04 T-041 nina search ripgrep"28+$N search ripgrep; echo "SEARCH_RG_RC=$?"29+echo "### G-04 T-055 nina search nonexistent (expect clean no-results, no crash)"30+$N search xyzzy-nope-abc123; echo "SEARCH_NONE_RC=$?"31+32+echo "KILN_CS2_END"test/vm/tests/search.sh+20 −0
@@ -0,0 +1,20 @@1+#!/usr/bin/env sh2+# G-04 search validation. `nix search nixpkgs` evaluates all of nixpkgs and is3+# memory-hungry — run this with a larger MEM_MB (see run-in-vm.sh) than the4+# brief's 2 GB, which OOMs.5+set -u6+N=/root/nina7+8+echo "KILN_SEARCH_BEGIN"9+free -m | head -210+11+echo "### T-040 nina search firefox (expect firefox + version + description)"12+$N search firefox; echo "SEARCH_FF_RC=$?"13+14+echo "### T-041 nina search ripgrep"15+$N search ripgrep; echo "SEARCH_RG_RC=$?"16+17+echo "### T-055 nina search nonexistent (expect clean no-results, no crash)"18+$N search xyzzy-nope-abc123; echo "SEARCH_NONE_RC=$?"19+20+echo "KILN_SEARCH_END"