Skip to content

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

Merged
merged 2 commits into from
Feb 11, 2025
Merged

Enable all bots on Windows #8864

merged 2 commits into from
Feb 11, 2025

Conversation

DanTup
Copy link
Contributor

@DanTup DanTup commented Feb 6, 2025

This enables Windows bots on GitHub Actions by:

  • Adding matrix to each bot that includes windows-latest (note: the existing bots seem to mostly run on Linux including devtools-extensions-integration-test but devtools-app-integration-test runs on macOS and I'm not sure why the distinction... I added Windows both both anyway)
  • Setting 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)
  • Using 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)
  • Skipping a memory_footprint test because it always fails on Windows (see comment against code for the failure)
  • Skipping flutter test --platform chrome for devtools_extensions test because it seems broken (I've filed flutter 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)

@DanTup
Copy link
Contributor Author

DanTup commented Feb 7, 2025

(Rebased, this is all green now)


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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo 'hang'

Copy link
Contributor Author

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
Copy link
Member

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.

Copy link
Contributor Author

@DanTup DanTup Feb 8, 2025

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 :-)

@DanTup DanTup merged commit bda9a0e into flutter:master Feb 11, 2025
41 checks passed
@DanTup DanTup deleted the windows-bots branch February 11, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants