beads/internal/utils
Julian Knutsen 0500fc6f40
ci(bazel): run the scripts and source-walking tests remotely; retire their go test legs (#7320)
//scripts:scripts_test and //scripts/check-versions:check-versions_test
drop their host-tools/no-remote-exec/no-remote-cache tags and run on the
rbe-west workers like every other target (the worker image ships bash, git,
python3, jq, yq, curl, openssl, unzip and coreutils; a missing tool fails the
test under Bazel rather than skipping it). Go comes in hermetically as the
registered SDK; check-versions.sh's `go build` is stood in for by the
Bazel-built checker.

The tests that walked the source checkout now get it as data:
tools/bazel/go_srcs.py keeps a managed `repo_files` filegroup in every
package and aggregates them into //:repo_files (exactly the tracked files
Bazel can see; make bazel-sync-check fails on a package without one).
scripts_test and docsync_test take it instead of hand-listed filegroups,
and every TEST_SRCDIR/IsBazel skip and go-test-only block in them is gone.
The release formula under .bazelignore'd .beads/ comes in through a
@beads_formulas local repository; npm-package/ and .claude/ are visible to
Bazel again (only their node_modules/worktrees stay ignored), so the npm
manifest release check and the AGENTS.md skill links run under Bazel too.
TestZZStdioNotLeaked falls back to TestMain's pre-run streams instead of
skipping in a shard without its baseline.

tools/bazel/equivalence_allowlist.txt shrinks from 20 skip entries to the
two cmd/bd tests of plain go test's own bd build fallback, which Bazel never
takes; pr-preflight-platforms now runs them on Linux, macOS and Windows. The
scripts-go-checks scripts-test and allowlisted legs, their scripts
(scripts-go-test.sh, allowlisted-go-tests.sh, run_allowlisted_go_tests.py)
and main.yml's --compile-only warm for them are removed. The vet leg stays
(ga-96smfk.18).

Refs: ga-96smfk.16

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 22:20:16 +00:00
..
BUILD.bazel ci(bazel): run the scripts and source-walking tests remotely; retire their go test legs (#7320) 2026-10-06 22:20:16 +00:00
id_parser.go Refuse reserved words and fuzzy id matches on bd comment writes (#5393) 2026-10-01 05:04:32 -07:00
id_parser_exact_test.go Refuse reserved words and fuzzy id matches on bd comment writes (#5393) 2026-10-01 05:04:32 -07:00
id_parser_fake_test.go Refuse reserved words and fuzzy id matches on bd comment writes (#5393) 2026-10-01 05:04:32 -07:00
id_parser_prefix_test.go feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00:00
id_parser_sentinel_test.go fix(utils): refuse a bare jq/JS sentinel (null, undefined, empty) as an issue ID (#6215) 2026-09-29 17:15:45 -07:00
id_parser_test.go feat(issueops): add the Reader role and wire both front doors through it 2026-07-31 18:37:25 +00:00
id_parser_unit_test.go feat(ids): say when a partial ID resolved to something else (#6302) 2026-09-28 13:12:39 -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(sort): natural numeric sort for issue IDs with dotted suffixes (GH#3477) (#3486) 2026-04-27 07:04:37 -07:00
issue_id_test.go fix(sort): natural numeric sort for issue IDs with dotted suffixes (GH#3477) (#3486) 2026-04-27 07:04:37 -07:00
path.go fix(utils): resolve macOS true-case via F_GETPATH instead of scanning every ancestor (wy-9ai3u) 2026-07-25 22:24:39 -07:00
path_case_darwin.go fix(lint): suppress two darwin-only gosec findings and cross-lint the darwin build in CI (#6243) 2026-09-28 15:44:52 -07:00
path_case_other.go fix(utils): resolve macOS true-case via F_GETPATH instead of scanning every ancestor (wy-9ai3u) 2026-07-25 22:24:39 -07:00
path_case_test.go test(utils): rate the true-case fast path against the walk, not the wall clock (wy-9ai3u) 2026-07-25 22:28:22 -07:00
path_test.go fix packaging and windows install regressions 2026-04-24 11:48:39 -07: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 test(testutil): opt-in local dolt sql-server backend for Dolt-backed tests (#6891) 2026-09-28 04:06:49 -07:00