Repository navigation
Conversation
The test_web_symfony_73 and test_web_symfony_latest suites run `composer update`, so they pick up the newest symfony/routing. Release v7.4.24 (2026-11-24) changed Matcher/Dumper/CompiledUrlMatcherTrait.php and the ResourceNotFoundException for "/does_not_exist/" is now thrown from line 77 instead of 76 (same in v8.1.12, used by the Latest suite). testScenarioGetToMissingRoute then failed on every PHP version and SAPI with a single mismatch on meta.error.message (:76 expected, :77 got). Update the expected line in both snapshots. error.stack is already in the ignored fields, so no other change is needed. This is a recurrence of #4402, which handled the previous shift (:70 -> :76) after symfony/routing v7.4.22 / v8.1.10. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Leiyks <55387832+Leiyks@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Snapshots difference summaryThe following differences have been observed in committed snapshots. It is meant to help the reviewer. If you need to update snapshots, please refer to CONTRIBUTING.md 1 occurrences of : - "error.message": "Thrown Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException: No routes found for \"/does_not_exist/\". in {path}/tests/Frameworks/Symfony/Latest/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:76"
+ "error.message": "Thrown Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException: No routes found for \"/does_not_exist/\". in {path}/tests/Frameworks/Symfony/Latest/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:{line}"
1 occurrences of : - "error.message": "Thrown Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException: No routes found for \"/does_not_exist/\". in {path}/tests/Frameworks/Symfony/Version_7_3/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:76"
+ "error.message": "Thrown Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException: No routes found for \"/does_not_exist/\". in {path}/tests/Frameworks/Symfony/Version_7_3/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:{line}"
|
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: a595648 | Docs | View more details | Give us feedback! |
There was a problem hiding this comment.
Both Symfony missing-route tests now fail when Make reuses a routing installation that still throws from line 76.
🤖 Bits Code Review · Commit 19d336d
Address the Bits Code Review comment on #4555: bumping the expected line to 77 only works for checkouts that pick up symfony/routing v7.4.24 / v8.1.12. A checkout that reuses an older install (the Make targets skip Composer while the lock marker is newer than composer.json) still throws from line 76, and the next routing release will move it again. Let tracesFromWebRequestSnapshot() pass per-test regex placeholders to the test agent (its `regex_placeholders` snapshot parameter, the same mechanism behind {path}), and have both Symfony missing-route tests replace the CompiledUrlMatcherTrait.php line with {line}. The rest of error.message, including the file, is still compared. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Leiyks <55387832+Leiyks@users.noreply.github.com>
There was a problem hiding this comment.
More details
The PR now normalizes Symfony exception line numbers with a scoped regex placeholder in both missing-route snapshots, passed through an optional shared-helper argument. This addresses recurring failures when routing releases move the throw statement. No findings remain open after the incremental static review. The Symfony suites were not run.
🤖 Bits Code Review · Commit a595648
Description
The test_web_symfony_73 and test_web_symfony_latest suites run
composer update, so they pick up the newest symfony/routing. Release v7.4.24 (2026-11-24) changed Matcher/Dumper/CompiledUrlMatcherTrait.php (a new comment line in the redirect path) and the ResourceNotFoundException for "/does_not_exist/" is now thrown from line 77 instead of 76 (same in v8.1.12, used by the Latest suite).testScenarioGetToMissingRoute then failed on every PHP version and SAPI, on every branch including master, with a single mismatch on meta.error.message (:76 expected, :77 got).
This is a recurrence of #4402, which handled the previous shift (:70 -> :76) after symfony/routing v7.4.22 / v8.1.10. This PR first bumped the expected line to 77 the same way, but as the Bits Code Review comment pointed out, that only works for checkouts that install the new release: a checkout that reuses an older routing install (the Make targets skip Composer while the lock marker is newer than composer.json) still throws from line 76, and the next routing release will move it again. So instead of bumping the line, the line number is no longer compared:
$regexPlaceholders(placeholder name => regex) and pass it to the test agent'sregex_placeholderssnapshot parameter, the same mechanism that already gives us{path}. The test agent replaces the matches in the received traces with{name}. Existing callers are unchanged.line => (?<=CompiledUrlMatcherTrait\.php:)\d+.CompiledUrlMatcherTrait.php:{line}. The rest of error.message (exception, message and file) is still compared; error.stack was already ignored.Checked locally:
composer update --dry-runwith both suites' composer.json resolves symfony/routing v7.4.24 (Version_7_3) and v8.1.12 (Latest); the throw is on line 76 in v7.4.22, v7.4.23, v8.1.10 and v8.1.11, and on line 77 in v7.4.24 and v8.1.12.:77snapshots (previous state of this PR), line 76 fails on both suites, which is the case the review comment describes.Reviewer checklist
🤖 Generated with Claude Code (https://claude.com/claude-code)
PR by Bits - View session in Datadog • Open in Slack
Comment @DataDog to request changes