-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Fixed order dependency and removed no-shuffle-tag in build_ios_framew… #94699
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
Fixed order dependency and removed no-shuffle-tag in build_ios_framew… #94699
Conversation
packages/flutter_tools/test/commands.shard/hermetic/build_ios_framework_test.dart
Outdated
Show resolved
Hide resolved
|
Gold has detected about 1 new digest(s) on patchset 3. |
Piinks
left a comment
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.
Can you rebase this to resolve the current test failures? Thanks!
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.
Nit: revert
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.
Can you rebase this to resolve the current test failures? Thanks!
Sorry, you lost me 🙈. Do you want me to rebase, or revert and what commit are we talking about?
Can you be more specific please? 😊
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.
Oh sorry to be confusing. I meant to ask to revert any unnecessary formatting changes, and to rebase your PR with the latest from master.
The failing customer_testing shard tends to have issues as a PR gets older. Merging in updates from master don't work to resolve it when this happens, it requires rebasing. I hope this is a bit clearer. Let me know if it is not. :)
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! Now I get it =)
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.
Nice find!
248d54d to
62743f0
Compare
christopherfujino
left a comment
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.
LGTM
flutter#94699) * Fixed order dependency and removed no-shuffle-tag in build_ios_framework_test.dart * Removed trailing spaces in build_ios_framework_test.dart * Removed unnecessary formatting
Fixed order dependency and removed no-shuffle-tag in build_ios_framework_test.dart. Part of #85160.
Another one of these down. This one was a tad more tricky.
The Problem
The tests were failing when using --test-randomize-ordering-seed=1000, and most other seeds as well.
The first three tests in this file set the Cache.flutterRoot variable. This is done by default by the testUsingContext method.
When randomizing the test order the method setUp on line 143 runs cache.getLicenseFile() without Cache.flutterRoot being set. The method getLicenseFile is dependent on flutterRoot being set, so this makes all test in that group fail.
The Solution
Set the Cache.flutterRoot variable, if not set, before calling the method cache.getLicenseFile().
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.