Skip to content

[SDTEST-3751] Optimize split-aware parallelism planning#60

Open
anmarchenko wants to merge 9 commits into
mainfrom
anmarchenko/split-aware-parallelism
Open

[SDTEST-3751] Optimize split-aware parallelism planning#60
anmarchenko wants to merge 9 commits into
mainfrom
anmarchenko/split-aware-parallelism

Conversation

@anmarchenko
Copy link
Copy Markdown
Member

@anmarchenko anmarchenko commented May 19, 2026

What

DDTest now chooses planned parallel runner count by evaluating weighted test splits instead of linearly interpolating from saved/skippable time. The split scheduler is shared between runner-count scoring and final split generation, and the README explains the new planning behavior.

Why

The previous runner-count calculation could over-provision workers for suites where additional runners did not reduce the slowest runner's estimated wall time. Scoring candidate splits by slowest-runner time, then imbalance, avoids launching workers that would sit idle.

E2E testing

Run ddtest plan --platform ruby --framework rspec --min-parallelism 2 --max-parallelism 4 on a project with weighted runnable test files, then inspect .testoptimization/runner/parallel-runners.txt and .testoptimization/runner/tests-split/runner-* to confirm the chosen runner count matches the fastest and most even estimated split. Validation performed: go test ./internal/runner, go test ./internal/runner -run '^$' -bench BenchmarkCalculateParallelRunners20000TestFiles -benchtime=1x, make test, and make lint.

@anmarchenko anmarchenko changed the title Optimize split-aware parallelism planning [SDTEST-3751] Optimize split-aware parallelism planning May 19, 2026
@anmarchenko anmarchenko marked this pull request as ready for review May 19, 2026 15:04
@anmarchenko anmarchenko requested a review from a team as a code owner May 19, 2026 15:04
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97267de802

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/runner/runner.go Outdated
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