beads/internal/utils
Steven Syrek f0057c7828
ci: install dolt binary on Linux and macOS test runners (#3440)
* ci: install dolt binary on Linux and macOS test runners

Install dolt via the official install.sh on Linux and via Homebrew on
macOS so the main test job can exercise the ~24 test gates that
previously silently skipped on every PR when dolt was absent from PATH.

Matches the installation pattern already used by nightly.yml.
Docker-testcontainer gates (testDoltServerPort == 0 skips) remain
skipped — a known GitHub Actions hang documented in
scripts/repro-dolt-hang/INCIDENT-REPORT.md and nightly.yml:37-41
prevents enabling testcontainers here.

* test: require dolt binary under GITHUB_ACTIONS

Add testutil.RequireDoltBinary: skips when the dolt CLI is absent
locally but fails the test under GITHUB_ACTIONS. Replace bare
exec.LookPath("dolt") skip-gates with the helper so ~24 tests that
previously fell through silently in CI now run — and hard-fail if
the CI workflow ever drops the dolt install step.

tests/regression/regression_test.go uses an inline variant because
its gate lives in TestMain, and internal/remotecache/cache_test.go
duplicates the helper inline to avoid an import cycle
(testutil -> doltutil -> remotecache).
2026-04-24 06:58:40 -07:00
..
id_parser.go fix: config-aware prefix detection in ResolvePartialID 2026-03-05 17:19:33 -05:00
id_parser_test.go ci: install dolt binary on Linux and macOS test runners (#3440) 2026-04-24 06:58:40 -07:00
issue_446_test.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00
issue_id.go fix: config-aware prefix detection in ResolvePartialID 2026-03-05 17:19:33 -05:00
path.go cleanup: remove daemon infrastructure remnants (GH#2431) 2026-03-10 15:24:27 -07:00
path_test.go fix: remove JSONL storage functions and config field (bd-9ni.2) 2026-02-22 21:36:00 -08:00
strings.go fix: complete decision type aliases and help strings 2026-02-11 17:23:21 -08:00
strings_test.go fix: complete decision type aliases and help strings 2026-02-11 17:23:21 -08:00
testmain_test.go refactor(tests): migrate all test files from StartTestDoltServer to container-native API 2026-03-03 10:07:32 -08:00