After running npx @grafana/create-plugin@latest
without making any changes, and setting up the default GitHub workflows, it gets completely stuck on the Run e2e tests
step. (One of my workflows has been running for over half an hour and still going!) I can easily remove this step since I did not create any end to end tests, but I just wanted to bring this up to your attention in case this was previously an unknown bug.
For reference from ci.yml
- name: Run e2e tests
if: steps.check-for-e2e.outputs.has-e2e == 'true'
run: npm run e2e
Running npm run e2e
seems to trigger this command:
npm exec cypress install && npm exec grafana-e2e run
I’m not sure what that’s doing internally, but this is the contents of 01-smoke.spec.ts
(again, this file is just default that comes with the starter plugin)
import { e2e } from '@grafana/e2e';
e2e.scenario({
describeName: 'Smoke test',
itName: 'Smoke test',
scenario: () => {
e2e.pages.Home.visit();
e2e().contains('Welcome to Grafana').should('be.visible');
},
});
Here are the logs for a workflow that ran about 10 minutes before I cancelled it:
Run npm run e2e
> psychart@3.2.0 e2e
> npm exec cypress install && npm exec grafana-e2e run
Cypress 9.5.1 is installed in /home/runner/.cache/Cypress/9.5.1
Skipping installation:
Pass the --force option if you'd like to reinstall anyway.
It looks like this is your first time using Cypress: 9.5.1
[STARTED] Task without title.
[SUCCESS] Task without title.
Opening Cypress...
[2633:0616/172057.077998:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2633:0616/172057.078064:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2789:0616/172057.095113:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is
tput: No value for $TERM and no -T specified
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 9.5.1 │
│ Browser: Electron 94 (headless) │
│ Node Version: v16.20.0 (/opt/hostedtoolcache/node/16.20.0/x64/bin/node) │
│ Specs: 1 found (01-smoke.spec.ts) │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: 01-smoke.spec.ts (1 of 1)
launching browser electron is headless? true
setting the browser window size to 1920 x 1080
[2633:0616/172100.355596:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
(2023-06-16T17:21:05.017Z) Logged in with username: admin
(2023-06-16T17:21:05.049Z) Visiting http://grafana.staged-by-discourse.com/
(2023-06-16T17:21:07.217Z) Logged in with username: admin
(2023-06-16T17:21:07.229Z) Visiting http://grafana.staged-by-discourse.com/
Error: The operation was canceled.
Ref: Bug: Hangup on "Run e2e tests" · Issue #283 · grafana/plugin-tools · GitHub