* fix(http): bd gate check over http through issueops.ListGates gate check listed its open gates with a raw SearchIssues filter (gate type, closed excluded, --limit), which the HTTP backend refuses, so the command failed before reading a gate on a remote scope and gc's core gate-sweep order (bd gate check --type=timer --escalate) failed every tick there. The listing now goes through issueops.ListGates over openQuerier on the direct and proxied routes, the same entry bd gate list took in S20 (#7549): the same question, served as queryIssues by every deployed server. The close, the bead-gate target read and sighting, the pure timer arm and the gh/gt execs are unchanged. The gh:run discovery's await_id persist still refuses on the wire and counts as that gate's error. The served corpus gains mc-gate-check-timer, mc-gate-check-gh (gate-sweep's argv) and gate-check-all. No seeded gate carries an await type, since no wire create accepts await_*, so these prove the listing is served. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(gate): name both refused gate check writes; close gate's filter hole Review fixes for #7578 (apply-fixes, iteration 1). CHANGELOG, minor (taken): the entry said a bead gate's sighting was already served over HTTP. It is not. evaluateBeadGate records the first sighting (await_seen) through recordSeen, which calls the raw store.UpdateIssue (cmd/bd/gate.go:675). The HTTP Store has no UpdateIssue override, so its embedded unsupportedDoltStorage refuses the call in the client before any request is sent (internal/httpclient/unsupported_gen.go), exactly as it refuses the gh:run discovery's await_id persist. "Refuses on the wire" was wrong for the same reason. The entry now names both writes and keeps "counts as that gate's error" (applyGateCheckResults counts r.err). The sighting is written only when the check finds the awaited bead, not yet closed, in the gate's own store; inspectBeadGate sets seenHere only there. CHANGELOG, nit (taken): `bd gate check --limit -1` used to list every open gate on the direct and proxied routes, because the raw search emitted no LIMIT clause for a negative limit. The listing now goes through issueops.ListGates, whose Querier rejects a negative limit as ErrValidation, and the HTTP server rejects it too (internal/httpapi/query.go). The entry says so. .golangci.yml, minor (taken): at this head cmd/bd/gate.go and gate_proxied_server.go name no filter type (one each at the base), so their slot in the cmd/bd forbidigo family only kept a hole open. `gate` leaves the alternation, with a "LEFT this list" note like the ones for search, status and count. gate_discover keeps its own hole: findPendingGates still builds the raw filter. Declined: - bd gate discover still refuses over HTTP in findPendingGates (minor): the synthesis' first remedy is no change in this PR, and the file is not in this PR's diff. Finalize files the follow-up to move it onto ListGates. - the proxied listing is not pinned on its own (nit): it calls the same listOpenGatesForCheck as the direct route (gate_proxied_server.go:106), and the synthesis calls accepting the gap defensible. - listOpenGatesForCheck/listOpenGatesWith naming (nit): the remedy is "leave as is". Verified: - git diff --check: clean. - bazel build --config=nogo -- //cmd/bd:all on the edited config: 16 targets, exit 0. - Probe, then reverted: a types.IssueFilter literal in gate.go and a types.WorkFilter literal in gate_proxied_server.go each failed nogo with forbidigo's "do not write a filter here", so the hole is shut. - git merge-tree against the heads of all 102 other open PRs that touch CHANGELOG.md or .golangci.yml (today's census): this commit changes no conflict count in either file. 43 PR/file pairs already conflict with or without it. Agent-Signature: claude-code-claude-opus-5-5-unknown-reasoning on behalf of Julian Knutsen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1840 lines
65 KiB
Python
1840 lines
65 KiB
Python
load("@rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
|
|
load("@rules_shell//shell:sh_test.bzl", "sh_test")
|
|
|
|
# testdata/ holds the compilable preflight fixture below. Left to itself gazelle
|
|
# would make testdata/ its own package, which empties this package's
|
|
# glob(["testdata/**"]) and puts the fixture source across a package boundary.
|
|
# gazelle:exclude testdata
|
|
|
|
go_binary(
|
|
name = "preflight_go_fixture",
|
|
testonly = True,
|
|
srcs = ["testdata/preflight-go.go"],
|
|
)
|
|
|
|
# The external `dolt` stand-in for TestRunCompactDoltTargetsOnlyAuthorizedActiveDatabase
|
|
# (compact_gc_target_test.go), entirely env-driven at run time, so one
|
|
# prebuilt copy covers every test case and mode: the test never needs a host
|
|
# Go toolchain under Bazel (bazeltest.RunfileEnv, BEADS_TEST_COMPACT_GC_FIXTURE).
|
|
# pure/race pinned explicitly, like :bd_for_tests: stdlib-only (encoding/json,
|
|
# fmt, os), so it needs neither cgo nor the race detector, and nothing about
|
|
# it depends on either; pinning keeps that true whatever --config the
|
|
# consuming go_test builds under (prcore/embedded/doltserver-*), instead of
|
|
# relying on this tiny fixture happening to inherit a compatible default.
|
|
go_binary(
|
|
name = "compact_gc_fixture",
|
|
testonly = True,
|
|
srcs = ["testdata/compact-gc-fixture.go"],
|
|
pure = "on",
|
|
race = "off",
|
|
)
|
|
|
|
go_library(
|
|
name = "bd_lib",
|
|
srcs = [
|
|
"admin.go",
|
|
"ado.go",
|
|
"agent_hook.go",
|
|
"assign.go",
|
|
"audit.go",
|
|
"auto_import_upgrade.go",
|
|
"backend_support.go",
|
|
"backup.go",
|
|
"backup_auto.go",
|
|
"backup_cap.go",
|
|
"backup_dolt.go",
|
|
"backup_export.go",
|
|
"backup_lock.go",
|
|
"backup_proxied_server.go",
|
|
"backup_restore.go",
|
|
"batch.go",
|
|
"batch_proxied_server.go",
|
|
"bootstrap.go",
|
|
"branch.go",
|
|
"capability_registry.go",
|
|
"children.go",
|
|
"cleanup.go",
|
|
"close.go",
|
|
"close_direct.go",
|
|
"close_if_revision.go",
|
|
"close_proxied_server.go",
|
|
"closed_delete_candidates.go",
|
|
"codex_hook.go",
|
|
"command_telemetry.go",
|
|
"comment.go",
|
|
"comments.go",
|
|
"comments_proxied_server.go",
|
|
"compact.go",
|
|
"compact_dolt.go",
|
|
"compact_dolt_proxied_server.go",
|
|
"compact_plan.go",
|
|
"compact_proxied_server.go",
|
|
"completions.go",
|
|
"config.go",
|
|
"config_apply.go",
|
|
"config_drift.go",
|
|
"config_drift_unix.go",
|
|
"config_drift_windows.go",
|
|
"config_proxied_server.go",
|
|
"config_show.go",
|
|
"config_side_effects.go",
|
|
"conflicts.go",
|
|
"connect.go",
|
|
"context.go",
|
|
"context_cmd.go",
|
|
"context_proxied_server.go",
|
|
"cook.go",
|
|
"count.go",
|
|
"count_proxied_server.go",
|
|
"create.go",
|
|
"create_atomic.go",
|
|
"create_deps.go",
|
|
"create_form.go",
|
|
"create_input.go",
|
|
"create_proxied_server.go",
|
|
"cursor_hook.go",
|
|
"database_name.go",
|
|
"db_proxy_child.go",
|
|
"defer.go",
|
|
"defer_proxied_server.go",
|
|
"delete.go",
|
|
"delete_proxied_server.go",
|
|
"dep.go",
|
|
"dep_cycles.go",
|
|
"dep_proxied_server.go",
|
|
"dep_relation.go",
|
|
"dep_tree.go",
|
|
"detect_pollution.go",
|
|
"diff.go",
|
|
"direct_mode.go",
|
|
"doctor.go",
|
|
"doctor_agent.go",
|
|
"doctor_artifacts.go",
|
|
"doctor_conventions.go",
|
|
"doctor_fix.go",
|
|
"doctor_health.go",
|
|
"doctor_orchestrator_guard.go",
|
|
"doctor_pollution.go",
|
|
"doctor_validate.go",
|
|
"dolt.go",
|
|
"dolt_autocommit.go",
|
|
"dolt_autocommit_config.go",
|
|
"dolt_autopush.go",
|
|
"dolt_clean_databases.go",
|
|
"dolt_clean_databases_proxied_server.go",
|
|
"dolt_commit_proxied_server.go",
|
|
"dolt_local_only.go",
|
|
"dolt_proxied_lifecycle.go",
|
|
"dolt_remote_adopt.go",
|
|
"dolt_remote_guard.go",
|
|
"dolt_remote_proxied_server.go",
|
|
"dolt_remote_reset_data.go",
|
|
"duplicate.go",
|
|
"duplicates.go",
|
|
"duplicates_proxied_server.go",
|
|
"edit.go",
|
|
"edit_proxied_server.go",
|
|
"epic.go",
|
|
"epic_proxied_server.go",
|
|
"errors.go",
|
|
"events.go",
|
|
"events_journal.go",
|
|
"export.go",
|
|
"export_auto.go",
|
|
"export_obsidian.go",
|
|
"export_source.go",
|
|
"federation.go",
|
|
"federation_nocgo.go",
|
|
"feedback.go",
|
|
"find_duplicates.go",
|
|
"find_duplicates_proxied_server.go",
|
|
"flags.go",
|
|
"flatten.go",
|
|
"formula.go",
|
|
"formula_schema.go",
|
|
"fs_adapters.go",
|
|
"gate.go",
|
|
"gate_discover.go",
|
|
"gate_proxied_server.go",
|
|
"gated.go",
|
|
"gc.go",
|
|
"gc_proxied_server.go",
|
|
"gc_prune.go",
|
|
"git_test_helpers.go",
|
|
"github.go",
|
|
"gitlab.go",
|
|
"graph.go",
|
|
"graph_apply.go",
|
|
"graph_export.go",
|
|
"graph_proxied_server.go",
|
|
"graph_visual.go",
|
|
"heartbeat.go",
|
|
"heartbeat_proxied_server.go",
|
|
"help_all.go",
|
|
"help_supplements.go",
|
|
"history.go",
|
|
"history_proxied_server.go",
|
|
"hooks.go",
|
|
"http_backend.go",
|
|
"human.go",
|
|
"human_proxied_server.go",
|
|
"if_revision.go",
|
|
"import.go",
|
|
"import_path.go",
|
|
"import_proxied_server.go",
|
|
"import_shared.go",
|
|
"info.go",
|
|
"info_proxied_server.go",
|
|
"init.go",
|
|
"init_agent.go",
|
|
"init_contributor.go",
|
|
"init_git_hooks.go",
|
|
"init_guard.go",
|
|
"init_policy.go",
|
|
"init_proxied_server.go",
|
|
"init_safety.go",
|
|
"init_safety_help.go",
|
|
"init_stealth.go",
|
|
"init_team.go",
|
|
"init_templates.go",
|
|
"issueops_adapter.go",
|
|
"jira.go",
|
|
"kv.go",
|
|
"kv_proxied_server.go",
|
|
"label.go",
|
|
"label_proxied_server.go",
|
|
"label_whitespace_warn.go",
|
|
"last_touched.go",
|
|
"legacy_sqlite_reader.go",
|
|
"legacy_upgrade_guard.go",
|
|
"linear.go",
|
|
"link.go",
|
|
"link_proxied_server.go",
|
|
"lint.go",
|
|
"lint_proxied_server.go",
|
|
"list.go",
|
|
"list_filter_flags.go",
|
|
"list_format.go",
|
|
"list_input.go",
|
|
"list_output.go",
|
|
"list_proxied_server.go",
|
|
"list_roles.go",
|
|
"list_show_filter_modes.go",
|
|
"list_tree.go",
|
|
"list_tree_deps.go",
|
|
"mail.go",
|
|
"main.go",
|
|
"main_errors.go",
|
|
"main_help.go",
|
|
"markdown.go",
|
|
"max_rows.go",
|
|
"memory.go",
|
|
"merge_slot.go",
|
|
"metadata_flag.go",
|
|
"metrics.go",
|
|
"migrate.go",
|
|
"migrate_consent.go",
|
|
"migrate_dolt_mode.go",
|
|
"migrate_hooks.go",
|
|
"migrate_hooks_apply.go",
|
|
"migrate_issues.go",
|
|
"migrate_personal.go",
|
|
"mol.go",
|
|
"mol_bond.go",
|
|
"mol_burn.go",
|
|
"mol_current.go",
|
|
"mol_distill.go",
|
|
"mol_last_activity.go",
|
|
"mol_port.go",
|
|
"mol_progress.go",
|
|
"mol_proxied_server.go",
|
|
"mol_ready_gated.go",
|
|
"mol_roles.go",
|
|
"mol_seed.go",
|
|
"mol_show.go",
|
|
"mol_squash.go",
|
|
"mol_stale.go",
|
|
"mutate_proxied_server.go",
|
|
"nocow_linux.go",
|
|
"nocow_other.go",
|
|
"note.go",
|
|
"notion.go",
|
|
"onboard.go",
|
|
"orphans.go",
|
|
"orphans_proxied_server.go",
|
|
"output.go",
|
|
"ping.go",
|
|
"ping_proxied_server.go",
|
|
"pour.go",
|
|
"preflight.go",
|
|
"preflight_versions.go",
|
|
"prime.go",
|
|
"prime_divergence.go",
|
|
"prime_proxied_server.go",
|
|
"priority.go",
|
|
"promote.go",
|
|
"promote_proxied_server.go",
|
|
"prompt.go",
|
|
"provenance.go",
|
|
"proxied_maintenance.go",
|
|
"proxied_server.go",
|
|
"proxy_capability.go",
|
|
"proxy_topology.go",
|
|
"prune.go",
|
|
"purge.go",
|
|
"purge_proxied_server.go",
|
|
"query.go",
|
|
"query_proxied_server.go",
|
|
"quick.go",
|
|
"quick_proxied_server.go",
|
|
"quickstart.go",
|
|
"ready.go",
|
|
"ready_input.go",
|
|
"ready_proxied_server.go",
|
|
"reclaim.go",
|
|
"recompute_blocked.go",
|
|
"recompute_blocked_proxied_server.go",
|
|
"relate.go",
|
|
"relate_proxied_server.go",
|
|
"remote_backend.go",
|
|
"remote_migrate_gate.go",
|
|
"rename.go",
|
|
"rename_prefix.go",
|
|
"reopen.go",
|
|
"reopen_proxied_server.go",
|
|
"repo.go",
|
|
"reset.go",
|
|
"restore.go",
|
|
"routed.go",
|
|
"routing_read.go",
|
|
"routing_role.go",
|
|
"rules.go",
|
|
"sandbox_unix.go",
|
|
"sandbox_windows.go",
|
|
"schema.go",
|
|
"schema_skew.go",
|
|
"search.go",
|
|
"send_metrics.go",
|
|
"serve.go",
|
|
"setup.go",
|
|
"ship.go",
|
|
"show.go",
|
|
"show_children.go",
|
|
"show_current.go",
|
|
"show_display.go",
|
|
"show_format.go",
|
|
"show_proxied_server.go",
|
|
"show_proxied_watch.go",
|
|
"show_refs.go",
|
|
"show_thread.go",
|
|
"show_unit_helpers.go",
|
|
"sql.go",
|
|
"sql_proxied_server.go",
|
|
"stale.go",
|
|
"stale_proxied_server.go",
|
|
"state.go",
|
|
"status.go",
|
|
"status_proxied_server.go",
|
|
"statuses.go",
|
|
"statuses_proxied_server.go",
|
|
"storage_chain.go",
|
|
"store_factory.go",
|
|
"store_factory_nocgo.go",
|
|
"store_factory_server_mode.go",
|
|
"store_reopen.go",
|
|
"swarm.go",
|
|
"swarm_proxied_server.go",
|
|
"sync.go",
|
|
"sync_flags.go",
|
|
"sync_git.go",
|
|
"sync_push_pull.go",
|
|
"sync_remote.go",
|
|
"tag.go",
|
|
"telemetry_redact.go",
|
|
"template.go",
|
|
"test_guard_helpers.go",
|
|
"thanks.go",
|
|
"tips.go",
|
|
"todo.go",
|
|
"todo_proxied_server.go",
|
|
"tracker_store.go",
|
|
"types.go",
|
|
"unclaim.go",
|
|
"unclaim_proxied_server.go",
|
|
"undefer.go",
|
|
"uow_factory.go",
|
|
"update.go",
|
|
"update_description_guard.go",
|
|
"update_input.go",
|
|
"update_notes_guard.go",
|
|
"update_proxied_server.go",
|
|
"upgrade.go",
|
|
"vc.go",
|
|
"version.go",
|
|
"version_proxied_server.go",
|
|
"version_tracking.go",
|
|
"where.go",
|
|
"wisp.go",
|
|
"wisp_proxied_server.go",
|
|
"workspace_gate.go",
|
|
"worktree.go",
|
|
"worktree_cmd.go",
|
|
"worktree_remove_cmd.go",
|
|
"worktree_remove_git.go",
|
|
],
|
|
embedsrcs = ["help_supplements/create_graph_plan.md"],
|
|
importpath = "github.com/steveyegge/beads/cmd/bd",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//:beads",
|
|
"//backend/http",
|
|
"//cmd/bd/doctor",
|
|
"//cmd/bd/doctor/fix",
|
|
"//cmd/bd/setup",
|
|
"//internal/ado",
|
|
"//internal/atomicfile",
|
|
"//internal/audit",
|
|
"//internal/beads",
|
|
"//internal/ceiling",
|
|
"//internal/compact",
|
|
"//internal/config",
|
|
"//internal/configfile",
|
|
"//internal/debug",
|
|
"//internal/doltremote",
|
|
"//internal/doltserver",
|
|
"//internal/doltversion",
|
|
"//internal/eventsjournal",
|
|
"//internal/execenv",
|
|
"//internal/formula",
|
|
"//internal/git",
|
|
"//internal/gitenv",
|
|
"//internal/githooksenv",
|
|
"//internal/github",
|
|
"//internal/gitignore",
|
|
"//internal/gitlab",
|
|
"//internal/hooks",
|
|
"//internal/httpapi",
|
|
"//internal/httpclient",
|
|
"//internal/jira",
|
|
"//internal/linear",
|
|
"//internal/lockfile",
|
|
"//internal/memoryapi",
|
|
"//internal/metrics",
|
|
"//internal/migration",
|
|
"//internal/migration/legacysqlite",
|
|
"//internal/molecules",
|
|
"//internal/notion",
|
|
"//internal/query",
|
|
"//internal/recipes",
|
|
"//internal/remotecache",
|
|
"//internal/routing",
|
|
"//internal/storage",
|
|
"//internal/storage/backends",
|
|
"//internal/storage/contextinfo",
|
|
"//internal/storage/dberrors",
|
|
"//internal/storage/dbproxy/proxy",
|
|
"//internal/storage/dbproxy/server",
|
|
"//internal/storage/dbproxy/util",
|
|
"//internal/storage/dolt",
|
|
"//internal/storage/doltutil",
|
|
"//internal/storage/domain",
|
|
"//internal/storage/domain/db",
|
|
"//internal/storage/domain/git",
|
|
"//internal/storage/embeddeddolt",
|
|
"//internal/storage/externaldeps",
|
|
"//internal/storage/fs",
|
|
"//internal/storage/git",
|
|
"//internal/storage/issueops",
|
|
"//internal/storage/kvkeys",
|
|
"//internal/storage/schema",
|
|
"//internal/storage/sqlclass",
|
|
"//internal/storage/uow",
|
|
"//internal/storage/versioncontrolops",
|
|
"//internal/telemetry",
|
|
"//internal/templates/agents",
|
|
"//internal/timeparsing",
|
|
"//internal/tracker",
|
|
"//internal/types",
|
|
"//internal/ui",
|
|
"//internal/uimd",
|
|
"//internal/utils",
|
|
"//internal/validation",
|
|
"//internal/versioncheck",
|
|
"//internal/workapi",
|
|
"//internal/workspacegate",
|
|
"//internal/worktreeremove",
|
|
"//issueops",
|
|
"//memoryops",
|
|
"@com_github_anthropics_anthropic_sdk_go//:anthropic-sdk-go",
|
|
"@com_github_anthropics_anthropic_sdk_go//option",
|
|
"@com_github_burntsushi_toml//:toml",
|
|
"@com_github_charmbracelet_x_ansi//:ansi",
|
|
"@com_github_dolthub_dolt_go//libraries/doltcore/servercfg",
|
|
"@com_github_dolthub_dolt_go//libraries/utils/filesys",
|
|
"@com_github_go_sql_driver_mysql//:mysql",
|
|
"@com_github_invopop_jsonschema//:jsonschema",
|
|
"@com_github_spf13_cobra//:cobra",
|
|
"@com_github_spf13_pflag//:pflag",
|
|
"@com_github_spf13_viper//:viper",
|
|
"@com_github_subosito_gotenv//:gotenv",
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
|
"@io_opentelemetry_go_otel//attribute",
|
|
"@io_opentelemetry_go_otel//codes",
|
|
"@io_opentelemetry_go_otel_trace//:trace",
|
|
"@land_charm_huh_v2//:huh",
|
|
"@land_charm_lipgloss_v2//:lipgloss",
|
|
"@org_golang_x_mod//module",
|
|
"@org_golang_x_mod//semver",
|
|
"@org_golang_x_term//:term",
|
|
] + select({
|
|
"@rules_go//go/platform:android": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@rules_go//go/platform:linux": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@rules_go//go/platform:windows": [
|
|
"@org_golang_x_sys//windows",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
go_binary(
|
|
name = "bd",
|
|
embed = [":bd_lib"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
# The bd that subprocess tests exec, injected through BEADS_TEST_BD_BINARY
|
|
# (bazeltest.PrebuiltBD) instead of a per-package `go build`. Never race
|
|
# instrumented, even under --config=prcore: it matches the non-race
|
|
# gms_pure_go binary pr-core's tests build today. Named bd, like that binary.
|
|
go_binary(
|
|
name = "bd_for_tests",
|
|
out = "bd_for_tests/bd",
|
|
embed = [":bd_lib"],
|
|
race = "off",
|
|
visibility = [
|
|
"//backend/http:__pkg__",
|
|
"//backend/http/corpus:__pkg__",
|
|
"//cmd/bd:__subpackages__",
|
|
"//internal/beads:__pkg__",
|
|
"//internal/storage/uow:__pkg__",
|
|
"//test/conformance:__pkg__",
|
|
"//tests/migration:__pkg__",
|
|
"//tests/regression:__pkg__",
|
|
"//tests/upgrade_smoke:__pkg__",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "bd_test",
|
|
# -race -short runs ~4-10 min unsharded (pr-core gives go test
|
|
# -timeout=30m). Bazel shards by test count, not duration; test re-execs
|
|
# strip the shard variables (bazeltest.ShardFreeEnv).
|
|
size = "large",
|
|
timeout = "long",
|
|
srcs = [
|
|
"aaa_stdio_baseline_test.go",
|
|
"actor_test.go",
|
|
"ado_roundtrip_test.go",
|
|
"ado_test.go",
|
|
"agent_hook_test.go",
|
|
"assign_fence_embedded_test.go",
|
|
"assign_fence_proxied_test.go",
|
|
"auto_import_upgrade_embedded_test.go",
|
|
"auto_import_upgrade_unit_test.go",
|
|
"autocommit_embedded_test.go",
|
|
"backend_registry_contract_test.go",
|
|
"backup_auto_proxied_local_integration_test.go",
|
|
"backup_auto_proxied_test.go",
|
|
"backup_auto_test.go",
|
|
"backup_cap_test.go",
|
|
"backup_dolt_test.go",
|
|
"backup_embedded_test.go",
|
|
"backup_export_failure_test.go",
|
|
"backup_export_watermark_test.go",
|
|
"backup_lock_test.go",
|
|
"backup_proxied_external_integration_test.go",
|
|
"backup_proxied_local_integration_test.go",
|
|
"backup_proxied_policy_test.go",
|
|
"backup_restore_test.go",
|
|
"backup_status_test.go",
|
|
"backup_test.go",
|
|
"batch_embedded_test.go",
|
|
"batch_parity_test.go",
|
|
"batch_test.go",
|
|
"blocked_embedded_test.go",
|
|
"blocked_proxied_integration_test.go",
|
|
"bootstrap_backend_guard_test.go",
|
|
"bootstrap_embedded_test.go",
|
|
"bootstrap_guard_test.go",
|
|
"bootstrap_noninteractive_test.go",
|
|
"bootstrap_registered_backend_test.go",
|
|
"bootstrap_test.go",
|
|
"bootstrap_worktree_test.go",
|
|
"branch_embedded_test.go",
|
|
"capability_registry_history_test.go",
|
|
"capability_registry_test.go",
|
|
"capability_registry_transform_test.go",
|
|
"cascade_parity_proxied_integration_test.go",
|
|
"children_embedded_test.go",
|
|
"children_test.go",
|
|
"claim_pools_embedded_test.go",
|
|
"cli_fast_test.go",
|
|
"close_embedded_test.go",
|
|
"close_failure_report_test.go",
|
|
"close_fanin_proxied_integration_test.go",
|
|
"close_gate_test.go",
|
|
"close_if_revision_embedded_test.go",
|
|
"close_if_revision_proxied_test.go",
|
|
"close_last_touched_test.go",
|
|
"close_proxied_integration_test.go",
|
|
"close_reason_file_test.go",
|
|
"close_routing_test.go",
|
|
"cobra_flag_reset_test.go",
|
|
"codex_hook_test.go",
|
|
"command_telemetry_test.go",
|
|
"comment_promote_embedded_test.go",
|
|
"comment_proxied_integration_test.go",
|
|
"comment_reserved_word_test.go",
|
|
"comment_routed_exact_test.go",
|
|
"comment_test.go",
|
|
"comments_add_test.go",
|
|
"comments_cli_embedded_test.go",
|
|
"comments_test.go",
|
|
"compact_embedded_test.go",
|
|
"compact_gc_flag_test.go",
|
|
"compact_gc_size_test.go",
|
|
"compact_gc_target_test.go",
|
|
"compact_plan_test.go",
|
|
"compact_test.go",
|
|
"compact_tier2_embedded_test.go",
|
|
"completions_test.go",
|
|
"config_apply_test.go",
|
|
"config_drift_test.go",
|
|
"config_drift_windows_test.go",
|
|
"config_embedded_test.go",
|
|
"config_get_backup_enabled_embedded_test.go",
|
|
"config_get_backup_enabled_test.go",
|
|
"config_guard_test.go",
|
|
"config_isolation_regression_test.go",
|
|
"config_leaked_secret_test.go",
|
|
"config_list_test.go",
|
|
"config_nodb_embedded_test.go",
|
|
"config_proxied_integration_test.go",
|
|
"config_setmany_test.go",
|
|
"config_show_kv_exclusion_test.go",
|
|
"config_show_test.go",
|
|
"config_side_effects_test.go",
|
|
"config_test.go",
|
|
"config_validate_key_test.go",
|
|
"config_worktree_test.go",
|
|
"conflicts_conclude_integration_test.go",
|
|
"conflicts_conclude_test.go",
|
|
"conflicts_test.go",
|
|
"context_binding_integration_test.go",
|
|
"context_binding_test.go",
|
|
"context_cmd_test.go",
|
|
"context_embedded_test.go",
|
|
"context_identity_test.go",
|
|
"context_proxied_integration_test.go",
|
|
"context_test.go",
|
|
"context_text_test.go",
|
|
"contributor_embedded_test.go",
|
|
"contributor_routing_e2e_test.go",
|
|
"cook_qnt_test.go",
|
|
"cook_test.go",
|
|
"count_embedded_test.go",
|
|
"count_filter_test.go",
|
|
"count_include_ephemeral_embedded_test.go",
|
|
"count_proxied_integration_test.go",
|
|
"cpu_profile_test.go",
|
|
"create_atomic_test.go",
|
|
"create_deps_atomic_test.go",
|
|
"create_deps_test.go",
|
|
"create_dispatch_test.go",
|
|
"create_embedded_test.go",
|
|
"create_external_ref_test.go",
|
|
"create_form_test.go",
|
|
"create_input_test.go",
|
|
"create_labels_test.go",
|
|
"create_markdown_batch_test.go",
|
|
"create_notes_test.go",
|
|
"create_prefix_test.go",
|
|
"create_proxied_external_integration_test.go",
|
|
"create_proxied_integration_test.go",
|
|
"create_proxied_server_test.go",
|
|
"create_proxy_unrouted_embedded_test.go",
|
|
"create_repo_no_cwd_beads_embedded_test.go",
|
|
"create_repo_remote_url_preprun_test.go",
|
|
"create_routing_test.go",
|
|
"create_test.go",
|
|
"create_timestamp_precision_embedded_test.go",
|
|
"critical_paths_test.go",
|
|
"cross_mode_parity_harness_test.go",
|
|
"cursor_hook_test.go",
|
|
"database_name_test.go",
|
|
"db_proxy_child_test.go",
|
|
"defer_embedded_test.go",
|
|
"defer_proxied_integration_test.go",
|
|
"defer_until_hint_test.go",
|
|
"defer_wake_embedded_test.go",
|
|
"defer_wake_proxied_integration_test.go",
|
|
"defer_wake_server_test.go",
|
|
"delete_embedded_test.go",
|
|
"delete_if_revision_proxied_concurrency_test.go",
|
|
"delete_input_test.go",
|
|
"delete_proxied_integration_test.go",
|
|
"delete_proxied_server_output_test.go",
|
|
"delete_test.go",
|
|
"dep_add_target_test.go",
|
|
"dep_batch_test.go",
|
|
"dep_bulk_role_test.go",
|
|
"dep_cycles_test.go",
|
|
"dep_edge_reader_test.go",
|
|
"dep_embedded_test.go",
|
|
"dep_list_cross_db_embedded_test.go",
|
|
"dep_proxied_integration_test.go",
|
|
"dep_relation_test.go",
|
|
"dep_test.go",
|
|
"dep_warning_test.go",
|
|
"dependency_hierarchy_embedded_test.go",
|
|
"diff_embedded_test.go",
|
|
"directory_flag_test.go",
|
|
"doctor_backend_guard_test.go",
|
|
"doctor_check_gate_test.go",
|
|
"doctor_context_test.go",
|
|
"doctor_conventions_test.go",
|
|
"doctor_embedded_test.go",
|
|
"doctor_fix_gate_wiring_test.go",
|
|
"doctor_fix_order_test.go",
|
|
"doctor_fix_pending_migrations_test.go",
|
|
"doctor_health_integration_test.go",
|
|
"doctor_health_smoke_test.go",
|
|
"doctor_health_test.go",
|
|
"doctor_init_diagnostics_cgo_test.go",
|
|
"doctor_max_rows_test.go",
|
|
"doctor_migrate_fix_test.go",
|
|
"doctor_mutation_gate_test.go",
|
|
"doctor_orchestrator_guard_test.go",
|
|
"doctor_repair_test.go",
|
|
"doctor_test.go",
|
|
"doctor_validate_test.go",
|
|
"dolt_autocommit_exemption_wiring_test.go",
|
|
"dolt_autocommit_integration_test.go",
|
|
"dolt_autocommit_server_test.go",
|
|
"dolt_autocommit_test.go",
|
|
"dolt_autopush_test.go",
|
|
"dolt_autostart_lifecycle_integration_test.go",
|
|
"dolt_clean_databases_purge_proxied_integration_test.go",
|
|
"dolt_clean_databases_purge_test.go",
|
|
"dolt_clean_databases_quote_test.go",
|
|
"dolt_commit_proxied_integration_test.go",
|
|
"dolt_commit_proxied_server_test.go",
|
|
"dolt_doctor_integration_test.go",
|
|
"dolt_embedded_test.go",
|
|
"dolt_help_auth_test.go",
|
|
"dolt_lifecycle_proxied_server_test.go",
|
|
"dolt_local_only_embedded_test.go",
|
|
"dolt_local_only_test.go",
|
|
"dolt_metadata_e2e_test.go",
|
|
"dolt_proxied_lifecycle_test.go",
|
|
"dolt_remote_add_test.go",
|
|
"dolt_remote_adopt_test.go",
|
|
"dolt_remote_json_test.go",
|
|
"dolt_remote_origin_guard_test.go",
|
|
"dolt_remote_remove_proxied_integration_test.go",
|
|
"dolt_remote_reset_data_embedded_test.go",
|
|
"dolt_remote_reset_data_test.go",
|
|
"dolt_stop_test.go",
|
|
"dolt_test.go",
|
|
"dolt_worktree_remote_test.go",
|
|
"duplicate_embedded_test.go",
|
|
"duplicates_embedded_test.go",
|
|
"duplicates_proxied_integration_test.go",
|
|
"duplicates_test.go",
|
|
"embedded_init_template_test.go",
|
|
"envfile_test.go",
|
|
"epic_embedded_test.go",
|
|
"epic_proxied_integration_test.go",
|
|
"epic_test.go",
|
|
"errors_test.go",
|
|
"events_autoprune_e2e_test.go",
|
|
"events_autoprune_proxied_test.go",
|
|
"events_delete_actor_e2e_test.go",
|
|
"events_golden_test.go",
|
|
"events_http_e2e_test.go",
|
|
"events_journal_activation_e2e_test.go",
|
|
"events_journal_construction_test.go",
|
|
"events_proxied_server_test.go",
|
|
"events_truncation_cli_test.go",
|
|
"events_watch_http_e2e_test.go",
|
|
"explicit_db_nodb_test.go",
|
|
"export_auto_max_rows_gate_test.go",
|
|
"export_auto_missing_store_test.go",
|
|
"export_auto_test.go",
|
|
"export_auto_wedge_heal_test.go",
|
|
"export_embedded_test.go",
|
|
"export_exclude_owner_test.go",
|
|
"export_max_rows_gate_test.go",
|
|
"export_proxied_integration_test.go",
|
|
"export_source_role_test.go",
|
|
"export_source_wisp_subset_test.go",
|
|
"export_test.go",
|
|
"external_policy_direct_integration_test.go",
|
|
"external_policy_embedded_test.go",
|
|
"external_ref_test.go",
|
|
"federation_embedded_test.go",
|
|
"feedback_test.go",
|
|
"field_mutation_proxied_integration_test.go",
|
|
"find_duplicates_embedded_test.go",
|
|
"find_duplicates_test.go",
|
|
"flags_test.go",
|
|
"flatten_embedded_test.go",
|
|
"formula_fixture_proxied_test.go",
|
|
"formula_help_test.go",
|
|
"formula_primitives_test.go",
|
|
"formula_schema_test.go",
|
|
"gate_check_listing_test.go",
|
|
"gate_check_proxied_integration_test.go",
|
|
"gate_discover_test.go",
|
|
"gate_embedded_test.go",
|
|
"gate_frontdoor_parity_integration_test.go",
|
|
"gate_inherit_embedded_test.go",
|
|
"gate_lifecycle_proxied_integration_test.go",
|
|
"gate_routing_test.go",
|
|
"gate_test.go",
|
|
"gated_format_test.go",
|
|
"gated_render_embedded_test.go",
|
|
"gated_render_proxied_integration_test.go",
|
|
"gated_test.go",
|
|
"gc_embedded_test.go",
|
|
"gc_prune_test.go",
|
|
"git_repo_template_test.go",
|
|
"git_test_helpers_scope_test.go",
|
|
"github_link_scope_test.go",
|
|
"gitlab_integration_test.go",
|
|
"gitlab_test.go",
|
|
"global_identity_integration_test.go",
|
|
"gomodcache_rehome_test.go",
|
|
"graph_apply_execution_test.go",
|
|
"graph_apply_test.go",
|
|
"graph_apply_thread_spawner_embedded_test.go",
|
|
"graph_embedded_test.go",
|
|
"graph_export_test.go",
|
|
"graph_proxied_integration_test.go",
|
|
"graph_test.go",
|
|
"graph_visual_test.go",
|
|
"heartbeat_proxied_integration_test.go",
|
|
"help_all_test.go",
|
|
"helpers_test.go",
|
|
"history_embedded_test.go",
|
|
"history_full_hash_test.go",
|
|
"history_proxied_integration_test.go",
|
|
"history_remote_frontdoor_matrix_test.go",
|
|
"hook_env_test.go",
|
|
"hooks_embedded_test.go",
|
|
"hooks_exec_composition_test.go",
|
|
"hooks_export_staged_deletion_test.go",
|
|
"hooks_export_worktree_test.go",
|
|
"hooks_guard_test.go",
|
|
"hooks_husky_test.go",
|
|
"hooks_marker_skip_test.go",
|
|
"hooks_post_merge_import_test.go",
|
|
"hooks_timeout_process_test.go",
|
|
"hooks_worktree_test.go",
|
|
"human_embedded_test.go",
|
|
"human_proxied_integration_test.go",
|
|
"human_test.go",
|
|
"identity_preview_gate_cgo_test.go",
|
|
"identity_preview_gate_test.go",
|
|
"identity_preview_refusal_test.go",
|
|
"if_revision_embedded_test.go",
|
|
"if_revision_gc_matcher_embedded_test.go",
|
|
"if_revision_proxied_close_delete_test.go",
|
|
"if_revision_proxied_integration_test.go",
|
|
"if_revision_reassign_fence_embedded_test.go",
|
|
"if_revision_reassign_fence_proxied_test.go",
|
|
"if_revision_reopen_embedded_test.go",
|
|
"if_revision_test.go",
|
|
"import_chunking_embedded_test.go",
|
|
"import_chunking_test.go",
|
|
"import_embedded_test.go",
|
|
"import_from_jsonl_test.go",
|
|
"import_global_prefix_isolation_test.go",
|
|
"import_missing_config_prefix_test.go",
|
|
"import_orphan_embedded_test.go",
|
|
"import_prefix_test.go",
|
|
"import_promoted_wisp_embedded_test.go",
|
|
"import_proxied_integration_test.go",
|
|
"import_shared_unit_test.go",
|
|
"import_sync_prefix_test.go",
|
|
"info_embedded_test.go",
|
|
"info_kv_exclusion_test.go",
|
|
"info_proxied_integration_test.go",
|
|
"info_test.go",
|
|
"init_cancel_e2e_test.go",
|
|
"init_commit_test.go",
|
|
"init_embedded_test.go",
|
|
"init_explicit_beads_dir_embedded_test.go",
|
|
"init_gateway_test.go",
|
|
"init_git_bootstrap_routing_test.go",
|
|
"init_guard_force_e2e_test.go",
|
|
"init_guard_test.go",
|
|
"init_hooks_test.go",
|
|
"init_metrics_test.go",
|
|
"init_mode_inherit_test.go",
|
|
"init_noninteractive_test.go",
|
|
"init_permissions_test.go",
|
|
"init_policy_test.go",
|
|
"init_proxied_if_missing_test.go",
|
|
"init_proxied_server_test.go",
|
|
"init_registered_backend_test.go",
|
|
"init_remote_test.go",
|
|
"init_role_environment_test.go",
|
|
"init_role_routing_test.go",
|
|
"init_safety_test.go",
|
|
"init_server_flags_test.go",
|
|
"init_stealth_test.go",
|
|
"init_team_server_test.go",
|
|
"init_test.go",
|
|
"init_worktree_test.go",
|
|
"jira_max_rows_gate_test.go",
|
|
"jira_test.go",
|
|
"json_flag_shadow_test.go",
|
|
"kv_embedded_test.go",
|
|
"kv_prefix_test.go",
|
|
"kv_proxied_integration_test.go",
|
|
"kv_test.go",
|
|
"label_embedded_test.go",
|
|
"label_list_all_test.go",
|
|
"label_normalization_test.go",
|
|
"label_prefix_test.go",
|
|
"label_proxied_integration_test.go",
|
|
"label_rename_message_test.go",
|
|
"label_rename_publish_failure_test.go",
|
|
"label_rename_test.go",
|
|
"label_test.go",
|
|
"label_whitespace_warn_test.go",
|
|
"last_touched_guard_test.go",
|
|
"last_touched_readonly_test.go",
|
|
"last_touched_test.go",
|
|
"legacy_upgrade_guard_config_yaml_test.go",
|
|
"legacy_upgrade_guard_e2e_test.go",
|
|
"legacy_upgrade_guard_empty_root_test.go",
|
|
"legacy_upgrade_guard_external_server_test.go",
|
|
"legacy_upgrade_guard_test.go",
|
|
"legacy_upgrade_guard_witness_test.go",
|
|
"linear_roundtrip_test.go",
|
|
"linear_test.go",
|
|
"lint_embedded_test.go",
|
|
"lint_stale_proxied_integration_test.go",
|
|
"list_comments_embedded_test.go",
|
|
"list_comments_proxied_integration_test.go",
|
|
"list_embedded_test.go",
|
|
"list_filter_flags_test.go",
|
|
"list_footer_counts_test.go",
|
|
"list_format_json_test.go",
|
|
"list_helpers_test.go",
|
|
"list_limit_policy_test.go",
|
|
"list_output_test.go",
|
|
"list_proxied_integration_test.go",
|
|
"list_proxied_watch_max_rows_test.go",
|
|
"list_ready_brief_test.go",
|
|
"list_roles_test.go",
|
|
"list_skip_labels_test.go",
|
|
"list_test.go",
|
|
"list_tree_cycle_test.go",
|
|
"list_tree_deps_test.go",
|
|
"list_wisp_type_reachability_test.go",
|
|
"lite_filter_spy_test.go",
|
|
"main_config_debug_test.go",
|
|
"main_errors_test.go",
|
|
"main_test.go",
|
|
"maintenance_commands_proxied_integration_test.go",
|
|
"markdown_test.go",
|
|
"max_rows_embedded_test.go",
|
|
"max_rows_test.go",
|
|
"memory_budget_pure_test.go",
|
|
"memory_embedded_test.go",
|
|
"memory_proxied_integration_test.go",
|
|
"memory_pure_test.go",
|
|
"messaging_test.go",
|
|
"metadata_edits_test.go",
|
|
"metadata_filter_test.go",
|
|
"metadata_flag_test.go",
|
|
"metadata_ready_test.go",
|
|
"metadataless_server_workspace_test.go",
|
|
"metrics_test.go",
|
|
"migrate_consent_test.go",
|
|
"migrate_dolt_mode_frontdoor_integration_test.go",
|
|
"migrate_dolt_mode_test.go",
|
|
"migrate_embedded_test.go",
|
|
"migrate_force_test.go",
|
|
"migrate_hooks_apply_test.go",
|
|
"migrate_hooks_test.go",
|
|
"migrate_issues_max_rows_gate_test.go",
|
|
"migrate_personal_test.go",
|
|
"migrate_repo_id_notice_test.go",
|
|
"migrate_schema_identity_order_test.go",
|
|
"migrate_test.go",
|
|
"migration_freeze_gate_test.go",
|
|
"mol_bond_compound_label_test.go",
|
|
"mol_bond_dryrun_validation_test.go",
|
|
"mol_bond_gwn_test.go",
|
|
"mol_bond_proxied_integration_test.go",
|
|
"mol_bond_ref_attach_test.go",
|
|
"mol_bond_test.go",
|
|
"mol_burn_proxied_integration_test.go",
|
|
"mol_current_proxied_integration_test.go",
|
|
"mol_distill_proxied_integration_test.go",
|
|
"mol_distill_test.go",
|
|
"mol_embedded_test.go",
|
|
"mol_frontdoor_managed_local_integration_test.go",
|
|
"mol_frontdoor_parity_integration_test.go",
|
|
"mol_last_activity_proxied_integration_test.go",
|
|
"mol_progress_proxied_integration_test.go",
|
|
"mol_ready_gated_flag_test.go",
|
|
"mol_ready_gated_hint_test.go",
|
|
"mol_ready_gated_proxied_integration_test.go",
|
|
"mol_ready_gated_test.go",
|
|
"mol_route_parity_integration_test.go",
|
|
"mol_show_proxied_integration_test.go",
|
|
"mol_squash_embedded_test.go",
|
|
"mol_squash_proxied_integration_test.go",
|
|
"mol_stale_proxied_integration_test.go",
|
|
"mol_test.go",
|
|
"mol_wisp_proxied_var_validation_test.go",
|
|
"no_color_test.go",
|
|
"nocow_linux_test.go",
|
|
"nocow_test.go",
|
|
"note_test.go",
|
|
"notion_store_test.go",
|
|
"notion_test.go",
|
|
"onboard_embedded_test.go",
|
|
"onboard_test.go",
|
|
"orphans_embedded_test.go",
|
|
"orphans_proxied_integration_test.go",
|
|
"orphans_test.go",
|
|
"output_test.go",
|
|
"pour_proxied_integration_test.go",
|
|
"pour_unknown_vars_pipeline_test.go",
|
|
"pour_unknown_vars_test.go",
|
|
"pour_wisp_var_validation_test.go",
|
|
"preflight_test.go",
|
|
"prime_disabled_test.go",
|
|
"prime_divergence_test.go",
|
|
"prime_embedded_test.go",
|
|
"prime_gemini_hook_test.go",
|
|
"prime_git_remote_test.go",
|
|
"prime_memory_caps_test.go",
|
|
"prime_proxied_integration_test.go",
|
|
"prime_shared_server_test.go",
|
|
"prime_test.go",
|
|
"promote_embedded_test.go",
|
|
"promote_proxied_integration_test.go",
|
|
"prompt_test.go",
|
|
"provenance_test.go",
|
|
"proxied_direct_only_refusal_frontdoor_test.go",
|
|
"proxied_integration_helpers_test.go",
|
|
"proxied_local_backend_exit_test.go",
|
|
"proxied_local_dolt_lifecycle_test.go",
|
|
"proxied_local_helpers_test.go",
|
|
"proxied_local_identity_lifecycle_linux_test.go",
|
|
"proxied_local_lifecycle_linux_test.go",
|
|
"proxied_local_listener_policy_linux_test.go",
|
|
"proxied_lookup_failure_test.go",
|
|
"proxied_outage_reconnect_integration_test.go",
|
|
"proxied_server_test.go",
|
|
"proxied_shared_harness_test.go",
|
|
"proxied_workflow_refusal_frontdoor_test.go",
|
|
"proxy_capability_test.go",
|
|
"prune_embedded_test.go",
|
|
"prune_proxied_integration_test.go",
|
|
"purge_embedded_test.go",
|
|
"purge_test.go",
|
|
"purge_wisps_plane_embedded_test.go",
|
|
"purge_wisps_plane_integration_test.go",
|
|
"purge_wisps_plane_managed_local_test.go",
|
|
"query_embedded_test.go",
|
|
"query_limit_policy_test.go",
|
|
"query_proxied_integration_test.go",
|
|
"quick_embedded_test.go",
|
|
"quick_todo_proxied_integration_test.go",
|
|
"quickstart_embedded_test.go",
|
|
"race_detector_off_test.go",
|
|
"race_detector_on_test.go",
|
|
"readonly_policy_test.go",
|
|
"readonly_test.go",
|
|
"ready_embedded_test.go",
|
|
"ready_explain_ids_test.go",
|
|
"ready_input_test.go",
|
|
"ready_max_rows_proxied_test.go",
|
|
"ready_max_rows_test.go",
|
|
"ready_proxied_integration_test.go",
|
|
"ready_role_request_test.go",
|
|
"ready_test.go",
|
|
"ready_wisp_proxied_integration_test.go",
|
|
"reclaim_embedded_test.go",
|
|
"reclaim_test.go",
|
|
"recompute_blocked_proxied_integration_test.go",
|
|
"registered_backend_workspace_paths_test.go",
|
|
"relate_proxied_integration_test.go",
|
|
"relate_test.go",
|
|
"relational_proxied_integration_test.go",
|
|
"remote_migrate_gate_test.go",
|
|
"remote_sync_open_test.go",
|
|
"removed_backend_heal_embedded_test.go",
|
|
"rename_prefix_embedded_test.go",
|
|
"rename_prefix_repair_test.go",
|
|
"rename_prefix_rewrite_test.go",
|
|
"rename_prefix_test.go",
|
|
"rename_prefix_worktree_test.go",
|
|
"reopen_defer_test.go",
|
|
"reopen_embedded_test.go",
|
|
"reopen_proxied_integration_test.go",
|
|
"reopen_test.go",
|
|
"repair_deps_test.go",
|
|
"reparent_test.go",
|
|
"reset_global_guard_test.go",
|
|
"reset_hook_ownership_test.go",
|
|
"reset_worktree_test.go",
|
|
"resolve_dolt_server_connection_test.go",
|
|
"restore_embedded_test.go",
|
|
"restore_test.go",
|
|
"root_context_lifecycle_test.go",
|
|
"routed_test.go",
|
|
"routing_notice_test.go",
|
|
"routing_read_remote_test.go",
|
|
"routing_read_test.go",
|
|
"rules_test.go",
|
|
"sandbox_test.go",
|
|
"schema_skew_test.go",
|
|
"schema_test.go",
|
|
"search_embedded_test.go",
|
|
"search_proxied_integration_test.go",
|
|
"search_routes_embedded_test.go",
|
|
"search_routes_parity_test.go",
|
|
"search_routes_proxied_test.go",
|
|
"search_test.go",
|
|
"send_metrics_diagnostics_test.go",
|
|
"serve_batch_close_proxied_integration_test.go",
|
|
"serve_claim_next_proxied_integration_test.go",
|
|
"serve_claim_proxied_integration_test.go",
|
|
"serve_close_proxied_integration_test.go",
|
|
"serve_comment_proxied_integration_test.go",
|
|
"serve_config_write_proxied_integration_test.go",
|
|
"serve_count_proxied_integration_test.go",
|
|
"serve_create_proxied_integration_test.go",
|
|
"serve_delete_proxied_integration_test.go",
|
|
"serve_dependencies_proxied_integration_test.go",
|
|
"serve_edge_counts_proxied_integration_test.go",
|
|
"serve_inprocess_test.go",
|
|
"serve_list_sort_proxied_integration_test.go",
|
|
"serve_proxied_integration_test.go",
|
|
"serve_read_revision_proxied_integration_test.go",
|
|
"serve_reads_parity_integration_test.go",
|
|
"serve_registered_backend_test.go",
|
|
"serve_related_proxied_integration_test.go",
|
|
"serve_release_proxied_integration_test.go",
|
|
"serve_server_mode_integration_test.go",
|
|
"serve_source_test.go",
|
|
"serve_store_identity_test.go",
|
|
"serve_test.go",
|
|
"serve_update_claim_proxied_integration_test.go",
|
|
"serve_update_proxied_integration_test.go",
|
|
"set_state_proxied_integration_test.go",
|
|
"setup_embedded_test.go",
|
|
"setup_test.go",
|
|
"shared_migrate_consent_test.go",
|
|
"shared_server_cfgnil_test.go",
|
|
"shared_server_cleanup_test.go",
|
|
"shared_server_delete_if_revision_concurrency_test.go",
|
|
"shared_server_if_revision_concurrency_test.go",
|
|
"shared_server_integration_test.go",
|
|
"shared_store_migrate_gate_test.go",
|
|
"ship_embedded_test.go",
|
|
"show_brief_deps_test.go",
|
|
"show_comments_tail_embedded_test.go",
|
|
"show_comments_tail_proxied_integration_test.go",
|
|
"show_comments_tail_test.go",
|
|
"show_current_test.go",
|
|
"show_details_json_test.go",
|
|
"show_embedded_test.go",
|
|
"show_format_metadata_test.go",
|
|
"show_format_test.go",
|
|
"show_not_found_hint_test.go",
|
|
"show_proxied_integration_test.go",
|
|
"show_proxied_reader_test.go",
|
|
"show_proxied_watch_integration_test.go",
|
|
"show_test.go",
|
|
"show_unit_helpers_test.go",
|
|
"show_unresolvable_deps_embedded_test.go",
|
|
"show_unresolvable_deps_unit_test.go",
|
|
"show_watch_loop_test.go",
|
|
"show_watch_test.go",
|
|
"simple_helpers_test.go",
|
|
"skip_store_annotation_test.go",
|
|
"sql_multistatement_proxied_integration_test.go",
|
|
"sql_multistatement_test.go",
|
|
"sql_proxied_integration_test.go",
|
|
"sql_test.go",
|
|
"stale_embedded_test.go",
|
|
"stale_test.go",
|
|
"startup_git_exec_embedded_test.go",
|
|
"state_embedded_test.go",
|
|
"state_proxied_integration_test.go",
|
|
"state_test.go",
|
|
"status_embedded_test.go",
|
|
"status_proxied_integration_test.go",
|
|
"status_suppressed_test.go",
|
|
"status_test.go",
|
|
"statuses_types_proxied_integration_test.go",
|
|
"stdio_race_guard_test.go",
|
|
"storage_chain_test.go",
|
|
"storage_class_embedded_test.go",
|
|
"storage_class_proxied_integration_test.go",
|
|
"storage_class_pure_test.go",
|
|
"store_factory_embedded_test.go",
|
|
"store_factory_nocgo_test.go",
|
|
"store_factory_test.go",
|
|
"store_reopen_embedded_resolution_test.go",
|
|
"store_reopen_test.go",
|
|
"store_selection_failloud_nocgo_test.go",
|
|
"store_selection_failloud_test.go",
|
|
"store_selection_removed_backend_test.go",
|
|
"suite_temp_test.go",
|
|
"supersede_embedded_test.go",
|
|
"swarm_embedded_test.go",
|
|
"swarm_proxied_integration_test.go",
|
|
"swarm_ready_fronts_test.go",
|
|
"sync_git_test.go",
|
|
"sync_is_scoped_test.go",
|
|
"sync_issues_flag_test.go",
|
|
"sync_parent_flag_test.go",
|
|
"sync_push_pull_test.go",
|
|
"sync_remote_fixture_test.go",
|
|
"sync_remote_test.go",
|
|
"sync_test.go",
|
|
"telemetry_scrub_test.go",
|
|
"template_test.go",
|
|
"test_dolt_server_cgo_test.go",
|
|
"test_helpers_integration_test.go",
|
|
"test_helpers_pure_test.go",
|
|
"test_helpers_test.go",
|
|
"test_repo_beads_guard_darwin_test.go",
|
|
"test_repo_beads_guard_test.go",
|
|
"test_wait_helper_test.go",
|
|
"thread_test.go",
|
|
"tips_example_test.go",
|
|
"tips_test.go",
|
|
"todo_embedded_test.go",
|
|
"tracker_frontdoor_proxy_test.go",
|
|
"tracker_proxy_uow_conformance_integration_test.go",
|
|
"types_builtin_test.go",
|
|
"types_create_agreement_embedded_test.go",
|
|
"types_create_agreement_test.go",
|
|
"types_embedded_test.go",
|
|
"unclaim_conditional_embedded_test.go",
|
|
"unclaim_conditional_parity_test.go",
|
|
"unclaim_embedded_test.go",
|
|
"unclaim_proxied_integration_test.go",
|
|
"unclaim_test.go",
|
|
"undefer_embedded_test.go",
|
|
"uninstall_config_test.go",
|
|
"uow_factory_server_mode_test.go",
|
|
"uow_factory_test.go",
|
|
"update_add_label_shorthand_test.go",
|
|
"update_claim_proxied_test.go",
|
|
"update_close_policy_proxied_integration_test.go",
|
|
"update_close_policy_test.go",
|
|
"update_conditional_embedded_test.go",
|
|
"update_conditional_proxied_test.go",
|
|
"update_description_guard_test.go",
|
|
"update_embedded_test.go",
|
|
"update_lifecycle_test.go",
|
|
"update_metadata_test.go",
|
|
"update_multi_id_exit_test.go",
|
|
"update_notes_guard_test.go",
|
|
"update_notes_warning_test.go",
|
|
"update_proxied_integration_test.go",
|
|
"update_proxied_server_test.go",
|
|
"update_stray_positional_test.go",
|
|
"update_template_refusal_test.go",
|
|
"user_config_path_windows_test.go",
|
|
"utils_unit_test.go",
|
|
"vc_embedded_test.go",
|
|
"vc_recompute_test.go",
|
|
"vc_test.go",
|
|
"verbosity_quiet_embedded_test.go",
|
|
"version_embedded_test.go",
|
|
"version_test.go",
|
|
"version_tracking_test.go",
|
|
"where_cgo_test.go",
|
|
"where_embedded_test.go",
|
|
"where_test.go",
|
|
"wisp_abandoned_test.go",
|
|
"wisp_gc_active_embedded_test.go",
|
|
"wisp_gc_purge_closed_embedded_test.go",
|
|
"wisp_proxied_integration_test.go",
|
|
"wisp_test.go",
|
|
"workspace_gate_test.go",
|
|
"workspace_identity_test.go",
|
|
"worktree_cmd_test.go",
|
|
"worktree_gitignore_eol_test.go",
|
|
"worktree_permissions_test.go",
|
|
"worktree_remove_cmd_test.go",
|
|
"worktree_remove_git_test.go",
|
|
"worktree_remove_git_windows_test.go",
|
|
"worktree_remove_test.go",
|
|
"worktree_remove_windows_test.go",
|
|
"worktree_test.go",
|
|
"write_verbs_parity_test.go",
|
|
"zz_stdio_leak_guard_test.go",
|
|
],
|
|
data = glob(["testdata/**"]) + [
|
|
":bd_for_tests",
|
|
":compact_gc_fixture",
|
|
":go_srcs",
|
|
":preflight_go_fixture",
|
|
"//:bd_test_files",
|
|
"//cmd/bd/doctor:go_srcs",
|
|
"//cmd/bd/doctor/fix:go_srcs",
|
|
"//internal/storage/embeddeddolt/cmd:go_srcs",
|
|
"@go_sdk//:bin/gofmt",
|
|
],
|
|
embed = [":bd_lib"],
|
|
env = {
|
|
"BEADS_TEST_BD_BINARY": "$(rlocationpath :bd_for_tests)",
|
|
"BEADS_TEST_GOFMT": "$(rlocationpath @go_sdk//:bin/gofmt)",
|
|
"BEADS_TEST_COMPACT_GC_FIXTURE": "$(rlocationpath :compact_gc_fixture)",
|
|
"BEADS_TEST_PREFLIGHT_GO": "$(rlocationpath :preflight_go_fixture)",
|
|
},
|
|
shard_count = 16,
|
|
deps = [
|
|
"//:beads",
|
|
"//cmd/bd/doctor",
|
|
"//internal/ado",
|
|
"//internal/beads",
|
|
"//internal/ceiling",
|
|
"//internal/config",
|
|
"//internal/configfile",
|
|
"//internal/debug",
|
|
"//internal/doltremote",
|
|
"//internal/doltserver",
|
|
"//internal/eventsjournal",
|
|
"//internal/execenv",
|
|
"//internal/formula",
|
|
"//internal/git",
|
|
"//internal/gitenv",
|
|
"//internal/githooksenv",
|
|
"//internal/hooks",
|
|
"//internal/httpapi",
|
|
"//internal/linear",
|
|
"//internal/metrics",
|
|
"//internal/migration",
|
|
"//internal/molecules",
|
|
"//internal/notion",
|
|
"//internal/procid",
|
|
"//internal/recipes",
|
|
"//internal/routing",
|
|
"//internal/storage",
|
|
"//internal/storage/backends",
|
|
"//internal/storage/contextinfo",
|
|
"//internal/storage/dbproxy/pidfile",
|
|
"//internal/storage/dbproxy/proxy",
|
|
"//internal/storage/dbproxy/server",
|
|
"//internal/storage/dbproxy/util",
|
|
"//internal/storage/depid",
|
|
"//internal/storage/dolt",
|
|
"//internal/storage/doltutil",
|
|
"//internal/storage/domain",
|
|
"//internal/storage/embeddeddolt",
|
|
"//internal/storage/externaldeps",
|
|
"//internal/storage/fs",
|
|
"//internal/storage/git",
|
|
"//internal/storage/issueops",
|
|
"//internal/storage/journalscan",
|
|
"//internal/storage/kvkeys",
|
|
"//internal/storage/memoryops",
|
|
"//internal/storage/schema",
|
|
"//internal/storage/uow",
|
|
"//internal/storage/versioncontrolops",
|
|
"//internal/telemetry",
|
|
"//internal/testutil",
|
|
"//internal/testutil/bazeltest",
|
|
"//internal/testutil/credentialcmd",
|
|
"//internal/timeparsing",
|
|
"//internal/tracker",
|
|
"//internal/types",
|
|
"//internal/ui",
|
|
"//internal/uimd",
|
|
"//internal/utils",
|
|
"//internal/validation",
|
|
"//internal/versioncheck",
|
|
"//internal/workapi",
|
|
"//internal/workspacegate",
|
|
"//internal/worktreeremove",
|
|
"//issueops",
|
|
"//memoryops",
|
|
"@com_github_charmbracelet_x_ansi//:ansi",
|
|
"@com_github_data_dog_go_sqlmock//:go-sqlmock",
|
|
"@com_github_dolthub_dolt_go//libraries/doltcore/servercfg",
|
|
"@com_github_dolthub_dolt_go//libraries/utils/filesys",
|
|
"@com_github_dolthub_dolt_go//store/blobstore",
|
|
"@com_github_go_sql_driver_mysql//:mysql",
|
|
"@com_github_spf13_cobra//:cobra",
|
|
"@com_github_spf13_pflag//:pflag",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
|
"@land_charm_lipgloss_v2//:lipgloss",
|
|
"@org_golang_x_sync//errgroup",
|
|
"@org_golang_x_term//:term",
|
|
] + select({
|
|
"@rules_go//go/platform:aix": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:android": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:darwin": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:dragonfly": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:freebsd": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:illumos": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:ios": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:linux": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:netbsd": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:openbsd": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:solaris": [
|
|
"//internal/tracker/conformance",
|
|
],
|
|
"@rules_go//go/platform:windows": [
|
|
"@org_golang_x_sys//windows",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
# bd_embedded_test and bd_embedded_part2_test run the TestEmbedded* functions
|
|
# of *_embedded_test.go between them: the manifest's 100-shard block
|
|
# (duration-balanced; see scripts/ci/embedded_cmd_test_durations.json) is
|
|
# more than Bazel's 50-shard cap per rule, so bd_embedded_test runs its
|
|
# shards 1-50 and bd_embedded_part2_test its shards 51-100
|
|
# (go_test_manifest_shard.sh --shard-offset/--shard-total; bazel.yml's
|
|
# check_shard_coverage.py fails unless the two ranges tile the block exactly
|
|
# once). Both run this configuration's bd_test with
|
|
# BEADS_TEST_EMBEDDED_DOLT=1 and the race bd (//cmd/bd:bd under
|
|
# --config=embedded) as the subprocess binary. PR Risk's legacy fork/push
|
|
# jobs, "Test (Embedded Dolt Cmd N/20)" (pr-risk.yml), which used to run 20
|
|
# shards of their own hand-assigned block in the same manifest file, no
|
|
# longer exist; the manifest now holds only this 100-shard block. Each
|
|
# repeats bd_test's `env` (the wrapper cannot inherit it). The two
|
|
# shard_counts must sum to --shard-total, the manifest block's shard total.
|
|
#
|
|
# Tags:
|
|
# embedded: the embedded-Dolt tier; excluded from --config=prcore/ci,
|
|
# selected by --config=embedded.
|
|
sh_test(
|
|
name = "bd_embedded_test",
|
|
size = "large",
|
|
# The script gives the binary the job's -test.timeout=20m, as long as
|
|
# Bazel's 1200s action limit (eternal under --config=embedded), which
|
|
# starts earlier and kills without a goroutine dump (rules_go's wrapper
|
|
# ignores the SIGTERM). The trailing -test.timeout=19m overrides it (the
|
|
# last flag wins) so Go's own timeout fires first and dumps to test.log.
|
|
timeout = "eternal",
|
|
srcs = ["//tools/bazel:go_test_manifest_shard.sh"],
|
|
args = [
|
|
"--shard-offset=0",
|
|
"--shard-total=100",
|
|
"$(rootpath //:.github/scripts/embedded-test-shard.sh)",
|
|
"BEADS_TEST_CMD_BINARY",
|
|
"$(rootpath :bd_test)",
|
|
"-test.timeout=19m",
|
|
],
|
|
data = [
|
|
":bd",
|
|
":bd_test",
|
|
":go_srcs",
|
|
"//:.github/scripts/embedded-cmd-test-shards.txt",
|
|
"//:.github/scripts/embedded-test-shard.sh",
|
|
"//internal/storage/embeddeddolt/cmd:cmd_norace",
|
|
"@go_sdk//:bin/gofmt",
|
|
],
|
|
env = {
|
|
"BEADS_TEST_BD_BINARY": "$(rlocationpath :bd)",
|
|
"BEADS_TEST_EMBEDDED_DOLT": "1",
|
|
# bdInit's schema template (embedded_init_template_test.go), migrated
|
|
# by a non-race build of the embeddeddolt open tool.
|
|
"BEADS_TEST_EMBEDDED_SCHEMA_TOOL": "$(rlocationpath //internal/storage/embeddeddolt/cmd:cmd_norace)",
|
|
"BEADS_TEST_GOFMT": "$(rlocationpath @go_sdk//:bin/gofmt)",
|
|
# The race runtime sleeps 1s before every process exit by default
|
|
# (atexit_sleep_ms) so goroutines still running can report a race;
|
|
# the bd subprocesses (hundreds per shard, each a few seconds) exit
|
|
# through it every time. Races they hit while running still fail
|
|
# the command (exit 66) as before.
|
|
"GORACE": "atexit_sleep_ms=0",
|
|
},
|
|
shard_count = 50,
|
|
tags = ["embedded"],
|
|
)
|
|
|
|
# Shards 51-100 of the manifest's 100-shard block; see bd_embedded_test.
|
|
#
|
|
# Tags:
|
|
# embedded: as bd_embedded_test.
|
|
sh_test(
|
|
name = "bd_embedded_part2_test",
|
|
size = "large",
|
|
# -test.timeout=19m and env: as bd_embedded_test.
|
|
timeout = "eternal",
|
|
srcs = ["//tools/bazel:go_test_manifest_shard.sh"],
|
|
args = [
|
|
"--shard-offset=50",
|
|
"--shard-total=100",
|
|
"$(rootpath //:.github/scripts/embedded-test-shard.sh)",
|
|
"BEADS_TEST_CMD_BINARY",
|
|
"$(rootpath :bd_test)",
|
|
"-test.timeout=19m",
|
|
],
|
|
data = [
|
|
":bd",
|
|
":bd_test",
|
|
":go_srcs",
|
|
"//:.github/scripts/embedded-cmd-test-shards.txt",
|
|
"//:.github/scripts/embedded-test-shard.sh",
|
|
"//internal/storage/embeddeddolt/cmd:cmd_norace",
|
|
"@go_sdk//:bin/gofmt",
|
|
],
|
|
env = {
|
|
"BEADS_TEST_BD_BINARY": "$(rlocationpath :bd)",
|
|
"BEADS_TEST_EMBEDDED_DOLT": "1",
|
|
"BEADS_TEST_EMBEDDED_SCHEMA_TOOL": "$(rlocationpath //internal/storage/embeddeddolt/cmd:cmd_norace)",
|
|
"BEADS_TEST_GOFMT": "$(rlocationpath @go_sdk//:bin/gofmt)",
|
|
"GORACE": "atexit_sleep_ms=0",
|
|
},
|
|
shard_count = 50,
|
|
tags = ["embedded"],
|
|
)
|
|
|
|
# Runs 34 Bazel shards against the TestProxiedServer*/TestServerMode*
|
|
# functions, assigned by the manifest's 34-shard block (duration-balanced;
|
|
# see scripts/ci/proxied_test_durations.json), against this configuration's
|
|
# (race) bd_test with BEADS_TEST_PROXIED_SERVER=1 and the non-race
|
|
# bd_for_tests as the subprocess binary. PR Risk's legacy fork/push jobs,
|
|
# "Test (Proxied Dolt Cmd N/15)" (pr-risk.yml), which used to run 15 shards
|
|
# of their own frozen bd-init-cost-proxy block in the same manifest file, no
|
|
# longer exist; the manifest now holds only this 34-shard block. The shared
|
|
# proxied harness gets its dolt sql-server from internal/testutil's local
|
|
# backend (the pinned dolt in the test wrapper's runfiles) instead of a
|
|
# container, and fails instead of skipping when it cannot start one. It
|
|
# repeats bd_test's `env`.
|
|
# shard_count must stay equal to the manifest block's shard total.
|
|
#
|
|
# Tags:
|
|
# dolt-server-proxied: the proxied-server tier; starts hermetic dolt
|
|
# sql-servers; excluded from --config=prcore/ci, selected by
|
|
# --config=doltserver-proxied.
|
|
sh_test(
|
|
name = "bd_proxied_test",
|
|
size = "large",
|
|
# The script's -test.timeout=15m fires (with a goroutine dump) before
|
|
# Bazel's 1200s action limit (eternal under the lane's --test_timeout).
|
|
timeout = "eternal",
|
|
srcs = ["//tools/bazel:go_test_manifest_shard.sh"],
|
|
args = [
|
|
"$(rootpath //:.github/scripts/proxied-test-shard.sh)",
|
|
"BEADS_TEST_CMD_BINARY",
|
|
"$(rootpath :bd_test)",
|
|
],
|
|
data = [
|
|
":bd_for_tests",
|
|
":bd_test",
|
|
":go_srcs",
|
|
"//:.github/scripts/proxied-cmd-test-shards.txt",
|
|
"//:.github/scripts/proxied-test-shard.sh",
|
|
"@go_sdk//:bin/gofmt",
|
|
],
|
|
env = {
|
|
"BEADS_TEST_BD_BINARY": "$(rlocationpath :bd_for_tests)",
|
|
"BEADS_TEST_DOLT_SERVER": "local",
|
|
# The jobs' "Configure Git and Dolt identity" global git identity
|
|
# (tools/bazel/test_env.sh).
|
|
"BEADS_TEST_GIT_IDENTITY": "1",
|
|
"BEADS_TEST_GOFMT": "$(rlocationpath @go_sdk//:bin/gofmt)",
|
|
"BEADS_TEST_PROXIED_SERVER": "1",
|
|
"BEADS_TEST_REQUIRE_DOLT_CONTAINER": "1",
|
|
# The external-unix / outage-matrix subtests bridge endpoints with
|
|
# socat, which the workers have: fail rather than skip if it is
|
|
# missing (requireSocat). The retired GitHub lane left this unset.
|
|
"BEADS_TEST_REQUIRE_SOCAT": "1",
|
|
# The 4-vCPU runner shape: -test.parallel defaults to GOMAXPROCS, and
|
|
# the job runs 4 tests at once, not one per worker core (39
|
|
# concurrent `bd init --proxied-server` against one server hung a
|
|
# 192-core worker).
|
|
"GOMAXPROCS": "4",
|
|
},
|
|
shard_count = 34,
|
|
tags = ["dolt-server-proxied"],
|
|
)
|
|
|
|
# The managed-local proxied lifecycle lane (formerly proxied-local-smoke.yml):
|
|
# the TestManagedLocalProxied* tests, where bd launches its own loopback
|
|
# proxy and the proxy launches the pinned dolt (first on PATH via the test
|
|
# wrapper) as `dolt sql-server`, run inside a user + network namespace with
|
|
# only loopback up (tools/bazel/go_test_offline.sh, the job's `sudo unshare
|
|
# --net`), so they prove the lifecycle needs no outbound network. Against
|
|
# this configuration's (race) bd_test, with the non-race bd_for_tests as the
|
|
# bd under test; BEADS_TEST_SKIP=dolt as in the job (no shared test server:
|
|
# every test supervises its own; BEADS_TEST_DOLT_SERVER/REQUIRE are the
|
|
# dolt-server lanes' convention and start nothing here). Unsharded: Go's
|
|
# sharding counts every test in the binary, not the -test.run matches, so
|
|
# most shards would run none. scripts/managed_local_lane_test.go fails if a
|
|
# test the job pinned is no longer compiled into a linux cgo build. It repeats
|
|
# bd_test's `env`.
|
|
#
|
|
# Tags:
|
|
# dolt-server-proxied: the proxied-server tier; starts dolt sql-servers;
|
|
# excluded from --config=prcore/ci, selected by --config=doltserver-proxied
|
|
# (bazel.yml's bazel-proxied lane, remote execution only: the namespace
|
|
# needs the workers' unprivileged user namespaces).
|
|
sh_test(
|
|
name = "bd_managed_local_test",
|
|
size = "large",
|
|
# -test.timeout=15m (the job's) fires with a goroutine dump before
|
|
# Bazel's 1200s action limit (eternal under the lane's --test_timeout).
|
|
timeout = "eternal",
|
|
srcs = ["//tools/bazel:go_test_offline.sh"],
|
|
args = [
|
|
"$(rootpath :bd_test)",
|
|
"-test.run=^TestManagedLocalProxied",
|
|
"-test.timeout=15m",
|
|
],
|
|
data = [
|
|
":bd_for_tests",
|
|
":bd_test",
|
|
":compact_gc_fixture",
|
|
":go_srcs",
|
|
":preflight_go_fixture",
|
|
"@go_sdk//:bin/gofmt",
|
|
],
|
|
env = {
|
|
"BEADS_TEST_BD_BINARY": "$(rlocationpath :bd_for_tests)",
|
|
"BEADS_TEST_DOLT_SERVER": "local",
|
|
"BEADS_TEST_GOFMT": "$(rlocationpath @go_sdk//:bin/gofmt)",
|
|
"BEADS_TEST_COMPACT_GC_FIXTURE": "$(rlocationpath :compact_gc_fixture)",
|
|
"BEADS_TEST_PREFLIGHT_GO": "$(rlocationpath :preflight_go_fixture)",
|
|
"BEADS_TEST_PROXIED_LOCAL": "1",
|
|
"BEADS_TEST_REQUIRE_DOLT_CONTAINER": "1",
|
|
"BEADS_TEST_SKIP": "dolt",
|
|
},
|
|
tags = ["dolt-server-proxied"],
|
|
)
|
|
|
|
# The whole cmd/bd suite, as --config=doltserver-cmd builds it (exactly
|
|
# --config=integration's build: the integration and gms_pure_go build tags,
|
|
# race, so the two lanes share bd_test's compile), against a hermetic dolt sql-server:
|
|
# TestMain starts the shared test server from the pinned dolt in the test
|
|
# wrapper's runfiles (BEADS_TEST_DOLT_SERVER=local), and a server that
|
|
# cannot start fails the target (BEADS_TEST_REQUIRE_DOLT_CONTAINER=1)
|
|
# instead of skipping every Dolt-gated test into a cached pass. These are
|
|
# the cmd/bd tests no other lane runs: every other configuration of bd_test
|
|
# passes BEADS_TEST_SKIP=dolt (prcore/ci, integration) or runs only its
|
|
# manifest (bd_embedded_test, bd_proxied_test). Shards 1-16 each run the
|
|
# slowest tests dolt_server_pinned_shards.txt pins to them (duration-balanced
|
|
# by tools/bazel/pin_shards.py); shards 17-32 are the Go binary's own
|
|
# round-robin shards (rules_go's TEST_SHARD_INDEX) over every other top-level
|
|
# test, a test added since the manifest was written included
|
|
# (tools/bazel/go_test_pinned_shard.sh). So each test runs in exactly one
|
|
# shard, and check_testcases.py fails a shard that ran none. Round-robin
|
|
# alone left the slowest of 16 shards at 2-3x the median (TestSharedServerConcurrent,
|
|
# the TestInit* family). It repeats bd_test's `env` (the wrapper cannot
|
|
# inherit it).
|
|
#
|
|
# Tags:
|
|
# dolt-server-cmd: the cmd/bd Dolt-server tier; starts hermetic dolt
|
|
# sql-servers and needs the integration build tag; excluded from
|
|
# --config=prcore/ci and --config=integration, selected by
|
|
# --config=doltserver-cmd.
|
|
sh_test(
|
|
name = "bd_dolt_server_test",
|
|
size = "large",
|
|
# args' -test.timeout=19m fires (with a goroutine dump) before Bazel's
|
|
# 1200s action limit (eternal under the lane's --test_timeout), which
|
|
# kills without one.
|
|
timeout = "eternal",
|
|
srcs = ["//tools/bazel:go_test_pinned_shard.sh"],
|
|
args = [
|
|
"$(rootpath :dolt_server_pinned_shards.txt)",
|
|
"$(rootpath :bd_test)",
|
|
# Item 5 A2: moved from --config=doltserver-cmd's --test_arg
|
|
# (go_test_pinned_shard.sh forwards args after its own, so this
|
|
# lands last in argv, same as the config's --test_arg did). Go's own
|
|
# timeout fires first and dumps every goroutine to test.log, which
|
|
# Bazel's 1200s cap does not. The move keeps this out of
|
|
# --config=dolt-int, whose other member (server-storage) has a 15m
|
|
# Go timeout of its own.
|
|
"-test.timeout=19m",
|
|
],
|
|
data = [
|
|
":bd_for_tests",
|
|
":bd_test",
|
|
":compact_gc_fixture",
|
|
":dolt_server_pinned_shards.txt",
|
|
":preflight_go_fixture",
|
|
"@go_sdk//:bin/gofmt",
|
|
],
|
|
env = {
|
|
"BEADS_TEST_BD_BINARY": "$(rlocationpath :bd_for_tests)",
|
|
"BEADS_TEST_DOLT_SERVER": "local",
|
|
# The integration jobs' global git identity (tools/bazel/test_env.sh).
|
|
"BEADS_TEST_GIT_IDENTITY": "1",
|
|
"BEADS_TEST_GOFMT": "$(rlocationpath @go_sdk//:bin/gofmt)",
|
|
"BEADS_TEST_COMPACT_GC_FIXTURE": "$(rlocationpath :compact_gc_fixture)",
|
|
"BEADS_TEST_PREFLIGHT_GO": "$(rlocationpath :preflight_go_fixture)",
|
|
# Item 5 A2: moved from --config=doltserver-cmd's --test_env, so
|
|
# --config=dolt-int does not set it for server-storage's targets too.
|
|
"BEADS_TEST_REQUIRE_EXCLUDE_PERMISSION": "1",
|
|
"BEADS_TEST_REQUIRE_DOLT_CONTAINER": "1",
|
|
# TestSharedServerConcurrent (skipped everywhere else) as a bounded
|
|
# smoke: 6 concurrent bd clients, 3 per database, against 2
|
|
# shared-server projects (~1 min; bd init alone is ~8s a project).
|
|
"BEADS_TEST_SHARED_SERVER_CONCURRENT": "1",
|
|
"BEADS_TEST_SS_CLIENTS": "6",
|
|
"BEADS_TEST_SS_DIRS": "2",
|
|
# The 4-vCPU runner shape, as in bd_proxied_test: -test.parallel
|
|
# defaults to GOMAXPROCS, and every parallel test opens stores
|
|
# against the one shared server.
|
|
"GOMAXPROCS": "4",
|
|
},
|
|
shard_count = 32,
|
|
tags = ["dolt-server-cmd"],
|
|
)
|
|
|
|
# Source files the docs and agent instructions link to by path, which
|
|
# //test/docsync checks resolve.
|
|
exports_files(
|
|
[
|
|
"capability_registry.go",
|
|
"doctor.go",
|
|
"init_safety_help.go",
|
|
"label.go",
|
|
"main.go",
|
|
"state.go",
|
|
],
|
|
visibility = ["//test/docsync:__pkg__"],
|
|
)
|
|
|
|
# CLI flag registrations pinned by //internal/httpapi spec parity tests.
|
|
exports_files(
|
|
[
|
|
"list.go",
|
|
"ready.go",
|
|
],
|
|
visibility = ["//internal/httpapi:__pkg__"],
|
|
)
|
|
|
|
# Release-metadata surfaces gated by //internal/versioncheck's releaseSources
|
|
# table: the canonical version and the Windows PE resource files. Aggregated
|
|
# into //:release_metadata_files, which is what the tests declare as data.
|
|
exports_files(
|
|
[
|
|
"version.go",
|
|
"winres/manifest.xml",
|
|
"winres/winres.json",
|
|
],
|
|
visibility = ["//:__pkg__"],
|
|
)
|
|
|
|
# --- begin go_srcs (managed by tools/bazel/go_srcs.py; run `make bazel-sync`) ---
|
|
|
|
filegroup(
|
|
name = "go_srcs",
|
|
srcs = glob(
|
|
["**/*.go"],
|
|
allow_empty = True,
|
|
),
|
|
visibility = ["//:__subpackages__"],
|
|
)
|
|
|
|
# --- end go_srcs ---
|
|
|
|
# --- begin repo_files (managed by tools/bazel/go_srcs.py; run `make bazel-sync`) ---
|
|
|
|
filegroup(
|
|
name = "repo_doc_files",
|
|
srcs = glob(
|
|
[
|
|
"**/*.md",
|
|
"**/*.mdx",
|
|
],
|
|
allow_empty = True,
|
|
exclude = ["**/node_modules/**"],
|
|
),
|
|
visibility = ["//:__subpackages__"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "repo_go_srcs",
|
|
srcs = glob(
|
|
["**/*.go"],
|
|
allow_empty = True,
|
|
exclude = [
|
|
"**/*_test.go",
|
|
"**/node_modules/**",
|
|
],
|
|
),
|
|
visibility = ["//:__subpackages__"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "repo_go_test_srcs",
|
|
srcs = glob(
|
|
["**/*_test.go"],
|
|
allow_empty = True,
|
|
exclude = ["**/node_modules/**"],
|
|
),
|
|
visibility = ["//:__subpackages__"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "repo_other_files",
|
|
srcs = glob(
|
|
["**"],
|
|
exclude = [
|
|
"**/*.db",
|
|
"**/*.exe",
|
|
"**/*.go",
|
|
"**/*.md",
|
|
"**/*.mdx",
|
|
"**/*.out",
|
|
"**/*.prof",
|
|
"**/*.pyc",
|
|
"**/*.test",
|
|
"**/__pycache__/**",
|
|
"**/node_modules/**",
|
|
],
|
|
),
|
|
visibility = ["//:__subpackages__"],
|
|
)
|
|
|
|
# --- end repo_files ---
|