Repository navigation
test(lifecycle): I9 compares a [!] warning across indentation - #4384
Merged
Daniel Meppiel (danielmeppiel) merged 1 commit intoNov 21, 2026
Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
Daniel Meppiel (danielmeppiel) merged 1 commit into
Conversation
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 15:43
6 of 10 tasks
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the cross-indentation duplicate-warning check and its added regression case.
No open issues 🎉
What changed in this PR
This PR tightens the lifecycle output oracle's I9 duplicate check to catch identical warnings printed at different indentation levels, covering the pattern reported in #4299.
Changes:
- Compare indented
[!]warnings globally while preserving per-block handling for other status and tree lines. - Add a regression case for a warning repeated at top level and inside a package block.
| File | Description |
|---|---|
tests/utils/lifecycle_evidence.py |
Keys indented warnings globally to detect cross-indentation duplicates. |
tests/unit/scripts/test_lifecycle_evidence.py |
Adds a regression case for the repeated parked-server warning. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-t1-i9-warning-across-indent
branch
from
November 20, 2026 15:45
a46e894 to
6ce56e6
Compare
This was referenced Nov 20, 2026
…shape) A warning means the same thing top-level or inside a package block, so the per-block comparison no longer lets a notice printed top-level and again indented slip past I9. [+] package lines, [i]/[*]/[>] status and tree lines keep their per-block comparison. Co-authored-by: Copilot App <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-t1-i9-warning-across-indent
branch
from
November 21, 2026 08:39
464346a to
0a1e164
Compare
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-t1-i9-warning-across-indent
branch
November 21, 2026 09:01
Merged
3 of 10 tasks
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.
Refs #4113, #4299
Why
The I9 duplicate check (
_noise_violationsintests/utils/lifecycle_evidence.py) compared indented status lines only within their package block. The #4299 defect prints[!] Parked MCP server ...: deniedonce at top level and again indented inside a package block, and that repeat slipped past I9.Change
An indented
[!]warning is now keyed globally, the same as a top-level one, so the same warning at any indentation counts as one repeat.[+]package lines,[i]/[*]/[>]status lines and tree lines keep their per-block comparison, because per-package blocks legitimately repeat them.Coordination with #4217
The existing #4299 strict cell (
install-frozen-parked-mcp-notice-per-phase, messageParked MCP server .*: denied) now owns the violation this change surfaces. #4255 (H2b) is the product fix for #4299 and removes that cell. Landing in either order is consistent.Steward pre-approval (A-C)
test_output_oracle_rejects_each_output_law_violation.Validation
pytest tests/unit/scripts/test_lifecycle_evidence.py: 209 passed.[!]warnings repeated across blocks) is left to CI. Any new hit is a product duplicate and gets a strict cell plus an issue, or a fix.Update
Cells (latest push): #4299 keeps its original park reasons (denied, unapproved transitive), matched at any indentation. A separate strict cell
install-frozen-parked-executables-notice-twice(Refs #4422) owns the 'executables not approved' repeat that the cross-indentation compare surfaced in four install --frozen runs. Both are scoped to install --frozen.The #4422 cell is removed by whichever of #4384/#4440 folds second (the integrator drops it at fold time).
Rebase onto v0.37.0 (P3, rule S15)
Rebased onto main as one commit,
0a1e1645. It keeps the original I9 change and its unit case. The merge commit and the four follow-up commits that only edited strict cells are dropped.install-frozen-parked-mcp-notice-per-phase(apm install --frozen prints the parked MCP server notice once per phase #4299) andinstall-frozen-parked-executables-notice-twice(install --frozen repeats the parked notice for packages with unapproved executables #4422). Both fixes are on main, whereKNOWN_OUTPUT_CELLSis empty. With the tightened I9,test_frozen_parked_executables_notice_lifecycle.pyandtest_frozen_remote_plugin_lifecycle.pypass with no cell, which confirms both fixes hold.tests/unit/scripts/test_lifecycle_evidence.py, all oftests/quality, both lifecycle files above and the full owner-rule mutation file: 1910 passed, 33 skipped. Ruff, format and the architecture linter are clean.Co-authored-bytrailer is kept.0a1e1645(32 pass, 10 skipping), including Integration and Lifecycle Smoke, which was this PR's landing condition.