Skip to content

Honor SOURCE_DATE_EPOCH when building the SVD archive - #2081

Open
Solarboaters wants to merge 1 commit into
pyocd:developfrom
Solarboaters:fix/reproducible-svd-zip
Open

Solarboaters wants to merge 1 commit into
pyocd:developfrom
Solarboaters:fix/reproducible-svd-zip

Conversation

@Solarboaters

Copy link
Copy Markdown

The bundled svd_data.zip embeds source-file modification times, so identical inputs produce different archives across checkouts. Honor SOURCE_DATE_EPOCH using UTC ZIP timestamps, with the ZIP format's 1980 lower bound, consistent file permissions and the existing sorted member order. Without the variable, retain the existing timestamp behavior.

Fixes #1651. Follows the reproducible-builds ZIP guidance.

Validation against develop 5d22727, Linux/Python 3.12: run the complete production setup.py in a minimal package fixture twice with different source timestamps and time zones. Both reproducibility cases fail before/pass after, including epoch 0; a no-variable control passes in both. All three tests pass, archive contents are intact, and the full unit suite reports 1,110 passed, 41 skipped. Tests exercise archive generation, not reproducibility of every file in a complete wheel. No hardware required. AI-assisted implementation and validation.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

This branch has not been deployed

No deployments
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