* feat(http): bd blocked over bd serve (blocked.list) through issueops.BlockedLister
`bd blocked` refused against an HTTP workspace: it called the legacy
GetBlockedIssues, which the HTTP backend stubs as unsupported. It now runs
one role on every route, and bd serve publishes that role.
- Role: issueops.BlockedLister.ListBlocked(BlockedRequest{ParentID, Labels,
LabelsAny, ExcludeLabels}) -> BlockedResult{Items}. One body,
internal/storage/issueops.ExecuteListBlockedInTx over the unchanged
GetBlockedIssuesInTx; labels normalized in the role (BlockedFilter);
Items never nil and in a total order (priority, created_at desc, id).
- Legs: DoltStore (read tx), EmbeddedDoltStore (read conn), uow (read unit
of work through the use case's GetBlockedIssues, so the
external-dependency uow decorator applies). Census: storage.DoltStorage
gains BlockedLister(); HookFiringStore passes it through (a read),
telemetry wraps it, uow.notifyingProvider, externaldeps.uowProvider and
httpapi.timedProvider build it.
- externaldeps.Store.BlockedLister is built over its own GetBlockedIssues,
so local `bd blocked` output is unchanged. Over a remote store it takes
the server's listing when the server advertises
policy.external_dependencies, else decorates the server's listing here
through EdgeReader and BatchGetter (decorateBlocked, factored out of
GetBlockedIssues).
- Wire: GET /v0/beads/blocked (listBlockedIssues; parent, label,
label_any, exclude_label) answering BlockedPage {items, has_more} with
the new x-go-type-pinned BlockedIssue schema, behind the new
blocked.list token. apigen and the wire-shape golden regenerated; the
golden diff is additive only, so wire_revision stays 2.
Config.BlockedLister is a required role, wired in bd serve.
- Client: httpclient.Store.BlockedLister dials through Store.dispatch, so
an older server is refused BEFORE the dial with *wire.CapabilityError
naming blocked.list. The legacy Store.GetBlockedIssues rides the role
(page and row cap applied to its answer) and leaves the unsupported
shell. Divergence ledger row F-blocked retired.
- CLI: `bd blocked` takes BlockedLister() from the store on the direct
routes and from the provider's BlockedListerSource on the proxied route;
runBlockedProxiedServer is deleted. --json output is the same rows in
the same order, [] when empty.
Tests: backend/conformance RunBlockedLister (10 cases: direct blocker,
child attributed to its blocked parent, closed blocker, wisp plane, pinned
status, parent filter, label filters with normalization, order, empty
slice, request not mutated) on dolt, embedded, uow and the served HTTP
client; httpapi handler tests (mapping, unknown/repeated params,
projection, capability); httpclient stub tests (pre-dial refusal naming
the token, encoding, projection, legacy door paging); skew and vocabulary
counts; TestE2E_BlockedOverHTTP (served `bd blocked --json` equals the
local command's after mapping ids and timestamps, member order included,
external blocker named, older-server refusal with no dial); corpus
gc-blocked re-marked and gc-blocked-parent added, both pending until the
reference server advertises blocked.list.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(blocked): pin server-side external decoration, refuse has_more, serve the legacy door over http
Review fixes for the blocked.list slice.
- Server-side external decoration is now pinned on the compositions bd
serve answers from. TestWrapUOWProviderBlockedListerNamesExternalBlockers
lists through the wrapped unit-of-work provider's own BlockedLister
accessor (the bd serve provider path) and requires an external-only row
and a mixed row to carry their external: refs; building that lister over
the inner provider fails it. TestServedBlockedListerCarriesExternalRefs-
WhenTheServerEnforces serves the store-shaped composition
(externaldeps.Store.BlockedLister, policy advertised) and requires the
operation's own answer, through the undecorated client role, to carry the
refs, and the client's decorated chain to return it unchanged; serving
the inner store's lister fails it.
- The client refuses an answer reporting has_more with the new typed
httpclient.TruncatedListingError instead of returning a short listing:
the operation has no cursor, and a caller reads a missing row as
unblocked. The legacy door inherits it.
- externaldeps.Store.GetBlockedIssues over an http store reads the extra
sources through the served roles (EdgeReader, BatchGetter) instead of the
raw GetIssuesByIDs / GetDependencyRecordsForIssues the http backend
refuses, and the decoration skips the source read when there is nothing
to load. The legacy door on the CLI chain (bd mol stale, the wisp
commands) now answers over http in both policy modes;
TestServedLegacyGetBlockedIssuesThroughTheDecorator pins it, paging
included. bd ready --explain still refuses on its other raw reads; the
CHANGELOG says so.
- Docs: the spec and the retired F-blocked ledger row state that the
listing is unpaged, bounded by the client's 32 MiB response limit
(refused, never read in part), and that has_more is refused.
- Contract: new cases for waits-for and conditional-blocks blockers, no
type exclusions (gate, epic), and a stale flag with no nameable blocker
(on the legs that can write the column: dolt, embedded; skipped
elsewhere with the reason). Order seeds explicit created_at values with
five rows tied on priority and created_at, two of them wisps, so only the
id tiebreak orders them; dropping the tiebreak now fails every run.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(blocked): bd blocked --flags, the blocked flag per id from stdin
`bd blocked --flags [--json]` reads ids from stdin, one per line (blank
lines and repeats ignored), and prints the blocked flag bd holds for each:
with --json, [{"id","is_blocked"}] in the order the ids were first given,
omitting an id that names no row on either plane, [] for no input. It is
the readiness column a consumer otherwise had to read with `bd sql`, so no
such consumer needs a local-only command.
It is the FLAG, not the listing: `bd blocked` narrows the stored flag to
rows it can name a blocker for, and --flags does not, so a row whose flag
is set with no nameable blocker reads true here and is absent from the
listing. Where the external-dependency policy applies, an unsatisfied
external: blocker sets the flag, as it keeps the row out of `bd ready`.
One library entry on every route: issueops.BlockedFlags over the route's
BlockingAnnotator (the store's accessor on dolt, embedded and HTTP, the
provider's on the proxied route). Over HTTP that is listBlockingAnnotations
with is_blocked behind dependencies.blocking.isBlocked; a server without
that token is refused before the dial, naming it. No wire change. The
listing's filter flags are refused with --flags rather than ignored.
Tests: TestE2E_BlockedFlagsOverHTTP (served JSON equals the local command's
after mapping ids to titles, unknown id omitted, repeat collapsed, [] on
empty stdin, filters refused; a stale-flagged row with no blocker reads
true and is absent from `bd blocked --json`, which fails if --flags is
derived from the listing; an older server's handshake refused naming the
token with no dial); TestProxiedServerBlocked/flags_reads_ids_from_stdin on
the proxied route; corpus gc-blocked-flags, pending until the reference
server advertises the token. CHANGELOG entry.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(blocked): bd blocked --flags --raw, the stored is_blocked column
`bd blocked --flags --raw [--json]` answers the stored is_blocked column
for each id read from stdin, exactly what reading is_blocked from the issues
and wisps tables returns, without the external-dependency policy: a row
blocked only by an unsatisfied external: ref reads false (the policy-aware
--flags reads true), and a stale flag reads true either way. Same output
shape as --flags. This lets a consumer move off a `bd sql` read of the
column with no change in what it reads. The default --flags is unchanged.
The role is taken from beneath every decorator: storage.UnwrapStore on the
direct routes, uow.UnwrapProvider on the proxied route. Over HTTP the
innermost store is the http client, whose annotation read is the server's
answer: against a server that does not advertise
policy.external_dependencies that answer is the column, and --raw is
served. A server that advertises it decorates the flag it answers, the v0
wire has no member asking it for the column, and the decorated flag cannot
be turned back into the column client-side, so --raw against such a server
is refused before the annotation read, naming the token, rather than
answered with the decorated flag. --raw without --flags is refused.
Tests: TestE2E_BlockedFlagsOverHTTP/raw_is_the_stored_column (served --raw
equals local --raw; the externally-blocked-only row reads true with --flags
and false with --raw on both; locally blocked rows agree; a stale-flagged
row reads true in both modes; --raw without --flags exits 1; a server
advertising the policy refuses --raw with no annotation request);
TestProxiedServerBlocked/flags_raw_is_the_stored_column; corpus
gc-blocked-flags-raw (pending until the reference server advertises
dependencies.blocking.isBlocked). Routing --raw through the decorated
annotator fails the e2e. CHANGELOG entry.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* docs(changelog): bd blocked --flags --raw is for the local and proxied routes
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* test(blocked): give the e2e gate-kid its own priority; document --flags answers closed ids
TestE2E_BlockedOverHTTP seeded gate-parent and gate-kid at one priority, so
when both landed in the same second their order fell to the generated ids,
which differ between the local and the served workspace: the comparison
failed intermittently. gate-kid now has its own priority. Ten runs on the
embedded lane pass.
bd blocked --flags answers a closed id too, with its stored flag; a SQL read
of the column filtered on status <> 'closed' leaves it out. Said in the
command's doc and the CHANGELOG.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(blocked): apply label filters to external-only blocked rows
The external-dependency policy appends a row blocked only by an
unsatisfied external: ref after the label query has run, so --label,
--label-any and --exclude-label never judged it: bd blocked and
GET /v0/beads/blocked listed it whatever its labels, on every route.
Both decorators now filter those rows by the request's labels. The uow
decorator reads them through GetMany, chunked at MaxGetManyIDs, so their
labels are hydrated; GetIssuesByIDs left them empty, which also printed
them unlabelled on the proxied route.
Review fixes (adopt-pr apply-fixes, iteration 1):
- major #1: label filters on external-only rows in the store and uow
decorators, with absence-asserting arms in the unit, served httpclient
(server- and client-enforced policy), e2e and proxied tiers; the spec
and the role doc say such rows are narrowed like every other row.
- minor #2: the policy.external_dependencies token prose names the
blocked listing (spec, routes.go, regenerated types.gen.go).
- minor #6: SERVE_RUNBOOK and the allowUnlimited comment record the
blocked listing's unbounded whole-set answer and why.
- minor #10: BlockedLister telemetry-outermost and typed-unsupported pins
beside the ReadyCounter pair, plus the externaldeps wrap pin.
- nit #9: F-blocked names --flags --raw's refusal against a server that
applies the policy (ledger.go and the regenerated ledger doc).
- nit #11: the remote BlockedLister no longer builds a local lister it
then discards.
Review fixes (adopt-pr apply-fixes, iteration 2; the review approved at
940 with one minor and two nits, none gating):
- minor (the --flags refusal list was unpinned): the new
TestBlockedFlagsRefusesEveryListingFilter pins blockedFlagFilterFlags
to the flags blockedCmd registers, in both directions. Every
registered flag except --flags and --raw must be refused, and every
entry must name a registered flag. The test walks Flags() rather than
LocalFlags(), so it does not merge the root's persistent flags into
blockedCmd, and it skips inherited root flags and cobra's --help.
Mutants:
- four fail it: a new filter flag left off the list, a dropped
entry, a misspelled entry, and --raw added to the list;
- a simulated earlier in-process run (merged root flags plus --help)
stays green, and fails once either skip is removed.
- nit (the remote branch's span): the remote BlockedLister comment now
says why that lister is not wrapped again. The inner lister already
carries telemetry's span, so wrapping would nest a second span of the
same name. The comment also says what runs outside that span.
- nit (duplicated order comparator): left as is. finishBlockedIssues
predates this PR, so merging the two sorts would refactor existing
code with no review pass left after this one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Signature: claude-code-claude-opus-5-5-max on behalf of Gas City Adopt-PR
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Eddie the Engineer <338826946+gascity-eddie[bot]@users.noreply.github.com>
1861 lines
66 KiB
Python
1861 lines
66 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",
|
|
"blocked_flags.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_page_edges.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/httpclient/wire",
|
|
"//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_flags_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_commit_server_integration_test.go",
|
|
"config_commit_write_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_exact_id_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_add_waiter_contention_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_home_guard_cgo_test.go",
|
|
"init_home_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_page_edges_embedded_test.go",
|
|
"list_page_edges_store_test.go",
|
|
"list_page_edges_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_routing_test.go",
|
|
"mol_bond_test.go",
|
|
"mol_bond_var_validation_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_local_near_miss_test.go",
|
|
"routed_mutation_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_cascade_age_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/httpclient",
|
|
"//internal/httpclient/encode",
|
|
"//internal/httpclient/wire",
|
|
"//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 ---
|