Skip to content

fix(test): isolate tmpdir from parent git worktree and tighten directory security#1259

Merged
MiMoHardFather merged 1 commit into
mainfrom
test/isolate-tmpdir-from-git
Jun 24, 2026
Merged

fix(test): isolate tmpdir from parent git worktree and tighten directory security#1259
MiMoHardFather merged 1 commit into
mainfrom
test/isolate-tmpdir-from-git

Conversation

@MiMoHardFather

Copy link
Copy Markdown
Collaborator

Summary

  • Add outsideGit option to shared tmpdir() fixture helper, eliminating duplicated withTmpdirOutsideGit functions across test files
  • Refactor assertSafeDirectory to use prefix-based checks with resolved paths for stronger security
  • Fix checkpoint tests to use correct project ID (Instance.project.id) and memory file names (MEMORY.md)
  • Handle worktree bootstrap failure events in test listener
  • Restore previous spawnRef in actor-cancel tests via afterAll to avoid test pollution
  • Update SDK types

…ory security

- Add `outsideGit` option to shared `tmpdir()` fixture helper
- Extract duplicated `withTmpdirOutsideGit` helpers into fixture module
- Refactor `assertSafeDirectory` to use prefix-based checks with resolved paths
- Fix checkpoint tests to use correct project ID and memory file names
- Handle worktree bootstrap failure events in test listener
- Restore previous spawnRef in actor-cancel tests via afterAll
- Update SDK types
@MiMoHardFather MiMoHardFather merged commit ee4ddd2 into main Jun 24, 2026
2 of 3 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