Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
efe1287b
Unverified
Commit
efe1287b
authored
Sep 09, 2020
by
Arve Knudsen
Committed by
GitHub
Sep 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drone: Make parallel step for publishing front-end metrics (#27457)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent
c7b8d85c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
13 deletions
+29
-13
.drone.yml
+8
-0
scripts/lib.star
+21
-13
No files found.
.drone.yml
View file @
efe1287b
...
@@ -298,6 +298,14 @@ steps:
...
@@ -298,6 +298,14 @@ steps:
image
:
grafana/build-container:1.2.26
image
:
grafana/build-container:1.2.26
commands
:
commands
:
-
yarn run ci:test-frontend
-
yarn run ci:test-frontend
environment
:
TEST_MAX_WORKERS
:
50%
depends_on
:
-
initialize
-
name
:
frontend-metrics
image
:
grafana/build-container:1.2.26
commands
:
-
./scripts/ci-frontend-metrics.sh | ./bin/grabpl publish-metrics $${GRAFANA_MISC_STATS_API_KEY}
-
./scripts/ci-frontend-metrics.sh | ./bin/grabpl publish-metrics $${GRAFANA_MISC_STATS_API_KEY}
environment
:
environment
:
GRAFANA_MISC_STATS_API_KEY
:
GRAFANA_MISC_STATS_API_KEY
:
...
...
scripts/lib.star
View file @
efe1287b
...
@@ -82,7 +82,8 @@ def master_pipelines(edition):
...
@@ -82,7 +82,8 @@ def master_pipelines(edition):
codespell_step(),
codespell_step(),
shellcheck_step(),
shellcheck_step(),
test_backend_step(),
test_backend_step(),
test_frontend_step(publish_metrics=True),
test_frontend_step(),
frontend_metrics_step(),
build_backend_step(edition=edition),
build_backend_step(edition=edition),
build_frontend_step(edition=edition),
build_frontend_step(edition=edition),
build_plugins_step(edition=edition),
build_plugins_step(edition=edition),
...
@@ -353,13 +354,8 @@ def test_backend_step():
...
@@ -353,13 +354,8 @@ def test_backend_step():
],
],
}
}
def test_frontend_step(publish_metrics=False):
def test_frontend_step():
cmds = [
return {
'yarn run ci:test-frontend',
]
if publish_metrics:
cmds.append('./scripts/ci-frontend-metrics.sh | ./bin/grabpl publish-metrics $${GRAFANA_MISC_STATS_API_KEY}')
dct = {
'name': 'test-frontend',
'name': 'test-frontend',
'image': build_image,
'image': build_image,
'depends_on': [
'depends_on': [
...
@@ -368,16 +364,28 @@ def test_frontend_step(publish_metrics=False):
...
@@ -368,16 +364,28 @@ def test_frontend_step(publish_metrics=False):
'environment': {
'environment': {
'TEST_MAX_WORKERS': '50%',
'TEST_MAX_WORKERS': '50%',
},
},
'commands': cmds,
'commands': [
'yarn run ci:test-frontend',
],
}
}
if publish_metrics:
dct['environment'] = {
def frontend_metrics_step():
return {
'name': 'frontend-metrics',
'image': build_image,
'depends_on': [
'initialize',
],
'environment': {
'GRAFANA_MISC_STATS_API_KEY': {
'GRAFANA_MISC_STATS_API_KEY': {
'from_secret': 'grafana_misc_stats_api_key',
'from_secret': 'grafana_misc_stats_api_key',
},
},
}
},
'commands': [
'./scripts/ci-frontend-metrics.sh | ./bin/grabpl publish-metrics $${GRAFANA_MISC_STATS_API_KEY}',
],
}
return dct
def codespell_step():
def codespell_step():
return {
return {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment