//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>
70 lines
1.6 KiB
Python
70 lines
1.6 KiB
Python
load("@rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "encode",
|
|
srcs = [
|
|
"encode.go",
|
|
"ledger.go",
|
|
"ledger_fields.go",
|
|
"ledger_render.go",
|
|
"parentwalk.go",
|
|
"skew.go",
|
|
"table.go",
|
|
],
|
|
importpath = "github.com/steveyegge/beads/internal/httpclient/encode",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//internal/types",
|
|
"//internal/workapi",
|
|
"//issueops",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "encode_test",
|
|
srcs = [
|
|
"bijection_test.go",
|
|
"ledger_render_test.go",
|
|
"oracle_test.go",
|
|
"parentwalk_test.go",
|
|
"roundtrip_test.go",
|
|
"skew_test.go",
|
|
],
|
|
data = [
|
|
"//:engdocs/design/http-divergence-ledger.md",
|
|
"//cmd/bd:go_srcs",
|
|
"//internal/httpapi/spec:openapi.v0.yaml",
|
|
] + glob(["*.go"]),
|
|
embed = [":encode"],
|
|
deps = [
|
|
"//internal/httpapi",
|
|
"//internal/httpapi/spec",
|
|
"//internal/types",
|
|
"//internal/workapi",
|
|
"//issueops",
|
|
"//memoryops",
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
|
],
|
|
)
|
|
|
|
# --- begin repo_files (managed by tools/bazel/go_srcs.py; run `make bazel-sync`) ---
|
|
|
|
filegroup(
|
|
name = "repo_files",
|
|
srcs = glob(
|
|
["**"],
|
|
exclude = [
|
|
"**/*.db",
|
|
"**/*.exe",
|
|
"**/*.out",
|
|
"**/*.prof",
|
|
"**/*.pyc",
|
|
"**/*.test",
|
|
"**/__pycache__/**",
|
|
"**/node_modules/**",
|
|
],
|
|
),
|
|
visibility = ["//:__pkg__"],
|
|
)
|
|
|
|
# --- end repo_files ---
|