Skip to content

test: restore permissions before removing temp dirs (fixes red CI on main) - #6

Merged
ShambhaviCode merged 1 commit into
mainfrom
fix/storage-test-cleanup
Sep 26, 2026
Merged

ShambhaviCode merged 1 commit into
mainfrom
fix/storage-test-cleanup

Conversation

@ShambhaviCode

Copy link
Copy Markdown
Owner

Problem

The Tests workflow on main fails on Linux (run 36224723422):

✖ falls back when the app directory is genuinely read-only (POSIX)
  Error: EACCES, Permission denied: /tmp/veil-app-7B3GNH
      at Object.rmSync ... at TestContext.<anonymous> (test/storage.test.js:50:40)

The test's assertions pass: the server does fall back to the temp directory when its app dir is chmod 555. The failure is in the per-test cleanup, which can't delete the read-only dir. An earlier cleanup refactor in #1 dropped the step that restored permissions. This test is skipped on Windows, which is why it wasn't caught locally.

Fix

Before deleting each temp dir, chmod it back to 0755 (non-Windows only). Test-only change; no runtime code touched.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Sep 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
veil Ready Ready Preview Sep 26, 2026 6:48am UTC

@ShambhaviCode
ShambhaviCode merged commit 0b85801 into main Sep 26, 2026
5 checks passed
@ShambhaviCode
ShambhaviCode deleted the fix/storage-test-cleanup branch September 26, 2026 06:48
The POSIX storage test chmods its temp app dir to 555 to simulate a
read-only deployment. The per-test cleanup then failed to delete it
(EACCES on rmSync), which failed the test on Linux CI even though its
assertions passed. Restore 0755 before removing each temp dir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — 75fd1182 Deployed Sep 26, 2026 by vercel[bot]
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