Repository navigation
test(lifecycle): a verbose Phase: line never joins the full-width line before it - #4392
Merged
Daniel Meppiel (danielmeppiel) merged 4 commits intoNov 21, 2026
Merged
Conversation
…e before it (#4113) _logical_lines appended 'Phase: ...' to a preceding full-width policy banner, so a repeated banner never compared equal and the #4241 banner cell reported 'did not fail' under --verbose. 'Phase:' now always starts its own logical line. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 16:01
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change that prevents phase diagnostics from obscuring duplicate policy banners.
No open issues 🎉
What changed in this PR
This test-infrastructure change strengthens the global CLI output oracle from #4113 so verbose phase diagnostics no longer hide repeated policy banners tracked by #4241.
Changes:
- Prevent
Phase:lines from joining the preceding full-width logical line. - Add a regression test confirming duplicate banners remain detectable when followed by different phase labels.
| File | Description |
|---|---|
tests/utils/lifecycle_evidence.py |
Treats verbose Phase: labels as separate logical lines. |
tests/unit/scripts/test_lifecycle_evidence.py |
Tests duplicate-banner detection with intervening phase diagnostics. |
Review effort: Balanced
5 of 10 tasks
5 of 10 tasks
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-t1-joiner-phase
branch
November 21, 2026 05:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refines #4143's wrap rule: verbose Phase: labels always start a line.
The diff on top of main (after #4143) adds one
_VERBOSE_LABELS = ("Phase:",)exclusion in_logical_lines(tests/utils/lifecycle_evidence.py). Under #4143's rule, a full-width line that fills 79-80 columns joins the next line; a repeated policy banner followed byPhase: apmand thenPhase: mcptherefore never compared equal, and the I9 repeat was missed.Unit cases
test_a_verbose_phase_line_never_joins_a_full_width_banner[78|79|80|81]:Earlier description (for history):
Refs #4113
Why
Under
--verbose,_logical_lines(tests/utils/lifecycle_evidence.py) appended a followingPhase: ...line to a full-width policy banner, treating it as a terminal wrap. The repeated banner then never compared equal, so the #4241 banner cell reported "did not fail" (for example in test_mcp_dev_dependency_lifecycle, which runsinstall --verbosewith two registries).Change
Phase:lines (_VERBOSE_LABELS) always start their own logical line and are never joined onto the previous one.Steward pre-approval (A-C)
test_a_verbose_phase_line_never_joins_a_full_width_banner.Validation
pytest tests/unit/scripts/test_lifecycle_evidence.py: 212 passed.The #4244 per-registry
Looking up ...repeat is left to its existing cell; CI on the mcp_dev_dependency node will confirm.