-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
[macOS] Add run release test in devicelab #100526
Conversation
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. |
Adds a test that invokes flutter run in release mode on macOS desktop, waits for successful launch and the flutter command list, then sends the 'q' command to quit the running app. This adds an integration test for flutter#100504. Issue: flutter#100348
7271819
to
16e4fae
Compare
/// Basic launch test for desktop operating systems. | ||
void main() { | ||
task(() async { | ||
deviceOperatingSystem = DeviceOperatingSystem.macos; |
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.
You don't have to do it in this PR but can you also replace this deviceIdOverride
hack with your nicer DeviceOperatingSystem.macos
fix?
await task(createHotModeTest(deviceIdOverride: 'macos')); |
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 for spotting this. Looks like we do the same in the Windows/Linux equivalents too. I'll send one patch that does all three and adds the Linux DeviceOperatingSystem if it doesn't exist (the Windows one definitely does).
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.
warning � Missing case clause for 'macos' � dev/devicelab/lib/tasks/perf_tests.dart:585:7 � missing_enum_constant_in_switch
warning � Missing case clause for 'macos' � dev/devicelab/lib/tasks/perf_tests.dart:705:7 � missing_enum_constant_in_switch
warning � Missing case clause for 'macos' � dev/devicelab/lib/tasks/perf_tests.dart:1299:5 � missing_enum_constant_in_switch
error � The non-nullable local variable 'releaseSizeInBytes' must be assigned before it can be used � dev/devicelab/lib/tasks/perf_tests.dart:1363:29 � not_assigned_potentially_non_nullable_local_variable
warning � Missing case clause for 'macos' � dev/devicelab/lib/tasks/perf_tests.dart:1378:5 � missing_enum_constant_in_switch
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.
Config LGTM with nits.
test-exempt: is a test |
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, thanks!
This is failing: macOS builds spew so much to stderr... |
In the run_release_test_macos integration test that verifies that a release build of an app can be launched (and quit), xcodebuild from the Xcode install on the macOS bots emits a few info messages about Simulator SDK versions that are irrelevant to the functioning of this test. Ignore these instead of failing the test if they occur. Related: flutter#100526 Issue: flutter#100348 (fix) Issue: flutter#97978 (partial fix) Issue: flutter#97977 (partial fix) Umbrella issue: flutter#60113
In the run_release_test_macos integration test that verifies that a release build of an app can be launched (and quit), xcodebuild from the Xcode install on the macOS bots emits a few info messages about Simulator SDK versions that are irrelevant to the functioning of this test. Ignore these instead of failing the test if they occur. Related: #100526 Issue: #100348 (fix) Issue: #97978 (partial fix) Issue: #97977 (partial fix) Umbrella issue: #60113
Workaround for the failure landed in #100591. |
Adds a test that invokes flutter run in release mode on macOS desktop,
waits for successful launch and the flutter command list, then sends the
'q' command to quit the running app.
This adds an integration test for #100504.
Issue: #100348 (fix)
Issue: #97978 (partial fix)
Issue: #97977 (partial fix)
Umbrella issue: #60113
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.