Skip to content

fix(release): make Filamentra source ZIP independent of generated caches - #13

Merged
DiegoV71 merged 2 commits into
mainfrom
fix/release-package-excludes-generated-cache-20261107
Nov 7, 2026
Merged

DiegoV71 merged 2 commits into
mainfrom
fix/release-package-excludes-generated-cache-20261107

Conversation

@DiegoV71

@DiegoV71 DiegoV71 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Problem

The current source ZIP builder traverses every file in filamentra/ after CI tests import the package. Python __pycache__ and generated .pyc may be published, making outputs depend on interpreter state instead of repository content.

Change

  • Exclude bytecode, tool caches and .DS_Store from shipped ZIP contents; preserve other potential runtime assets.
  • Keep the existing explicit symlink rejection.
  • Add a regression test verifying identical ZIP bytes and SHA-256 before and after generated caches appear.

Release impact

This PR intentionally changes scripts/build_release.py, which is a release-eligible input. Merging into main should trigger an automatic GitVersion-based Filamentra source release, provided checks pass. Do not create a tag manually; inspect the resulting ZIP for cache files and release metadata.

@DiegoV71
DiegoV71 merged commit 22c550f into main Nov 7, 2026
9 checks passed
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