Skip to content

revert: #4866 (main red c22ccbe8: test_a_retained_hook_claim_does_not_keep_its_mcp_server) - #4950

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
revert-4866-danielmeppiel-4851-sync-failure-claims
Nov 23, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
revert-4866-danielmeppiel-4851-sync-failure-claims

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Reverts #4866 (merge c22ccbe). Main is red on Linux x86_64, Linux arm64 and Windows (CI/CD run 45138789477): tests/unit/test_uninstall_hook_sync_failure_claims.py::test_a_retained_hook_claim_does_not_keep_its_mcp_server raises FileNotFoundError reading app/.mcp.json. #4862 (empty-config-residue), which landed just before #4866, removes a .mcp.json left with no servers, and #4866's new test still reads the file.

Regent ruling: revert now to restore green main. #4866 re-lands as a normal PR with the forward fix (a missing .mcp.json means no servers) and a cell covering the clash.

Refs #4851, #4896

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 block the revert intended to address Linux and Windows CI failures.

No open issues 🎉

What changed in this PR

Reverts #4866 to address Linux and Windows CI failures caused by a test expecting .mcp.json to remain after #4862's empty-config cleanup. The hook-claim fix is intended to return in a separate PR with an assertion that accepts a missing config and coverage for this interaction.

Changes:

  • Restores uninstall behavior from before #4866, removing late-failure lock-claim recovery.
  • Removes supporting local-path and replacement-parent helpers and their architecture checks.
  • Removes the reverted fix's tests, bug-ledger record, and changelog fragment.
File Description
tests/​unit/​test_uninstall_hook_sync_failure_claims.py Deletes the hook-claim regression suite, including the failing MCP assertion.
tests/​unit/​deps/​test_replacement_binding.py Removes the orphan-root anchoring test.
tests/​fixtures/​lifecycle_bug_ledger/​bugs/​4851.json Removes the record marking #4851 fixed.
src/​apm_cli/​models/​dependency/​replacement.py Removes replacement-request root anchoring.
src/​apm_cli/​deps/​path_anchoring.py Removes retained local-claim path rebasing.
src/​apm_cli/​commands/​uninstall/​lockfile_state.py Removes failed-claim restoration and graph repair.
src/​apm_cli/​commands/​uninstall/​cli.py Reverts removed-row recovery and path-safety warning handling.
scripts/​architecture_linter/​checks/​contracts_dependency_replacements.py Removes checks specific to reverted claim recovery.
changelog.d/​4866.fixed.md Deletes the reverted fix's release note.

Review effort: Balanced

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 3d03dc9 into main Nov 23, 2026
37 of 38 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the revert-4866-danielmeppiel-4851-sync-failure-claims branch November 23, 2026 08:43
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 23, 2026
Picks up the #4950 revert of #4866, whose test failed on this PR's merge commit.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Gregory (gdelpu) pushed a commit to gdelpu/apm that referenced this pull request Nov 23, 2026
… file sync cannot remove

Reverts 970f2a6 (the microsoft#4950 revert), restoring microsoft#4866 (microsoft#4851).

Co-authored-by: copilot-swe-agent[bot] <[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.

2 participants