Skip to content

test(lifecycle): a verbose Phase: line never joins the full-width line before it - #4392

Merged
Daniel Meppiel (danielmeppiel) merged 4 commits into
mainfrom
danielmeppiel-t1-joiner-phase
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 4 commits into
mainfrom
danielmeppiel-t1-joiner-phase

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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 by Phase: apm and then Phase: mcp therefore 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 following Phase: ... 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 runs install --verbose with 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)

  • Node-set diff vs main: none removed; +1 test_a_verbose_phase_line_never_joins_a_full_width_banner.
  • Oracle: tightens I9 (the joiner can no longer hide a repeated banner). 0 cells added or removed; 0 obligation changes.

Validation

  • pytest tests/unit/scripts/test_lifecycle_evidence.py: 212 passed.
  • ruff check and format: clean.

The #4244 per-registry Looking up ... repeat is left to its existing cell; CI on the mcp_dev_dependency node will confirm.

…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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit fbea28d into main Nov 21, 2026
43 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-t1-joiner-phase branch November 21, 2026 05:24
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.

2 participants