Skip to content
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

Fix broken integration tests #8299

Merged
merged 18 commits into from
Sep 6, 2024
Merged
Prev Previous commit
Next Next commit
Try disable GPU
  • Loading branch information
kenzieschmoll committed Sep 5, 2024
commit 0e329aa73b35fe9135e783cb1a64cb907aa1f8ca
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ class IntegrationTestRunner with IOMixin {
'--target=$testTarget',
'-d',
headless ? 'web-server' : 'chrome',
// --disable-gpu speeds up tests that use ChromeDriver when run on
// GitHub Actions. See https://github.com/flutter/devtools/issues/8301.
'--web-browser-flag=--disable-gpu',
for (final arg in dartDefineArgs) '--dart-define=$arg',
'--browser-dimension=4000,4000',
];
debugLog('> flutter ${flutterDriveArgs.join(' ')}');
final process = await Process.start('flutter', flutterDriveArgs);
Expand Down
6 changes: 3 additions & 3 deletions tool/ci/bots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ completed). Download these goldens and update them in the codebase to apply the
# TODO(https://github.com/flutter/devtools/issues/8301): run these tests with the
# --headless flag once the issue with Chrome and chromedriver is resolved.
if [ "$DEVICE" = "flutter" ]; then
dart run integration_test/run_tests.dart --shard="$SHARD"
dart run integration_test/run_tests.dart --headless --shard="$SHARD"
elif [ "$DEVICE" = "flutter-web" ]; then
dart run integration_test/run_tests.dart --test-app-device=chrome --shard="$SHARD"
dart run integration_test/run_tests.dart --headless --test-app-device=chrome --shard="$SHARD"
elif [ "$DEVICE" = "dart-cli" ]; then
dart run integration_test/run_tests.dart --test-app-device=cli --shard="$SHARD"
dart run integration_test/run_tests.dart --headless --test-app-device=cli --shard="$SHARD"
fi
elif [ "$DEVTOOLS_PACKAGE" = "devtools_extensions" ]; then
pushd $DEVTOOLS_DIR/packages/devtools_extensions
Expand Down
Loading