Skip to content

Commit

Permalink
Try disable GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll committed Sep 5, 2024
1 parent 97af507 commit 0e329aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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

0 comments on commit 0e329aa

Please sign in to comment.