Skip to content

fix(manifest): clean up import temp zip and use tmpdir#164

Open
codyfrisch wants to merge 1 commit intomondaycom:masterfrom
codyfrisch:fix/manifest-import-temp-zip-cleanup
Open

fix(manifest): clean up import temp zip and use tmpdir#164
codyfrisch wants to merge 1 commit intomondaycom:masterfrom
codyfrisch:fix/manifest-import-temp-zip-cleanup

Conversation

@codyfrisch
Copy link
Copy Markdown

Summary

  • compressFilesToZip now writes to os.tmpdir() as mapps-compress-<uuid>.zip instead of a fixed temp.zip in the process cwd (avoids leftover files and concurrent clashes).
  • uploadManifestTsk removes the zip path in finally (best-effort), then the existing .processed manifest cleanup.

Tests

  • uploadManifestTsk: assert unlink runs for both the zip path and .processed manifest on success and when upload fails after the zip is created.

Closes #163

Made with Cursor

- Write compressFilesToZip output under os.tmpdir() with a unique name
  instead of cwd temp.zip (avoids leaks and concurrent clashes).
- uploadManifestTsk always unlinks the zip in finally (best-effort).
- Add unit tests for uploadManifestTsk cleanup on success and failure.

Made-with: Cursor
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.

Manifest import leaves temp.zip in cwd; zip path should be temp + always cleaned up

1 participant