Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SourceBundle writer deterministic #778

Merged
merged 2 commits into from
Mar 28, 2023
Merged

Make SourceBundle writer deterministic #778

merged 2 commits into from
Mar 28, 2023

Conversation

Swatinem
Copy link
Member

The default ZipWriter/FileOptions is using the current timestamp depending on feature flags. Now we explicitly default to a deterministic timestamp for files.

I verified locally that this fixes getsentry/sentry-cli#831 🎉

The default ZipWriter/FileOptions is using the current timestamp depending on feature flags. Now we explicitly default to a deterministic timestamp for files.
@Swatinem Swatinem requested a review from a team March 28, 2023 09:26
@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #778 (18cc4fe) into master (428f05f) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 18cc4fe differs from pull request most recent head 4b7aa1e. Consider uploading reports for the commit 4b7aa1e to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #778      +/-   ##
==========================================
+ Coverage   74.68%   74.70%   +0.01%     
==========================================
  Files          71       71              
  Lines       15407    15416       +9     
==========================================
+ Hits        11507    11516       +9     
  Misses       3900     3900              

@Swatinem Swatinem enabled auto-merge (squash) March 28, 2023 09:36
Copy link
Contributor

@kamilogorek kamilogorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥲

@Swatinem Swatinem merged commit 657800f into master Mar 28, 2023
@Swatinem Swatinem deleted the repro-sourcebundle branch March 28, 2023 10:27
Swatinem added a commit to getsentry/sentry-cli that referenced this pull request Mar 30, 2023
This avoids uploading empty (but still unique until we pull in getsentry/symbolic#778) artifact / release bundles if all the source maps included in them have already been uploaded before.
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.

--include-sources is re-uploading unconditionally
2 participants