Skip to content

Scramble order of operations of flutter.gradle#111747

Merged
auto-submit[bot] merged 2 commits intoflutter:masterfrom
GaryQian:scramble
Oct 10, 2022
Merged

Scramble order of operations of flutter.gradle#111747
auto-submit[bot] merged 2 commits intoflutter:masterfrom
GaryQian:scramble

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Sep 16, 2022

#103230 sees strange Comparison method violates its general contract errors within gradle. The line pointed to does not seem to be able to cause this unless it is internally within gradle/groovy assignment. This is a rare flake with no clear cause.

This PR simply harmlessly shifts the bits around to see if it helps in reducing flake rate.

This does not make any logical changes to the script.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 16, 2022
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@stuartmorgan-g
Copy link
Contributor

The line pointed to does not seem to be able to cause this unless it is internally within gradle/groovy assignment.

Maybe I'm misremembering, but wasn't it pointing to a line that was adding to a collection? That could certainly involve a sort operation.

@christopherfujino
Copy link
Contributor

@stuartmorgan should we try this? I have no context on if it could help.

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

I'm okay with trying it, but I don't really see how it could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants