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

[1.x] Make reproducibility toggleable for ConsistentAnalysisFormat #1479

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

Friendseeker
Copy link
Member

@Friendseeker Friendseeker commented Oct 21, 2024

c.c. sbt/sbt#7790

This PR makes reproducibility of ConsistentAnalysisFormat toggle-able via new flag reproducible to preserve timestamp information needed for Zinc to conduct certain invalidation decisions. Users who uses reproducible build tool can choose to set reproducible flag on (at the expense of less accurate invalidation), and most users who don't use reproducible build tool can set reproducible off for more accurate invalidation.

Build tools using Zinc may need to surface the flag to users, and are encouraged to set reproducible = false as default option.

@Friendseeker Friendseeker changed the title [1.x] Make reproducibility toggle-able for ConsistentAnalysisFormat [1.x] Make reproducibility toggleable for ConsistentAnalysisFormat Oct 21, 2024
@Friendseeker Friendseeker requested a review from eed3si9n October 21, 2024 01:46
@Friendseeker Friendseeker reopened this Nov 17, 2024
@Friendseeker Friendseeker force-pushed the reproducible-toggleable branch from b92fd51 to 653c45c Compare November 17, 2024 08:09
@Friendseeker
Copy link
Member Author

Reopening the PR, following discussion in #1496 (comment)

@ephemerist

Comment on lines +211 to +212
if (reproducible) m.mapValues(_.withCompilationTimestamp(DefaultCompilationTimestamp))
else m
Copy link
Member

Choose a reason for hiding this comment

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

so semantically, this is the only change, and the rest is rename?

Copy link
Contributor

Choose a reason for hiding this comment

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

@eed3si9n could we have a review of this one please?

Copy link
Member

Choose a reason for hiding this comment

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

LGTM.

FYI @szeiger we are gonna break the hermeticity for not sorted version.

@eed3si9n eed3si9n merged commit abb7eed into sbt:1.10.x Nov 24, 2024
9 checks passed
@Friendseeker Friendseeker deleted the reproducible-toggleable branch November 24, 2024 06:19
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.

3 participants