Chore: Add timeout for storybook e2e, only run on changes to @grafana/ui (#90035)

* add timeout for storybook, only run on changes to @grafana/ui

* add comment to trigger verify-storybook

* remove test comment

* add comment

* use a later version of wait-on

* remove comment and hardcode wait-on version
This commit is contained in:
Ashley Harrison 2024-07-04 11:19:07 +01:00 committed by GitHub
parent 4671b7d5ae
commit 5ed5a2de2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 10 deletions

View File

@ -135,7 +135,7 @@ steps:
image: node:20.9.0-alpine
name: start-storybook
- commands:
- npx wait-on@7.0.1 http://$HOST:$PORT
- npx wait-on@7.2.0 -t 1m http://$HOST:$PORT
- yarn e2e:storybook
depends_on:
- start-storybook
@ -151,11 +151,8 @@ trigger:
exclude:
- docs/**
- '*.md'
- pkg/**
- packaging/**
- go.sum
- go.mod
include: []
include:
- packages/grafana-ui/**
type: docker
volumes:
- host:
@ -1910,7 +1907,7 @@ steps:
image: node:20.9.0-alpine
name: start-storybook
- commands:
- npx wait-on@7.0.1 http://$HOST:$PORT
- npx wait-on@7.2.0 -t 1m http://$HOST:$PORT
- yarn e2e:storybook
depends_on:
- start-storybook
@ -5181,6 +5178,6 @@ kind: secret
name: gcr_credentials
---
kind: signature
hmac: 6c273dec437d3ae5ae9a42450c57956259a691ff0df7c161a57eaa683c867acd
hmac: c4a656d676b1228248f6948ac0347aea1d67016429aa24351d0a5c3e2d7dc617
...

View File

@ -87,7 +87,7 @@ def pr_pipelines():
),
verify_storybook(
get_pr_trigger(
exclude_paths = ["pkg/**", "packaging/**", "go.sum", "go.mod"],
include_paths = ["packages/grafana-ui/**"],
),
ver_mode,
),

View File

@ -799,7 +799,7 @@ def e2e_storybook_step():
"PORT": "9001",
},
"commands": [
"npx wait-on@7.0.1 http://$HOST:$PORT",
"npx wait-on@7.2.0 -t 1m http://$HOST:$PORT",
"yarn e2e:storybook",
],
}