Commit graph

2 commits

Author SHA1 Message Date
quartz
801965ae2d feat(test): parallelize protocol tests for 3x speedup (bd-dgp)
Add t.Parallel() to all 45 top-level test functions in cmd/bd/protocol.
Each test already creates a fully isolated workspace (unique Dolt prefix,
temp dir, git repo) so parallelization is safe. Reduces test time from
~135s to ~42s on the same machine.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/polecats/quartz
Rig: beads
Role: polecats
2026-02-27 20:04:00 -08:00
obsidian
765ac3c481 refactor(protocol): split protocol_test.go monolith into thematic files
Remove the 45KB monolithic protocol_test.go and distribute its contents:
- helpers_test.go: TestMain, workspace, build helpers, assertion utilities
- roundtrip_test.go: field/metadata/spec/label create→show round-trips
- preservation_test.go: data survives updates, status transitions, deletes
- blocking_semantics_test.go: ready ordering, diamond deps, transitive chains
- close_guard_test.go: close guard, cycle prevention, supersede, force close

All 45 protocol tests pass. Closes GH#2041.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/polecats/obsidian
Rig: beads
Role: polecats
2026-02-24 14:25:54 -08:00