Skip to content

test(lifecycle): #4299 cell owns the repeated transitive parked-MCP notice - #4386

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-t3-frozen-plugin-red
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-t3-frozen-plugin-red

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

tests/integration/test_frozen_remote_plugin_lifecycle.py::test_frozen_whole_plugin_cold_consumer[True-True-True] is red on main (b9ba827). The output oracle reports:

I9: stdout repeats a diagnostic: "[!] Parked MCP server 'plugin-server' from transitive package gitlab.example.invalid/frozen/plugin (self-defined, not approved)"

This is the open defect #4299 (apm install --frozen prints the parked MCP server notice once per phase): every MCP view build re-emits the park (src/apm_cli/integration/mcp_config_view.py, parked_mcp_message). The #4299 known cell matched only the : denied variant. This change widens that one cell in tests/utils/lifecycle_evidence.py:

  • the message covers : denied and from transitive package;
  • the output shape now requires the same top-level park line twice (the defect itself), so a run that prints the notice once is never covered.

One unit case: the repeat is owned, a single notice passes, and without the cell the repeat fails I9. It fails without the change.

The product fix for #4299 is in flight in #4255 (H2b, "Fixes #4299"). When it lands, this cell stops matching and must be removed in that PR.

Issue and approved scope

Issue: Refs #4113, Refs #4299

Human scope-approval comment: requested by the 0.37 Stream T lead (main red triage).

Does this PR complete the issue, or what remains? It is partial: an oracle cell only. #4255 completes #4299.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Results (local, off main b9ba827):

  • test_frozen_whole_plugin_cold_consumer: 8 passed (it was 1 failed).
  • tests/unit/scripts/test_lifecycle_evidence.py: 207 passed. The new case fails without the change.
  • ruff check / format: clean.

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

@danielmeppiel Daniel Meppiel (danielmeppiel) added this to the 0.37.0 milestone Nov 20, 2026
Copilot AI balanced review requested due to automatic review settings November 20, 2026 15:44

Copy link
Copy Markdown
Collaborator Author

Superseded by #4384, which widens the same #4299 cell (both notice variants, any indentation) and covers test_frozen_whole_plugin_cold_consumer[True-True-True]. Closing to keep one writer on that cell.

Copy link
Copy Markdown
Collaborator Author

Reopened: this lands first to clear the red test on main; #4384 rebases on it and takes the broader version of the cell.

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 046c0a7 into main Nov 20, 2026
36 of 59 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-t3-frozen-plugin-red branch November 20, 2026 15:47

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.

🟡 Changes recommended

The lifecycle check skips strict failure detection for a single-notice reproducer and mishandles wrapped notices, potentially missing duplicates or rejecting distinct output.

2 open issues
What changed in this PR

This test-only PR extends the lifecycle output oracle's #4299 exemption to repeated transitive parked-MCP notices. It addresses the frozen cold-consumer test failure while leaving the product fix to #4255.

Changes:

  • Broadens the known cell to cover denied and unapproved transitive MCP notices, requiring two identical top-level lines.
  • Adds a unit case covering owned repetition, a single notice, and failure without the exemption.
File Description
tests/​utils/​lifecycle_evidence.py Updates the #4299 known-cell message and output patterns.
tests/​unit/​scripts/​test_lifecycle_evidence.py Adds coverage for the transitive parked-MCP notice variant.

Review effort: Balanced

Comment on lines +472 to +473
r"^(\[!\] Parked MCP server [^\n]*?(?:: denied|from transitive package)[^\n]*)$"
r".*^\1$"
Comment on lines +472 to +473
r"^(\[!\] Parked MCP server [^\n]*?(?:: denied|from transitive package)[^\n]*)$"
r".*^\1$"
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Resolve tests/utils/lifecycle_evidence.py: the #4299 strict cell (widened by
#4386) stays deleted because this PR fixes #4299; the #4386 unit test now
asserts the transitive parked-MCP repeat is a plain I9 failure.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
…ny indentation

Superset of #4386's top-level shape; needed once I9 compares [!] across
indentation. test_frozen_remote_plugin_lifecycle.py: 31 passed.

Co-authored-by: Copilot App <[email protected]>
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.

apm install --frozen prints the parked MCP server notice once per phase

2 participants