mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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>
This commit is contained in:
16
.drone.yml
16
.drone.yml
@@ -42,6 +42,13 @@ steps:
|
|||||||
TEST_MAX_WORKERS: 50%
|
TEST_MAX_WORKERS: 50%
|
||||||
image: grafana/build-container:1.5.7
|
image: grafana/build-container:1.5.7
|
||||||
name: lint-frontend
|
name: lint-frontend
|
||||||
|
- commands:
|
||||||
|
- yarn betterer ci
|
||||||
|
depends_on:
|
||||||
|
- yarn-install
|
||||||
|
failure: ignore
|
||||||
|
image: grafana/build-container:1.5.7
|
||||||
|
name: betterer-frontend
|
||||||
- commands:
|
- commands:
|
||||||
- yarn run ci:test-frontend
|
- yarn run ci:test-frontend
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -741,6 +748,13 @@ steps:
|
|||||||
TEST_MAX_WORKERS: 50%
|
TEST_MAX_WORKERS: 50%
|
||||||
image: grafana/build-container:1.5.7
|
image: grafana/build-container:1.5.7
|
||||||
name: lint-frontend
|
name: lint-frontend
|
||||||
|
- commands:
|
||||||
|
- yarn betterer ci
|
||||||
|
depends_on:
|
||||||
|
- yarn-install
|
||||||
|
failure: ignore
|
||||||
|
image: grafana/build-container:1.5.7
|
||||||
|
name: betterer-frontend
|
||||||
- commands:
|
- commands:
|
||||||
- yarn run ci:test-frontend
|
- yarn run ci:test-frontend
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -4783,6 +4797,6 @@ kind: secret
|
|||||||
name: gcp_upload_artifacts_key
|
name: gcp_upload_artifacts_key
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: c9b6fd34c919d871a153c3d82bfe8d62f126f1c672bd14636147cdeafe827c10
|
hmac: 12fbd61337ed1ae006e8c0ff71d1290e27b5910211369cdd47e1d604afd9befa
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"lint": "yarn run lint:ts && yarn run lint:sass",
|
"lint": "yarn run lint:ts && yarn run lint:sass",
|
||||||
"lint:ts": "eslint . --ext .js,.tsx,.ts --cache",
|
"lint:ts": "eslint . --ext .js,.tsx,.ts --cache",
|
||||||
"lint:sass": "yarn stylelint '{public/sass,packages}/**/*.scss' --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",
|
"lint:fix": "yarn lint:ts --fix",
|
||||||
"packages:build": "lerna run clean && lerna run build --ignore @grafana-plugins/input-datasource",
|
"packages:build": "lerna run clean && lerna run build --ignore @grafana-plugins/input-datasource",
|
||||||
"packages:docsExtract": "rm -rf ./reports/docs && lerna run docsExtract",
|
"packages:docsExtract": "rm -rf ./reports/docs && lerna run docsExtract",
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ load(
|
|||||||
'upload_cdn_step',
|
'upload_cdn_step',
|
||||||
'verify_gen_cue_step',
|
'verify_gen_cue_step',
|
||||||
'test_a11y_frontend_step',
|
'test_a11y_frontend_step',
|
||||||
'trigger_oss'
|
'trigger_oss',
|
||||||
|
'betterer_frontend_step'
|
||||||
)
|
)
|
||||||
|
|
||||||
load(
|
load(
|
||||||
@@ -82,6 +83,7 @@ def main_test_frontend():
|
|||||||
]
|
]
|
||||||
test_steps = [
|
test_steps = [
|
||||||
lint_frontend_step(),
|
lint_frontend_step(),
|
||||||
|
betterer_frontend_step(),
|
||||||
test_frontend_step(),
|
test_frontend_step(),
|
||||||
]
|
]
|
||||||
return pipeline(
|
return pipeline(
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ load(
|
|||||||
'verify_gen_cue_step',
|
'verify_gen_cue_step',
|
||||||
'test_a11y_frontend_step',
|
'test_a11y_frontend_step',
|
||||||
'enterprise_downstream_step',
|
'enterprise_downstream_step',
|
||||||
|
'betterer_frontend_step',
|
||||||
)
|
)
|
||||||
|
|
||||||
load(
|
load(
|
||||||
@@ -79,6 +80,7 @@ def pr_test_frontend():
|
|||||||
]
|
]
|
||||||
test_steps = [
|
test_steps = [
|
||||||
lint_frontend_step(),
|
lint_frontend_step(),
|
||||||
|
betterer_frontend_step(),
|
||||||
test_frontend_step(),
|
test_frontend_step(),
|
||||||
]
|
]
|
||||||
return pipeline(
|
return pipeline(
|
||||||
|
|||||||
@@ -539,6 +539,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():
|
def test_frontend_step():
|
||||||
|
|||||||
Reference in New Issue
Block a user