Repository navigation
Use "headless" flag in web tests for LUCI - #10075
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces support for running web integration tests headlessly. It adds a headless parameter to the TestFlutterApp constructor and passes the --web-run-headless flag when running on Chrome if headless mode is enabled. I have reviewed the changes and have no feedback to provide.
johnpryan
approved these changes
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work towards #9995
This LUCI log shows a failure for the integration tests on Linux: https://ci.chromium.org/ui/p/dart/builders/try/devtools-linux-release-x64-try/90?
The root cause is that when testing against a Flutter Web target (
DEVICE=flutter-web), DevTools launches a fixture test app using flutterrun --machine -d chrome --no-devtools, without the--web-run-headlessflag. On LUCI Linuxbots (Ubuntu 24.04 Noble running headlessly without
$DISPLAY), Chrome aborts immediately on launch because unprivileged user namespaces are restricted by AppArmor and--no-sandboxwas not supplied.Because
--web-run-headlesswas omitted:flutter_toolsattempted to start Chrome in GUI mode with sandboxing enabled.SWARMING_BOT_ID: luci-dart-try-noble-..., Ubuntu 24.04,SWARMING_HEADLESS: 1, no$DISPLAY), AppArmor blocks unprivileged user namespaces.