test: make random component execution safer #10169
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 316 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10169"
general
weight: 0.35
neznaika0
Description
Related to #9968.
This one took a few rounds: every time the
Commandssuite looked settled, another bit of shared test state quietly raised its hand. The result is a more random-order-safeCommandscomponent, plus a few small shared-state hardening fixes that the parallel random component runs exposed along the way.This enables
Commandsin the random test config and updates the affected tests so they own their setup/cleanup instead of depending on earlier tests running first.Main changes:
Unsuffixablesupport command provide its own template dataCreateNewChangelogTestcleanup inAutoReviewso it no longer runs repository-widegit restore/git cleanwhile random component jobs are running in parallelThis PR also touches a few areas outside
tests/system/Commandsbecause the failures were not purely local to one test class:system/Commands/Database/ShowTableInfo.phpnow keepsdb:table --showdisplay IDs sequential even when table arrays have sparse keyssystem/HotReloader/DirectoryHasher.phpnow hashes files in a stable order, which avoids filesystem traversal order differencessystem/Cache/FactoriesCache/FileVarExportHandler.phpnow guards cache writes against concurrent cleanup/recreation racestests/system/HotReloader/DirectoryHasherTest.phpnow uses isolated writable fixtures instead of shared app/system directoriessystem/Log/Handlers/FileHandler.phpnow treats the final chmod after creating a log file as best-effort, so concurrent log cleanup cannot turn logging into a test/app errorVerified locally:
Commandsruns, including failed CI seedsHotReloader,Cookierandom-order runscomposer phpstan:checkvendor/bin/rector process --dry-runcomposer csChecklist: