Skip to content

fix: hold mcp-suite test env locks until env guards drop#198

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
codex/fix-isolatedenv-drop-order
Jul 2, 2026
Merged

fix: hold mcp-suite test env locks until env guards drop#198
ScriptedAlchemy merged 1 commit into
masterfrom
codex/fix-isolatedenv-drop-order

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

Test plan

  • cargo fmt --all
  • cargo clippy --all-targets -- -D warnings
  • cargo test --test storage_suite branch_db_safety (5 passed)
  • cargo test --test mcp_suite mcp_handler (264 passed)

Same drop-order hazard flagged by the PR #178 review comment on
IsolatedEnv (fixed in 822d921): TestProject, TestEnv, and
CrossProjectMemoryEnv declared _env_lock before their HOME/global-DB
env guards, so the lock released before the guards restored env vars,
letting a waiting test's freshly installed env get clobbered.
@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9d04dd2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy ScriptedAlchemy merged commit 640daaf into master Jul 2, 2026
14 checks passed
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.

1 participant