Skip to content

Comments

fix temp directory used for car file#2794

Merged
gammazero merged 1 commit intomainfrom
fix-carstore-tempdir
Feb 23, 2026
Merged

fix temp directory used for car file#2794
gammazero merged 1 commit intomainfrom
fix-carstore-tempdir

Conversation

@gammazero
Copy link
Collaborator

A temporary CAR file is written the the global temp directory before it is compressed and set to a FileStore. If tests use a local FileStore, and configure the FileStore to write to the global temp directory, then removal of the temporary CAR file will also remove the CAR file written by the FileStore.

This is fixed by writing the temporary CAR file into its own randomly generated temporary directory. This prevents interfering with a local FileStore that writes to the global temp directory.

A temporary CAR file is written the the global temp directory before it is compressed and set to a FileStore. If tests use a local FileStore, and configure the FileStore to write to the global temp directory, then removal of the temporary CAR file will also remove the CAR file written by the FileStore.

This is fixed by writing the temporary CAR file into its own randomly generated temporary directory. This prevents interfering with a local FileStore that writes to the global temp directory.
@gammazero gammazero merged commit 82f9d00 into main Feb 23, 2026
6 checks passed
@gammazero gammazero deleted the fix-carstore-tempdir branch February 23, 2026 22:15
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