Repository navigation
tests: minimal test_deps for older standalone tests (batch 6 of 6, spire–zola) - #1409
Conversation
…ire–zola) Replace `base` in test_deps with bash-bootstrap plus the tools each script actually calls, so the test closure no longer masks undeclared runtime libraries. Test commands are unchanged; tests are not in the spec hash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 25 billable files and costs up to $6.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 4 minutes for your next included review. View limit details
|
agent-137
left a comment
There was a problem hiding this comment.
Review on Karl's behalf. This is a comment, not an approval. Nothing was built for it. The findings come from reading the declarations and fetching upstream sources, and each one says how it was checked. The CI rollup on this head is now SUCCESS.
CI: all green, including minimal build SUCCESS. CodeRabbit was rate-limited and posted no review.
No findings. What I checked:
- The tool scan for all 35 tests.
unzip:roundtripcalls/bin/grepby absolute path, so grep is needed there. - xdg-utils, spotbugs and tlaplus wrappers: their runtime closures already carry bash, coreutils and sed, plus grep and gawk for xdg-utils.
- xh tests use
--offline, so no lookup. vlt:version_is_exact: "grep" appears only in a comment.
Verdict: ready to approve.
Re-checks older standalone tests with minimal
test_deps(batch 6 of 6,spire–zola): 25 packages, 35 tests.These tests were written with
test_deps = [base].basebrings in bash, coreutils, grep, sed, gawk, diffutils, findutils, tar, gzip, xz, bzip2, file and tzdata, and through them zlib, zstd, libmagic, libstdc++ and more. That masks missing runtime libraries: a binary that needs an undeclared library still loads, because base put the library in the test closure. The smoke-test batches of 11-06/07 (#1364–#1368, #1372, #1373) used minimal deps and found several real missing runtime_deps this way.What changed
Only
test_deps. No test command was changed.baseis removed from every test'stest_deps.bash-bootstrapis added where a command runs/bin/bashor/bin/sh(its only runtime_dep is glibc).coreutils,grep,diffutils,findutils,gawk,tar,gzip. They were found by scanning each script's command positions, including multi-linem%"…"%scripts and#!/usr/bin/envshebangs.toolchain,jdk,ocaml,git, and so on) are kept as they were.let base = import …stays whereverbaseis still a build dep.testsare not part of the spec hash, so nothing rebuilds. This PR changes no package output.Expected failures
Some of these tests are expected to fail. That is the point of the PR. A failure with the minimal closure, typically exit 127 with empty stderr (a loader failure) or a missing shared library, shows a package with an UNDECLARED runtime_dep that
basewas hiding. Each one gets fixed in a follow-up commit on this branch by adding the missingruntime_deps(which does rebuild that package). A failure can also come from a script calling a tool the scan missed. Those get fixed by adding that tool totest_deps, never by addingbaseback.The failures were deliberately not predicted ahead of time. This PR exists so the build-bot runs every test under the minimal closure.
Tests
basebash-bootstrapbasebash-bootstrapbasebash-bootstrapbasebash-bootstrap, coreutils, grepbasebash-bootstrap, coreutilsbasebash-bootstrap, grepbasebash-bootstrap, grepbasebash-bootstrapbase, ca-certificatesbash-bootstrap, ca-certificates, coreutils, grepbasebash-bootstrap, coreutils, grepbasebash-bootstrap, coreutils, grepbasebash-bootstrap, coreutils, grepbasebash-bootstrap, grepbasebash-bootstrap, grepbasebash-bootstrap, coreutils, grepbasebash-bootstrapbasebash-bootstrap, coreutils, grepbasebash-bootstrap, coreutils, grepbasebash-bootstrap, grepbasebash-bootstrap, coreutils, diffutils, grepbasebash-bootstrap, coreutils, grepbasebash-bootstrap, coreutilsbasebash-bootstrap, grepbasebash-bootstrap, coreutilsbasebash-bootstrap, coreutilsbasebash-bootstrap, coreutilsbasebash-bootstrap, grepbasebash-bootstrap, grepbasebash-bootstrap, grepbasebash-bootstrap, grepbase, ocaml, dune, ocamlfind, toolchain, grep, coreutilsbash-bootstrap, ocaml, dune, ocamlfind, toolchain, grep, coreutilsbasebash-bootstrap, grepbase, toolchain, pkgconf, libsodiumbash-bootstrap, toolchain, pkgconf, libsodium, coreutils, grepbase, glibcbash-bootstrap, glibcbasebash-bootstrap🤖 Generated with Claude Code