Skip to content

Retry getting tabs in chrome launcher on ConnectionException#104218

Merged
fluttergithubbot merged 8 commits intoflutter:masterfrom
annagrin:annagrin/web-tests-flakes
May 26, 2022
Merged

Retry getting tabs in chrome launcher on ConnectionException#104218
fluttergithubbot merged 8 commits intoflutter:masterfrom
annagrin:annagrin/web-tests-flakes

Conversation

@annagrin
Copy link
Contributor

@annagrin annagrin commented May 20, 2022

Add more information and potentially resolve web_tool_tests flakes caused by failure to get a tab list from Chrome on launch.

  • run flutter update-packages --force-upgrade to bring new package:webkit_inspection_protocol.dart and more.
  • update ChromeLauncher to pass a retryFor duration so we try getting tabs for a couple of seconds.
  • make ChromeLauncher.connect API available for testing.
  • add tests for ChromeLauncher.connect.

Closes: #94886

Pre-launch Checklist

  • [v] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • [v] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • [v] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • [v] I signed the [CLA].
  • [v] I listed at least one issue that this PR fixes in the description above.
  • [v] I updated/added relevant documentation (doc comments with ///).
  • [v] I added new tests to check the change I am making, or this PR is [test-exempt].
  • [v] All existing and new tests are passing.

@annagrin annagrin requested a review from Piinks as a code owner May 20, 2022 00:12
@flutter-dashboard flutter-dashboard bot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels May 20, 2022
@annagrin annagrin requested review from christopherfujino and removed request for Piinks May 20, 2022 00:12
@annagrin annagrin requested a review from devoncarew May 20, 2022 17:42
Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM with 1 nit

@christopherfujino
Copy link
Contributor

@annagrin marked "Google testing" green because the CL says pre-submits passed, I'm guessing this is a FRoB bug. This is good to go!

@annagrin
Copy link
Contributor Author

@christopherfujino

marked "Google testing" green because the CL says pre-submits passed, I'm guessing this is a FRoB bug. This is good to go!

Thanks, they were failing of a reason at first - package:webkit_inspection_protocol needed to be updated - so I fixed it and rerun the tests (that's why they were showing as passing) but the CI did not detect it for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intermittent failure to connect to chrome tabs on test bots

4 participants