Skip to content

fix(tests): isolate encrypted store per test file#25717

Merged
siddseethepalli merged 1 commit into
mainfrom
do/fix-email-cli-platform-check
Apr 15, 2026
Merged

fix(tests): isolate encrypted store per test file#25717
siddseethepalli merged 1 commit into
mainfrom
do/fix-email-cli-platform-check

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented Apr 15, 2026

Summary

  • Parallel test processes shared ~/.vellum/protected/keys.enc, racing on sets/deletes and flaking six email CLI tests in CI (email-download, email-list, email-send, email-unregister, email-attachment, email-status).
  • test-preload.ts now calls _setStorePath to point at <per-file-temp-workspace>/keys.enc, giving each test file its own isolated encrypted store while still honoring explicit _setStorePath overrides in tests like credential-vault.test.ts.

Original prompt

--yolo Fix the specific CI issue in this failing job only: https://github.com/vellum-ai/vellum-assistant/actions/runs/24434800483/job/71386643819


Open with Devin

… races

Parallel test processes were all reading/writing `~/.vellum/protected/keys.enc`,
causing six email CLI tests to fail intermittently in CI. The "missing platform
credentials returns error" tests delete the API key and expect the credential
check to fire, but a parallel test file that sets the key between the delete
and the command's fetch leaves the key in place — the command then attempts
an unmocked HTTP call and fails with "No mock matched".

Override the store path in test-preload.ts so each test file's bun process
gets its own keys.enc under the per-file temp workspace.
@siddseethepalli siddseethepalli merged commit 4c5c546 into main Apr 15, 2026
11 checks passed
@siddseethepalli siddseethepalli deleted the do/fix-email-cli-platform-check branch April 15, 2026 03:38
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Jasonnnz pushed a commit that referenced this pull request Apr 15, 2026
… races (#25717)

Parallel test processes were all reading/writing `~/.vellum/protected/keys.enc`,
causing six email CLI tests to fail intermittently in CI. The "missing platform
credentials returns error" tests delete the API key and expect the credential
check to fire, but a parallel test file that sets the key between the delete
and the command's fetch leaves the key in place — the command then attempts
an unmocked HTTP call and fails with "No mock matched".

Override the store path in test-preload.ts so each test file's bun process
gets its own keys.enc under the per-file temp workspace.
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