-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 desugar dependencies deterministic #16859
Closed
mohamadk
wants to merge
1
commit into
bazelbuild:master
from
mohamadk:desugare_dependencies_are_not_deterministic
Closed
make desugar dependencies deterministic #16859
mohamadk
wants to merge
1
commit into
bazelbuild:master
from
mohamadk:desugare_dependencies_are_not_deterministic
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mohamadk
requested review from
ahumesky,
ted-xie and
kevin1e100
as code owners
November 28, 2022 07:17
sgowroji
added
awaiting-user-response
Awaiting a response from the author
team-Android
Issues for Android team
labels
Nov 28, 2022
mohamadk
force-pushed
the
desugare_dependencies_are_not_deterministic
branch
3 times, most recently
from
November 28, 2022 10:36
d383b5a
to
49e7027
Compare
sgowroji
added
awaiting-review
PR is awaiting review from an assigned reviewer
and removed
awaiting-user-response
Awaiting a response from the author
labels
Nov 28, 2022
ahumesky
reviewed
Nov 29, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
...ava/com/google/devtools/build/android/desugar/dependencies/DesugarDependencyInfoWrapper.java
Outdated
Show resolved
Hide resolved
mohamadk
force-pushed
the
desugare_dependencies_are_not_deterministic
branch
from
November 30, 2022 02:19
49e7027
to
8713a8e
Compare
ahumesky
reviewed
Nov 30, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
...s/android/java/com/google/devtools/build/android/desugar/dependencies/MetadataCollector.java
Outdated
Show resolved
Hide resolved
...s/android/java/com/google/devtools/build/android/desugar/dependencies/MetadataCollector.java
Outdated
Show resolved
Hide resolved
mohamadk
force-pushed
the
desugare_dependencies_are_not_deterministic
branch
from
November 30, 2022 03:55
8713a8e
to
45b6a80
Compare
desugar dependencies are added to the result jar file as metadata, this desugar dependency object contain few list that we found out the order of this list can be different in different build with same inputs, therefore final result will have a different hash and it cause cache miss in the builds solution is to make the lists in this object sorted. so for the same input we always get same output
mohamadk
force-pushed
the
desugare_dependencies_are_not_deterministic
branch
from
November 30, 2022 03:55
45b6a80
to
94b3d5e
Compare
thanks, I can start the import and internal review today |
ahumesky
pushed a commit
to ahumesky/bazel
that referenced
this pull request
Jan 13, 2023
Desugar dependencies are added to the result jar file as metadata, this desugar dependency object contains a few lists that we found out the order of this list can be different in different builds with the same inputs, therefore the final result will have a different hash and it cause cache miss in the builds solution is to make the lists in this object sorted. So for the same input, we always get the same output Closes bazelbuild#16859. PiperOrigin-RevId: 500842557 Change-Id: I051e74e7147d590fcfe5cda9731b8e012396bb65
hvadehra
pushed a commit
that referenced
this pull request
Feb 14, 2023
Desugar dependencies are added to the result jar file as metadata, this desugar dependency object contains a few lists that we found out the order of this list can be different in different builds with the same inputs, therefore the final result will have a different hash and it cause cache miss in the builds solution is to make the lists in this object sorted. So for the same input, we always get the same output Closes #16859. PiperOrigin-RevId: 500842557 Change-Id: I051e74e7147d590fcfe5cda9731b8e012396bb65
@bazel-io fork 6.1.0 |
ShreeM01
added a commit
that referenced
this pull request
Feb 28, 2023
Desugar dependencies are added to the result jar file as metadata, this desugar dependency object contains a few lists that we found out the order of this list can be different in different builds with the same inputs, therefore the final result will have a different hash and it cause cache miss in the builds solution is to make the lists in this object sorted. So for the same input, we always get the same output Closes #16859. PiperOrigin-RevId: 500842557 Change-Id: I051e74e7147d590fcfe5cda9731b8e012396bb65 Co-authored-by: mohamadk <[email protected]> Co-authored-by: kshyanashree <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
awaiting-review
PR is awaiting review from an assigned reviewer
team-Android
Issues for Android team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Desugar dependencies are added to the result jar file as metadata, this desugar dependency object contains a few lists that we found out the order of this list can be different in different builds with the same inputs, therefore the final result will have a different hash and it cause cache miss in the builds solution is to make the lists in this object sorted. So for the same input, we always get the same output