Skip to content

[bal-devnet-3] cmd/utils, node/cli: add --exec.serial flag to clamp workers to 1#20863

Merged
mh0lt merged 1 commit intobal-devnet-3from
cp/20853-to-bal-devnet-3
Apr 28, 2026
Merged

[bal-devnet-3] cmd/utils, node/cli: add --exec.serial flag to clamp workers to 1#20863
mh0lt merged 1 commit intobal-devnet-3from
cp/20853-to-bal-devnet-3

Conversation

@mh0lt
Copy link
Copy Markdown
Contributor

@mh0lt mh0lt commented Apr 28, 2026

Cherry-pick of #20853 to bal-devnet-3. Depends on #20862 (#20797 cherry-pick).

Follow-up to #20797. Adds a single-purpose boolean that forces serial
execution by clamping the parallel executor's worker count to 1 — wins
over both --exec.workers and EXEC3_WORKERS. Cleaner than `--exec.workers=1`
because it states intent ("force serial") at the call site rather than
relying on a magic value, and it can't be accidentally undone by a stale
EXEC3_WORKERS env var that gets re-read by tooling.

Use case: like-for-like baseline comparisons against the parallel executor
(devnet A/B runs, profiling cold paths) where the operator explicitly
wants serial irrespective of any other knob.

Wiring: applied AFTER --exec.workers in SetEthConfig, so:
  --exec.serial=true                          → workers=1
  --exec.workers=12 --exec.serial=true        → workers=1 (serial wins)
  --exec.workers=12                           → workers=12
  --exec.serial=false  (default)              → no override

Test: TestExecPerfFlags_OverrideDbg covers serial-true, serial-vs-workers
precedence, and serial-false-leaves-untouched.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mh0lt mh0lt force-pushed the cp/20853-to-bal-devnet-3 branch from 78f1d97 to 898ad84 Compare April 28, 2026 08:54
@mh0lt mh0lt merged commit 6146f0b into bal-devnet-3 Apr 28, 2026
1 check failed
@mh0lt mh0lt deleted the cp/20853-to-bal-devnet-3 branch April 28, 2026 08:55
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