Skip to content

DX 5066/even more parallel - #24199

Draft
kalverra wants to merge 3 commits into
DX-5066/faster-integrationfrom
DX-5066/even-more-parallel
Draft

kalverra wants to merge 3 commits into
DX-5066/faster-integrationfrom
DX-5066/even-more-parallel

Conversation

@kalverra

@kalverra kalverra commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

The last wave of t.Parallel(), covering 92 files in pipeline, config, ocrcommon and the tools/plugin unit tests. There is no production code here: every file is either a one-line addition or a fixture that had to stop being shared. Deliberately kept off the current stack so wave 3 can be reviewed and re-stacked separately. Part of DX-5066.

Changes

78 of 92 files are one added t.Parallel() line

The remaining 14 are fixtures that had to move inside their subtest, plus the usual shared-state adjustments: config_tracing, heartbeat, llo/telem, ocrcommon (data source, discoverer, peer wrapper), pipeline (bridge, lookup, mode), versioning ORM, shutdown, internal/testdb, plugins/loop_registry and tools/plugout.

Notes

  • Not part of the four-layer stack. The base is DX-5066/faster-integration for now, so this diff shrinks and retargets to develop when Faster, More Stable Tests! #24191 merges.
  • Stack results and the reviewer guide live at the top of the stack, Faster, More Stable Tests! #24191.
  • No production code: any failure here is wave 3's own fallout, not a layer below it.

Covers tools/ci-testshard, tools/plugout, tools/gomod-local-update,
plugins, internal/testdb, core/services/versioning, core/services/llo/telem,
core/services/pipeline/eautils and core/shutdown.

Tests that must stay sequential are marked with //nolint:paralleltest and a
reason: AllocsPerRun reads global counters, freeport assertions depend on
concurrent allocation, and llo/telem subtests share one telemeter.
core/services/chainlink: 98 sites, almost all pure config parsing.
core/services/ocrcommon: 38 sites.

Three cases stay sequential:
- Test_InMemoryDataSourceWithProm asserts on process-global Prometheus
  counters, so it keeps a nolint.
- Test_DiscovererDatabase subtests read rows written by earlier subtests.
- Test_SingletonPeerWrapper_Start subtests now build their own keystore and
  DB handle instead of sharing one, so they can run in parallel.
210 sites across 44 files. Pipeline was the slowest unit-test package in
the baseline diagnose run (p50 29.9s); it is now 3.6s.

Kept sequential:
- TestBridgeTask_Headers and TestBridgeTask_AdapterTimeout subtests share
  one bridge task, DB handle and captured headers.
- TestModeTask/'with json vars' shares table values that JSONWithVarExprs
  writes back to, so it must not overlap its parallel siblings.
- Test_LookupTask now builds its own task and inputs per subtest instead of
  mutating parent-scoped ones.
@kalverra
kalverra added this pull request to stack #24200 November 12, 2026 13:53
@kalverra kalverra mentioned this pull request Nov 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CORA - Pending Reviewers

Codeowners Entry Overall Num Files Owners
* ⏳ 39 @smartcontractkit/foundations, @smartcontractkit/core
/core/services/ocr*/ ⏳ 6 @smartcontractkit/foundations, @smartcontractkit/core
/core/services/pipeline/ ⏳ 45 @smartcontractkit/foundations, @smartcontractkit/bix-framework, @smartcontractkit/core
/core/services/llo/ ⏳ 1 @smartcontractkit/data-streams-engineers, @smartcontractkit/core
/tools/plugout/ ⏳ 1 @smartcontractkit/devex-cicd, @smartcontractkit/core

Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown

For more details, see the full review summary.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@kalverra
kalverra removed this pull request from stack #24200 November 12, 2026 14:14

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant