beads/cmd/bd/dolt_server_pinned_shards.txt
Julian Knutsen 5a5b7cfd66
ci(bazel): pin the slowest cmd/bd Dolt-server tests to their own shards (#7413)
* ci(bazel): pin the slowest cmd/bd Dolt-server tests to their own shards

The cmd-dolt lane's wall time when its tests re-run is the bd_test race
compile plus its slowest shard. rules_go shards round-robin by test index,
so whichever shard drew TestSharedServerConcurrent and the TestInit*
family ran 117-170s while the median shard ran ~55s.

tools/bazel/go_test_pinned_shard.sh runs a go_test binary with the tests a
committed manifest pins (measured >= 5s, bin-packed longest-first by
tools/bazel/pin_shards.py) in shards of their own, and every other test in
the binary's own round-robin shards with the pinned set skipped, so each
test still runs exactly once and new tests need no manifest edit.
bd_dolt_server_test goes from 16 to 32 shards (16 pinned + 16 round-robin),
regression_test from 8 to 16 (10 + 6; its go_test becomes the manual
regression_suite binary behind an sh_test of the old name).

Pinning exposed a pre-existing order dependence: TestCLI_Import failed
whenever it was the binary's first test, because runBDInProcess reused the
workspace discovery an earlier in-process execution cached and `bd init` in
a fresh directory resolved the previous one's .beads. The in-process
runners now reset beads/git discovery caches per execution.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* ci(bazel): pin cmd/bd Dolt-server shards from two measured runs; regression in 14 shards

The bd manifest now takes each test's slowest of the 16- and 32-shard runs
(pin_shards.py over both), and regression_test drops to 10 pinned + 4
round-robin shards: its unpinned tests total ~128s, so 6 round-robin
shards were mostly fixed cost.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(scripts): place the pinned-shard tests by what they read (#7414 split)

The manifest-name scan reads every cmd/bd and tests/regression _test.go
file, so it moves to go_test_sources_test (with tests/regression's
manifest); the wrapper, generator and wiring checks stay in scripts_test.
Shared helpers live in a helpers-only file both targets compile, and
repoFiles takes #7414's minimum-file count.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-09 05:50:09 +00:00

103 lines
3.8 KiB
Text

# Pinned shards for tools/bazel/go_test_pinned_shard.sh. Generated by
# tools/bazel/pin_shards.py; regenerate rather than edit (see its usage).
#
# Every top-level test measured at >= 5s, bin-packed
# longest-first onto these shards; every other test runs in the
# binary's own round-robin shards. Measured seconds per pinned shard:
# 59 60 59 62 59 59 58 57 57 57 62 62 57 57 57 62
# Unpinned tests: 3322, 570s in total.
#
# <pinned shard> <TestName>
1 TestCLI_NoteAddMisplacedSyntax
1 TestSharedServerConcurrent
2 TestAcquireInitMutationGateWaitsPastGenericBudget
2 TestCLI_ReparentDottedIDExcludesOldParent
2 TestContributorRoutingDaemon
2 TestMultiIDUpdatePartialFailureJSONReportsFailedIDs
2 TestRoutingWithAllOperationalModes
3 TestADORoundTripLossyPriority
3 TestCLI_UpdateEphemeral
3 TestDetermineAutoRoutedRepoPath_DefaultFallback
3 TestDirectTrackerConformance
3 TestGetNotionConfigReadsDBPathWhenStoreUnset
4 TestBareParentWorktreeCoreCommandsWithoutRedirect
4 TestCLI_Blocked
4 TestDoltAutoCommit_Batch_DefersCommit
4 TestE2E_DoctorFixMetadataRoundtrip
4 TestE2E_MigrateDoltMetadata
4 TestInitDatabaseFlag
5 TestADORoundTripLabels
5 TestBackwardCompatContributorConfig
5 TestContributorRoutingSyncBranch
5 TestEmbeddedChangeDirOverridesInheritedBeadsDir
5 TestImportBlockedDuringMigrationFreeze
5 TestResolveCloseTargets
6 TestADORoundTripBlockedStatus
6 TestCLI_CommentsAddReservedWordRejectedThroughCobraDispatch
6 TestCLI_UpdateEphemeralMutualExclusion
6 TestDepRoutedTargetOpensReadOnly
6 TestE2E_AutoStartedRepoLocalServerPersistsAcrossCommands
6 TestInitCommand
7 TestAutoExportSkipsWhenExistingJSONLHasIDsMissingFromStore
7 TestCLI_CreateRejectsFlagLikeTitles
7 TestContributorRoutingTracer
7 TestGlobalDBIdentityCheck
7 TestMultiIDUpdateAllGoodPathUnchanged
7 TestSharedServerDeleteIfRevisionSingleWinner
8 TestCLI_Import_GlobalModeIgnoresProjectConfigYAMLPrefix
8 TestCLI_Update
8 TestCreateDepsAtomicity
8 TestDoctorPathArgMaintenanceSkippedByTargetFreeze
8 TestOpenRoutedReadStore_ContributorRouting
8 TestPrimeBinaryPortfolio
9 TestCLI_CommentAbbreviatedIDRejectedWithTruthfulMessage
9 TestContributorRoutingDirect
9 TestDoltRemoteAddPersistsSyncRemoteToSharedWorktreeConfig
9 TestInitNonInteractiveAlwaysSetsRole
9 TestServeAnswersFromARegisteredBackendStore
9 TestSharedServerVersionBumpDoesNotPromoteCursor
10 TestAutoMigrateSkippedDuringMigrationFreeze
10 TestCLI_Import
10 TestCLI_NoteListMisplacedSyntax
10 TestEmbeddedCreateDryRunCrossRepoDoesNotMigrateTarget
10 TestResolveAndGetIssueForMutationExactSurfacesRoutedAbbreviationRefusal
10 TestSharedServerIfRevisionSingleWinner
11 TestBEADS_DIRPrecedence
11 TestDoctorCheckHealthReportsVersionMismatchOnRepoLocalPort
11 TestDoctorPathArgBlockedByTargetFreeze
11 TestInitBackendFlag
11 TestInitContributorSetsBeadsRoleContributor
11 TestInit_WithBEADS_DIR_DoltBackend
11 TestTemplateSuite
12 TestCLI_Labels
12 TestCLI_NoteCommand
12 TestCLI_Show_SupersedesIsNotABlocker
12 TestCheckBeadGateCrossRigPrefixRoute
12 TestInitIfMissing
12 TestInitMetricsEmittedPerDoltMode
12 TestReadonlyShowPreservesLastTouched
13 TestCLI_DepRemove
13 TestCLI_UpdateAppendNotes
13 TestDepListCrossRigRouting
13 TestExplicitRepoOverride
13 TestInitIfMissingMatchingPrefixSkips
13 TestMultiIDUpdatePartialFailureExitsNonzero
14 TestCLI_CommentsAddShortID
14 TestCLI_DepTree
14 TestContributorPlanningGitIgnoresInheritedRouting
14 TestContributorRoutingLocalOnly
14 TestMaintainerRoutingUnaffected
14 TestWhereCommand_ReadsPrefixFromEmbeddedStore
15 TestADORoundTripCoreFields
15 TestBdMolPour_NeedsAndWaitsForSameTarget_SpawnerOpenBlocksWaiter
15 TestCLI_CreateDryRun
15 TestCLI_PriorityFormats
15 TestInitBEADS_DIR
15 TestInitPromptNonGitRepo
16 TestBdMolBond_ResolvesPlainFormulaName
16 TestCLI_UpdateLabels
16 TestCLI_UpdatePersistent
16 TestContributorRoutingNoDb
16 TestInitDoltMetadata
16 TestInitMetricsEnvConfigPrecedence
16 TestInitPromptExistingRole