Repository navigation
Fix quality gate on main: test asserts and regex backtracking - #500
Conversation
… risk - MethodConflictResolutionTest: replace java assert statements with JUnit assertEquals/assertTrue (5 critical reliability findings) - CodegenTestUtils: make nested regex repetitions possessive/atomic so they cannot catastrophically backtrack (2 major reliability findings)
The atomic modifier group could consume the type keyword itself (class, interface, ...) leaving nothing for the type-declaration alternative to match, so every modified type failed with 'Cannot determine top-level type name'. The possessive token repetition is kept, but each token is now guarded by a lookahead excluding the type keywords — keyword matching recovered, catastrophic backtracking still impossible
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Strict reviewchanges needed Reviewed head
Verification
Other-PR integration reviewRead the bodies/file lists of #430, #480, #482, #483, #484, #492, #497, #498, and #499. Read-only pairwise Recheck at
|
| # | Original finding (short) | Status | Remaining action |
|---|---|---|---|
| 1 | Space-only tokenizer / parser tests | fixed | — |
| 2 | Test-message text-block convention | partially fixed — nit | Concatenation removed; convert messages and parser fixtures to text blocks (MethodConflictResolutionTest.java:122–126,178–182; CodegenTestUtilsTest.java:55–84). |
Build: Current main inspected; tab probe passes with 0 warnings/errors; identical utility/tests passed #430 full verify; no separate #500 build (supplied 0b8d7920 unresolved locally).
Recheck at a8e4b24a (2026-12-06)
Verdict: minor changes
PR #500 is merged; checked unchanged main a8e4b24a. The remaining nit is still present there.
| Severity | What is missing | Where (file:line) |
|---|---|---|
| nit | Merged PR: text-block conversion is still missing on unchanged main (assertion messages and escaped parser fixtures). | MethodConflictResolutionTest.java:122–126,178–182; CodegenTestUtilsTest.java:55–84 |
…sts, text-block assertions
|



Fixes the failing quality gate on main (reliability rating was 3/C on new code).
Two root causes, both in recently merged test/test-util code:
MethodConflictResolutionTest: 5 javaassertstatements — they are no-ops unless JVM assertions are enabled, so the tests silently verified nothing in normal CI runs. Replaced withassertEquals/assertTruekeeping the original messages (CRITICAL reliability findings)CodegenTestUtils: nested regex repetitions inPACKAGE_PATTERN/TOP_LEVEL_TYPE_PATTERNrisked catastrophic backtracking — made possessive/atomic (*+,(?>...)) without changing what they match (MAJOR reliability findings)Verified: 7/7 conflict tests green, full reactor 1,259 tests green — and the test semantics genuinely changed: the assertions now actually execute.