Chore: Backport 51543 to v9.0.x (#51562)
* Chore: split betterer into it's own CI step and allow failures for now (#51543)
* split betterer into it's own CI step and allow failures for now
* Run make drone
Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com>
(cherry picked from commit f654152dc8)
* Run make drone
Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com>
This commit is contained in:
co-authored by
dsotirakis
parent
53a3dca76c
commit
09be340848
+15
-1
@@ -42,6 +42,13 @@ steps:
|
||||
TEST_MAX_WORKERS: 50%
|
||||
image: grafana/build-container:1.5.5
|
||||
name: lint-frontend
|
||||
- commands:
|
||||
- yarn betterer ci
|
||||
depends_on:
|
||||
- yarn-install
|
||||
failure: ignore
|
||||
image: grafana/build-container:1.5.5
|
||||
name: betterer-frontend
|
||||
- commands:
|
||||
- yarn run ci:test-frontend
|
||||
depends_on:
|
||||
@@ -710,6 +717,13 @@ steps:
|
||||
TEST_MAX_WORKERS: 50%
|
||||
image: grafana/build-container:1.5.5
|
||||
name: lint-frontend
|
||||
- commands:
|
||||
- yarn betterer ci
|
||||
depends_on:
|
||||
- yarn-install
|
||||
failure: ignore
|
||||
image: grafana/build-container:1.5.5
|
||||
name: betterer-frontend
|
||||
- commands:
|
||||
- yarn run ci:test-frontend
|
||||
depends_on:
|
||||
@@ -4667,6 +4681,6 @@ kind: secret
|
||||
name: gcp_upload_artifacts_key
|
||||
---
|
||||
kind: signature
|
||||
hmac: 9225ad54ce9cda12db965a6f098eb4daf970c4d43a0f456b8c5f1aff81ac2abd
|
||||
hmac: 3f5060830f3acfffdb22b5565e8270820ebd24f014a851cb35b6d95be0e7977a
|
||||
|
||||
...
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
"lint": "yarn run lint:ts && yarn run lint:sass",
|
||||
"lint:ts": "eslint . --ext .js,.tsx,.ts --cache",
|
||||
"lint:sass": "yarn stylelint '{public/sass,packages}/**/*.scss' --cache",
|
||||
"test:ci": "betterer ci && mkdir -p reports/junit && JEST_JUNIT_OUTPUT_DIR=reports/junit jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}",
|
||||
"test:ci": "mkdir -p reports/junit && JEST_JUNIT_OUTPUT_DIR=reports/junit jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}",
|
||||
"lint:fix": "yarn lint:ts --fix",
|
||||
"packages:build": "lerna run clean && lerna run build --ignore @grafana-plugins/input-datasource",
|
||||
"packages:docsExtract": "rm -rf ./reports/docs && lerna run docsExtract",
|
||||
|
||||
@@ -42,7 +42,8 @@ load(
|
||||
'validate_scuemata_step',
|
||||
'ensure_cuetsified_step',
|
||||
'test_a11y_frontend_step',
|
||||
'trigger_oss'
|
||||
'trigger_oss',
|
||||
'betterer_frontend_step'
|
||||
)
|
||||
|
||||
load(
|
||||
@@ -83,6 +84,7 @@ def main_test_frontend():
|
||||
]
|
||||
test_steps = [
|
||||
lint_frontend_step(),
|
||||
betterer_frontend_step(),
|
||||
test_frontend_step(),
|
||||
]
|
||||
return pipeline(
|
||||
|
||||
@@ -33,6 +33,7 @@ load(
|
||||
'ensure_cuetsified_step',
|
||||
'test_a11y_frontend_step',
|
||||
'enterprise_downstream_step',
|
||||
'betterer_frontend_step',
|
||||
)
|
||||
|
||||
load(
|
||||
@@ -80,6 +81,7 @@ def pr_test_frontend():
|
||||
]
|
||||
test_steps = [
|
||||
lint_frontend_step(),
|
||||
betterer_frontend_step(),
|
||||
test_frontend_step(),
|
||||
]
|
||||
return pipeline(
|
||||
|
||||
@@ -523,6 +523,19 @@ def test_backend_integration_step(edition):
|
||||
],
|
||||
}
|
||||
|
||||
def betterer_frontend_step():
|
||||
return {
|
||||
'name': 'betterer-frontend',
|
||||
'image': build_image,
|
||||
'depends_on': [
|
||||
'yarn-install',
|
||||
],
|
||||
'commands': [
|
||||
'yarn betterer ci',
|
||||
],
|
||||
'failure': 'ignore',
|
||||
}
|
||||
|
||||
|
||||
def test_frontend_step():
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user