dart-lang / dart-lang/webdev

Puppeteer tests are not working on Github Actions

Open
#1,787 1 comment 0 reactions 1 assignee Assigned to @jyameo View on GitHub
P2 triaged
Dominant language
Dart
Stars
224
Forks
94
Avg merge
4d 3h
Merged PRs (30d)
2

Description

The Puppeteer tests were added in https://github.com/dart-lang/webdev/commit/829a74ba7a2954f35a60ea827303f692c922d916, and all passed. See https://github.com/dart-lang/webdev/actions/runs/3431310326/jobs/5719308010

However, the `setUpAll` step is now failing on Github actions, although it passes locally. Here is the error:

```
Warning: puppeteer.launcher: [Chrome stderr]: [3835:3859:1110/220631.806860:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")

Warning: puppeteer.launcher: [Chrome stderr]: [3835:3859:1110/220631.806901:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")

Warning: puppeteer.launcher: [Chrome stderr]:

Warning: puppeteer.launcher: [Chrome stderr]: DevTools listening on ws://127.0.0.1:45261/devtools/browser/94d7030a-3003-450a-a800-1b2a94a0d809

[FINER] connection: SEND ► {"id":2,"method":"Target.setDiscoverTargets","params":{"discover":true}}

[FINER] connection: ◀ EVENT {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"3B44C87FF2B1CC73046ACBDEAC8D8B4D","type":"page","title":"","url":"about:blank","attached":false,"canAccessOpener":false,"browserContextId":"73A08BEF2607C40BBC8BBAC50A83A9B0"}}}

[FINER] connection: ◀ RECV 2 {"id":2,"result":{}}

[FINER] connection: ◀ EVENT {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"3B44C87FF2B1CC73046ACBDEAC8D8B4D","type":"page","title":"about:blank","url":"about:blank","attached":false,"canAccessOpener":false,"browserContextId":"73A08BEF2607C40BBC8BBAC50A83A9B0"}}}
Exception: Not able to connect to Chrome DevTools
package:puppeteer/src/puppeteer.dart 196:7 Puppeteer.launch
===== asynchronous gap ===========================
test/puppeteer/extension_test.dart 37:21 main...
TimeoutException after 0:00:30.000000: Future not completed

Exception: Not able to connect to Chrome DevTools
package:puppeteer/src/puppeteer.dart 196:7 Puppeteer.launch
===== asynchronous gap ===========================
test/puppeteer/extension_test.dart 37:21 main...
TimeoutException after 0:00:30.000000: Future not completed
```
https://github.com/dart-lang/webdev/actions/runs/3440721425/jobs/5739518521

Increasing the test timeout did not fix it. I think there is probably some setup required in our Github actions workflow.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.