-
Notifications
You must be signed in to change notification settings - Fork 344
Enable all bots on Windows #8864
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
Conversation
(Rebased, this is all green now) |
tool/ci/package_tests.sh
Outdated
|
||
pushd $DEVTOOLS_DIR/packages/devtools_extensions | ||
echo `pwd` | ||
flutter test test/*_test.dart | ||
flutter test test/web --platform chrome | ||
# Skip this on Windows because `flutter test --platform chrome` | ||
# appears to hand there. |
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: typo 'hang'
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.
Fixed, thanks!
tool/ci/setup.sh
Outdated
@@ -22,7 +21,6 @@ function flutter { | |||
} | |||
export -f flutter | |||
|
|||
# TODO: Also support windows on github actions. | |||
if [[ $RUNNER_OS == "Windows" ]]; then |
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.
is this if block necessary? It doesn't look like we manually install google chrome for the ubuntu OS. Looking at the comment, this is linking to an article from travis-ci, which we haven't used in 4 or 5 years.
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.
Good point - according to https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md#browsers-and-drivers it's already installed, so this shouldn't be required. I've removed it - if the bots turn red I'll investigate.
Edit: it stayed green :-)
This enables Windows bots on GitHub Actions by:
matrix
to each bot that includeswindows-latest
(note: the existing bots seem to mostly run on Linux includingdevtools-extensions-integration-test
butdevtools-app-integration-test
runs on macOS and I'm not sure why the distinction... I added Windows both both anyway)shell: bash
as a default so that the same scripts work on Windows bots (the GitHub runners do have a Bash version on Windows, but it's not the default shell)flutter.bat
when spawning Flutter on Windows (it would be nice to centralise this, but the tests are spread across different packages so I just left it inline for now)flutter test --platform chrome
for devtools_extensions test because it seems broken (I've filedflutter test --platform chrome
hangs on "Loading x_test.dart" on Windows flutter#162798)This will slow down the bots on all PRs. We could reduce which ones run on Windows and/or only run them on a schedule, though these obviously remove some of the benefits of catching potential Windows issues earlier.
Note: There will still be some failures on this PR until #8846 is merged. I didn't include that in this PR to avoid confusing the review, but I will merge/rebase once that lands.(Rebased)