这是indexloc提供的服务,不要输入任何密码
Skip to content

Reduce potential collisions from Gold RNG #81792

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

Merged
merged 8 commits into from
May 7, 2021

Conversation

Piinks
Copy link
Contributor

@Piinks Piinks commented May 3, 2021

Maybe fixes #50121

Gold does not support threading, so we have a rng to randomize the directories Gold is being run out of in pre and post submit golden file testing in the framework. This currently may not be random enough. The flake reported in #50121 may be collisions caused by this.

This change tweaks the seed to not only use the clock, but also the swarming task id. Will continue monitor to see if flake persists.

@Piinks Piinks added a: tests "flutter test", flutter_test, or one of our tests c: contributor-productivity Team-specific productivity, code health, technical debt. framework flutter/packages/flutter repository. See also f: labels. team: flakes team-infra Owned by Infrastructure team team: presubmit flakes Presubmit flakes found labels May 3, 2021
@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.

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.

@google-cla google-cla bot added the cla: yes label May 3, 2021
@Hixie
Copy link
Contributor

Hixie commented May 3, 2021

test-exempt: part of a test

I guess you could test that the format is correct.

If what you're trying to do is create a unique directory on the local machine, though, why not use the createTempSync API?

@skia-gold
Copy link

Gold has detected about 403 untriaged digest(s) on patchset 4.
View them at https://flutter-gold.skia.org/cl/github/81792

@Piinks
Copy link
Contributor Author

Piinks commented May 6, 2021

Whoops. Ok I changed something that I shouldn't have, and will most likely need to tweak further. Marking WIP in the meantime.

@Piinks Piinks changed the title Reduce potential collisions in Gold RNG [WIP] Reduce potential collisions in Gold RNG May 6, 2021
@Piinks Piinks changed the title [WIP] Reduce potential collisions in Gold RNG Reduce potential collisions in Gold RNG May 6, 2021
@Piinks Piinks requested a review from goderbauer May 6, 2021 22:37
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@goderbauer
Copy link
Member

Looks like the checks are unhappy, though.

@Piinks Piinks changed the title Reduce potential collisions in Gold RNG Reduce potential collisions from Gold RNG May 7, 2021
@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@Piinks
Copy link
Contributor Author

Piinks commented May 7, 2021

The G testing failure is a flake. Setting to green.

@fluttergithubbot fluttergithubbot merged commit 4b65c05 into flutter:master May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: tests "flutter test", flutter_test, or one of our tests c: contributor-productivity Team-specific productivity, code health, technical debt. framework flutter/packages/flutter repository. See also f: labels. team: presubmit flakes Presubmit flakes found team-infra Owned by Infrastructure team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gold flake: gold client not ready
5 participants