test: protocol invariant suite for data integrity and blocking semantics (#1910)
12 protocol invariant tests that guard against re-regression of fixed bugs:
- ImportPreservesRelationalData (labels, deps, comments) — #1844
- ReadyOrderingIsPriorityAsc — #1880
- MetadataRoundTrip, SpecIDRoundTrip — #1912
- FieldsRoundTrip, CloseReasonRoundTrip
- DeleteCleansUpDeps
- Labels/Deps/CommentsPreservedAcrossUpdate
- ParentChildDepExportRoundTrip (SKIP, #1926)
- ClosedBlockerNotShownAsBlocking — #1858
Each test runs in isolated t.TempDir() workspace with its own git repo.
Set-based comparisons with clear missing/unexpected diffs on failure.
Remove //go:build cgo tag (CGO bifurcation removed in c4010c19).