Skip to content

test(php-transformer): run timing-ratio tests alone after the parallel batch - #5267

Merged
chubes4 merged 1 commit into
trunkfrom
test/serial-scaling
Nov 9, 2026
Merged

chubes4 merged 1 commit into
trunkfrom
test/serial-scaling

Conversation

@chubes4

@chubes4 chubes4 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Problem

After #5244, gallery-compilation-scaling failed in trunk's PHP 8.2 job (run for b8d2b5f1). The test compares its own timings across input sizes, and in that run it shared a 4-core runner with tests like captured-interaction-page-budget, which took 1,086s on 8.2. Three tests assert timing ratios, and all three are named *-scaling.php:

  • gallery-compilation-scaling
  • recognizer-compilation-scaling
  • route-selector-match-index-scaling

Change

tests/run.php runs the *-scaling.php files one at a time after the parallel batch finishes, so each measures its own timings on an otherwise idle machine. The scheduling loop moved into a run_tests($tests, $jobs) function that both phases share.

Verification

On homeboy-lab with php tests/run.php --jobs=4 (CI's core count): 1,312 tests, 0 failures, 149s wall.


AI disclosure: Claude Opus (Anthropic) via Pi/Roadie diagnosed the failure and made this change for Chris Huber.

…l batch

gallery-compilation-scaling failed on PHP 8.2 CI after #5244 because it
compared its own timings while sharing four cores with other tests. The
three *-scaling.php tests now run one at a time once the parallel batch
finishes.
@chubes4
chubes4 merged commit 8386b72 into trunk Nov 9, 2026
13 checks passed
@chubes4
chubes4 deleted the test/serial-scaling branch November 9, 2026 17:59
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