Skip to content

Test extraction path isolation for dotted archive names - #285

Open
Shubham-Padkonde wants to merge 1 commit into
linkedin:mainfrom
Shubham-Padkonde:test/versioned-archive-cache-isolation
Open

Shubham-Padkonde wants to merge 1 commit into
linkedin:mainfrom
Shubham-Padkonde:test/versioned-archive-cache-isolation

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Closes #203 by adding the regression coverage requested after the extraction-path fix was merged.

The test creates and extracts two real archives named with dotted versions, both with and without a .pyz extension. It checks that:

  • Each cache directory retains the full archive filename and build ID.
  • Extraction uses the corresponding temporary directory (the wrapped method still performs real extraction).
  • Each archive leaves its own lock file, no temporary directory remains, and both extracted payloads are intact.

Both parameter cases pass on current main. Restoring .stem in cache_path makes both fail; independently restoring .stem in the temporary/lock path calculation also makes both fail. Production code is unchanged.

Validation: full Linux Python 3.11.15 suite 61 passed; mypy passes for all 12 source files; full flake8 passes. No concurrency stress-test or Windows test run is claimed.

Prepared with Codex assistance.

Closes linkedin#203. Prepared with Codex assistance.

Signed-off-by: Shubham Padkonde <shubhampadkonde12@gmail.com>
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.

different zipapps sharing the same .lock file during extraction due to dots in the filename

1 participant