Repository navigation
fix(frozen): report a parked MCP server once - #4440
Merged
Daniel Meppiel (danielmeppiel) merged 4 commits intoNov 21, 2026
Merged
Conversation
The pre-pipeline and hydrated --frozen checks compute MCP drift without printing parked servers; the MCP phase is the one printer, so a server parked for unapproved executables is reported once. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 17:39
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…d notices (#4422) Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Passing logger=None suppresses cold-cache verbose diagnostics along with parked notices, breaking two existing tests; the logging behavior or tests must be reconciled while preserving cold-cache acceptance checks.
No open issues 🎉
What changed in this PR
This PR addresses #4422 by making the MCP phase the single source of parked-server notices during frozen installs.
Changes:
- Suppresses logging in both frozen MCP drift checks to avoid duplicate notices.
- Adds an installed-CLI regression test asserting one notice for normal and frozen installs.
- Records the fix in the lifecycle bug ledger and changelog.
| File | Description |
|---|---|
tests/integration/test_frozen_parked_executables_notice_lifecycle.py |
Checks that an unapproved MCP server is reported exactly once per install. |
tests/fixtures/lifecycle_bug_ledger.json |
Links #4422 to its regression test. |
src/apm_cli/install/service.py |
Disables logging in preflight and hydrated frozen MCP checks. |
CHANGELOG.md |
Documents the duplicate-notice fix. |
Review effort: Balanced
…-notice printer (#4422) Keeps install/service.py within its LOC budget. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
#4255) #4255 passed logger=None to the pre-pipeline admission check to avoid a duplicate parked notice; #4440 owns that with without_parked_notices(), which drops only parked notices and keeps the cold-cache verbose log that test_frozen expects. Verified by #4440's owner (bcb09e24): the notice prints exactly once and both unit tests pass. Co-authored-by: Copilot App <[email protected]>
5 of 10 tasks
Daniel Meppiel (danielmeppiel)
deleted the
fix/frozen-exec-park-notice-4422
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.
Description
apm install --frozenprintedParked MCP server '<srv>' (<pkg>): executables not approvedtwice. The hydrated frozen MCP check printed it at top level, then the MCP phase printed it again inside the package block. Both frozen MCP checks (the pre-pipeline check and the hydrated check ininstall/service.py) now pass a logger view (without_parked_notices, next toparked_mcp_messageinintegration/mcp_config_view.py) that drops onlyParked MCP servernotices; every other line (verbose cold-cache restoration, warnings) is kept. The MCP phase is the single printer of parked servers. #4255 passeslogger=Noneon the pre-pipeline line for #4299; the two overlap on that one argument, and either resolution keeps the notice single.src/apm_cli/integration/mcp_config_view.py,src/apm_cli/install/service.pywithout_parked_notices(logger)beside the parked-notice printer; passed to_frozen_mcp_reasonsinenforce_frozenandenforce_hydrated_mcp.tests/integration/test_frozen_parked_executables_notice_lifecycle.pyexecutables: {allow: {}});install, theninstall --frozen; the notice appears exactly once in each.CHANGELOG.mdFixedline.Failing before (fix reverted): the frozen run printed the notice twice (assertion
count == 1fails). After: 1 passed.Note
T1's #4384 adds a strict I9 cell
install-frozen-parked-executables-notice-twicekeyed to #4422; it has not landed. Whichever lands second must drop that cell. Coordinated via the H lead.Issue and approved scope
Fixes #4422 (scope record: #4422 (comment))
Does this PR complete the issue, or what remains? It completes it.
Type of change
Testing
Changelog
### Fixedunder## [Unreleased].Spec conformance (OpenAPM v0.1)
apm-spec-waiver: diagnostic de-duplication only; no OpenAPM-observable behaviour change
Co-authored-by: Copilot [email protected]