Fixed order dependency and removed no-shuffle-tag in build_ios_framew…#94699
Fixed order dependency and removed no-shuffle-tag in build_ios_framew…#94699Swiftaxe merged 3 commits intoflutter:masterfrom
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.
Can you rebase this to resolve the current test failures? Thanks!
There was a problem hiding this comment.
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.
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.
Thank you! Now I get it =)
248d54d to
62743f0
Compare
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.