-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Bring up new Windows start-up tests #109618
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
Bring up new Windows start-up tests #109618
Conversation
Leaving as a draft for now to see which tests fail. Once they pass, I will mark ready for review. |
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 for:
- the runner checkin for complex_layout
- the runner checkin for flutter_view
- the runner checkin for platform_view
- The task rename for the existing windows build test
- TESTOWNERS changes
Wait for @CaseyHillers feedback on whether the TODO issue link is required for new tests, and if so add a link. Question for @CaseyHillers -- if that is the case, is the existing desktop issue linked in the PR description sufficient or do we need a new link specific to the removal of the bringup tag?
Last thing - have you verified the platform_view app builds and runs successfully? If I recall correctly, that sample relies on the battery level plugin and I'm not sure whether or not it has a Windows implementation.
It builds and launches in Windows, with a sort of "press the button to increment this counter" demo, which works. There is a "continue in Android view" button that does not seem to do anything on Windows, but looking at its |
Sorry my brain completely blipped and was thinking of the platform channel example (I think under the The reason for the android reference is that we currently assume only iOS/Android in the code. This will need fixing. I believe you'll also need to do some tweaking of the native side to:
It may be enough work that it's worth doing in a separate PR if you'd like to do it now. |
It appears that we may not yet actually have Windows support for native platform views (see #31713 ), other than possibly starting from scratch directly with the win32 API, in which case, I am not aware if there is a way to add a new win32 view within the running Flutter app (which I believe is the analogous functionality to what this button does in Android and iOS), or how one would go about doing so, if there is a way. |
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.
ci yaml configs LGTM.
Both mobile tests involve a navigation change. This isn't a typical desktop UI idiom, though some instances of this exist such as |
/dev/devicelab/bin/tasks/hello_world_win_desktop__compile.dart @schectman @flutter/desktop | ||
/dev/devicelab/bin/tasks/flutter_gallery_win_desktop__compile.dart @schectman @flutter/desktop | ||
/dev/devicelab/bin/tasks/flutter_gallery_win_desktop__start_up.dart @schectman @flutter/desktop | ||
/dev/devicelab/bin/tasks/complex_layout_win_desktop__compile.dart @schectman @flutter/desktop | ||
/dev/devicelab/bin/tasks/complex_layout_win_desktop__start_up.dart @schectman @flutter/desktop | ||
/dev/devicelab/bin/tasks/flutter_view_win_desktop__start_up.dart @schectman @flutter/desktop | ||
/dev/devicelab/bin/tasks/platform_view_win_desktop__start_up.dart @schectman @flutter/desktop |
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.
@yaakovschectman Could you update the owner to github username instead of the ldap? Flake bot relies on github username to auto assign bugs/PRs.
Adds Windows-desktop versions of the following tests (suffixed with
_win_desktop
):flutter_gallery
compileflutter_gallery
startupcomplex_layout
compilecomplex_layout
startupflutter_view
startupplatform_view
startupAlso, renames
hello_world_windows__compile
tohello_world_win_desktop__compile
for better clarity and consistency with file naming conventions.As was necessary for these tests to run and pass, this PR also adds the functionality in
perf_tests.dart
to run startup tests on Windows.@flutter/desktop
is specified as the test owner team for each new test. All tests have the same configuration in.ci.yaml
except for their target and task names. Please check the YAML file looks properly set up for the new targets.Addresses issue #70027
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.