Commit Graph

285 Commits

Author SHA1 Message Date
Hugo Häggmark
16578b0af0
Chore: Fix broken pa11y-ci (#41597)
* Chore: Fix broken pa11y-ci

* Chore: using npx instead

* Chore: testing with prebuilt image

* Chore: testing bin path

* Chore: trying

* Chore: another try

* Update puppeteer image

* Chore: updating image

* Chore: removes yarn version printout

* Chore: removes yarn version printout

Co-authored-by: dsotirakis <sotirakis.dim@gmail.com>
2021-11-15 08:49:39 +01:00
Hugo Häggmark
0e12293971
Chore: Removes pa11y-ci as dependency and use dlx instead (#41591) 2021-11-11 12:54:08 +01:00
Ashley Harrison
ed030f9c21
Chore: Set min node version in package.json to 16 (#41423)
* Update package.json

* Update build-container version

* Sign drone

* Update developer-guide

* kick drone

Co-authored-by: dsotirakis <sotirakis.dim@gmail.com>
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
Co-authored-by: kay delaney <kay@grafana.com>
2021-11-10 14:23:10 +00:00
dsotirakis
a3f6982476 Merge test a11y steps on starlark files 2021-11-10 14:35:03 +02:00
Hugo Häggmark
6862c7baf8
Chore: Fix broken variable tests (#41472)
* Chore: skip failing tests

* Chore: fix broken variables tests
2021-11-09 15:06:14 +01:00
Dimitris Sotirakis
ad4fc4d87e
Remove FocusConvey check (#41165) 2021-11-09 12:38:51 +01:00
Josh Hunt
14ddb2939c
Chore: Enable strict Typescript checks (#41198)
* Chore: Enable strict Typescript checking

* Chore: Remove old strict budget checks
2021-11-02 15:23:44 +00:00
Dimitris Sotirakis
d85b4dc7a8
CI: Update grafana/build-container version (#41191)
* Update node and yarn versions

* Update drone yaml
2021-11-02 13:52:16 +00:00
dsotirakis
778c860b3c Revert: Remove FocusConvey check 2021-11-01 20:07:28 +02:00
dsotirakis
96541cf8d6 Remove FocusConvey check 2021-11-01 20:02:02 +02:00
kay delaney
3a7c5a0755
Chore: Switch yarn 2 to plug-n-play strategy (#40300) 2021-10-27 14:21:07 +01:00
Dimitris Sotirakis
624d7631e6
Build/CI: Make integration-tests depend on initialize (#40782)
* Make integration tests depend on initialize

* Reorder steps for better visualisation
2021-10-21 22:28:57 +02:00
Dimitris Sotirakis
bb738e35cf
Chore: Move Grafana version generator in initialize step (#40604)
* Move gen-version

* Small dependencies reorder

* Update grabpl version
2021-10-21 09:59:12 +03:00
Dimitris Sotirakis
ba60bec11b
Remove git reset - replace with git stash (#40669) 2021-10-20 11:39:46 +03:00
Dimitris Sotirakis
0efe2e3acc
Chore: Make test-frontend step depend on initialize step (#40616)
* Make test-frontend step depend on initialize

Debug

* Clean git tree dir

* Make build-frontend depend on lint-frontend

* Add actual steps back
2021-10-19 19:54:33 +03:00
Dimitris Sotirakis
89e7a56714
Makefile: Force use drone-cli 1.4.0 version (#40385)
* Force use drone-cli 1.4.0

* Small modifications to prevent null generation

* Sign drone

* Use bingo to declare drone-cli version

* Update message in Makefile

* Update to latest grabpl version
2021-10-14 16:02:45 +02:00
Dimitris Sotirakis
5bf37d36e7
Build Pipeline: Split to test-backend and test-backend-integration steps (#40215)
* Split to test-backend and test-backend-integration

* Sign drone
2021-10-11 12:23:55 +03:00
Dimitris Sotirakis
08a20e2247
Update grabpl version to 2.5.1 (#40218) 2021-10-11 09:41:19 +03:00
kay delaney
b2e94d0733
Chore: Migrate yarn from v1 to v2 (#39082)
* Chore: Migrate yarn from v1 to v2

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
2021-10-08 15:19:10 +01:00
sam boyer
0fe200ce41
Do codegen and check no-diff of all (non-blacklisted) CUE->TS codegen during CI (#39922)
* Add file blacklist to `grafana-cli cue gen-ts` cmd

* Add CI step checking all cuetsification is done

* Add dummy command to make the next one fail

* Generate drone bits

* Check diff output failure

* Echo list of untracked files, for failure locality

* Move git cleanness checking into script

* Blacklist of cue files is complete and correct

* Remove news panel plugin from cuetsify blacklist

* Dummy commit, check that untracked gen still fail

* Tie off remaining errors

* Re-add barchart to blacklist
* Remove file left around by earlier pipeline
* Commit generated news models.gen.ts

* Include eslint as part of cuetsified output gen

* Update pkg/cmd/grafana-cli/commands/cuetsify_command.go

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>

* Update scripts/drone/steps/lib.star

Co-authored-by: Maria Alexandra <239999+axelavargas@users.noreply.github.com>

* Update drone.yml

* Last fix on .drone.yml

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Maria Alexandra <239999+axelavargas@users.noreply.github.com>
2021-10-08 08:47:55 -04:00
Dimitris Sotirakis
ccd6a2eae3
Remove dockerize leftovers (#39960) 2021-10-06 11:37:42 +03:00
Dimitris Sotirakis
33c4893a59
Upgrade to grabpl 2.4.8 (#39885) 2021-10-01 09:33:33 +02:00
Dimitris Sotirakis
b7a68a9516
Put make gen-go in initialize step (#39854) 2021-09-30 15:39:48 +02:00
Dimitris Sotirakis
4017c5c800
Build: Separate frontend linting from frontend testing (#39808)
* Create new lint-frontend step

* Use lint-frontend step / separate from test-frontend

* Fix typo
2021-09-30 09:56:08 +02:00
Dimitris Sotirakis
f860becc88
Chore: Move jwilder/dockerize installation to build-container (#39581)
* Move dockerize to build-container

* Sync drone

* Fix command to not point in bin dir

* Update build container version
2021-09-23 23:41:34 +02:00
Maria Alexandra
ef36bbbfbd
Pipeline: Make Pa11y ci not mandatory on PR stage (#39285) 2021-09-17 17:47:00 +02:00
Dimitris Sotirakis
ed810da1f6
Update to grabpl 2.4.6 (#39177) 2021-09-14 16:21:04 +02:00
Maria Alexandra
1edd415ddf
Accessibility checks: Phase 2 - Adding Pa11y CI PR stage (#38556)
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
2021-09-14 13:23:17 +02:00
Alexander Emelin
2a6871d64e
Chore: build on armv6 to catch 32-bit CPU problems (#39078) 2021-09-10 17:10:47 +03:00
Carl Bergquist
c979b5d868
Upgrade the build pipeline to 2.4.5 (#39080)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2021-09-10 13:21:44 +02:00
malcolmholmes
b22c2543d0
Build: Upgrade grabpl to 2.4.2 (#38820) 2021-09-02 13:03:32 +01:00
Dimitris Sotirakis
a5ce61b539
Chore: Update to alpine:3.14.2 (#38813)
* Update apline to 3.14.2

* Remove libcrypto1.1 libssl1.1 version dependencies

* Update grabpl version
2021-09-02 12:57:11 +03:00
Dimitris Sotirakis
8e2ee0a1c8
Chore: Update to Golang 1.17 (#38608)
* Update to golang 1.17

* Further updates

* Run go mod tidy on go 1.17

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Use build-container:1.4.2

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-08-31 09:19:26 +03:00
Dimitris Sotirakis
8a04af412e
Build pipeline: Cleanup build-main pipeline steps (#38484)
* Refactor dependencies

* Regenerate drone.yml

* Reorder steps in starlark files

* Make build depend on test

* Make test steps depend on lint

* Make gen-version step depend on build steps

* Refactor step dependencies

* Move e2e-tests step before upload_cdn

* Sync with main
2021-08-26 10:11:22 +03:00
Arve Knudsen
78596a6756
Migrate to Wire for dependency injection (#32289)
Fixes #30144

Co-authored-by: dsotirakis <sotirakis.dim@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
Co-authored-by: spinillos <selenepinillos@gmail.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: Leonard Gram <leo@xlson.com>
2021-08-25 15:11:22 +02:00
Dimitris Sotirakis
29d0a1536c
Chore: Update grabpl version to 2.3.3 (#38516)
* Update grabpl version to 2.3.1

* Update grabpl version to 2.3.2

* Update grabpl version
2021-08-25 08:50:41 +03:00
Dimitris Sotirakis
e8faa2c900
Build pipeline: Cleanup PR pipeline steps (#38447)
* Refactor dependencies

* Regenerate drone.yml

* Reorder steps in starlark files

* Make build depend on test

* Make test steps depend on lint

* Make gen-version step depend on build steps
2021-08-24 17:07:06 +02:00
Maria Alexandra
856cb1d80f
Pipeline: Fix pa11y ci when server is not available and fix publish frontend metrics step (#38485) 2021-08-24 13:44:52 +02:00
Maria Alexandra
ef8e95ac7f
Pipeline: Revert a11y changes to fix publish frontend metrics step (#38452) 2021-08-23 16:45:59 +02:00
Maria Alexandra
6396f05320
Pa11y: add logs to a11y step in terminal to provide more info of status (#38445) 2021-08-23 14:54:33 +02:00
Dimitris Sotirakis
64cb000d37
Chore: Add e2e-tests-server as dependencies on steps that publish packages (#38059)
* Add e2e-tests-server as dependencies on steps that publish packages

* Sign drone yaml
2021-08-23 13:39:16 +03:00
Maria Alexandra
b579a707e3
A11y - Add Pa11y CI in main pipeline to collect a11y issues (#37741)
Co-authored-by: 
Hugo Häggmark <hugo.haggmark@gmail.com>
thisisobate <obasiuche62@gmail.com>
2021-08-23 10:08:01 +02:00
Kevin Minehart
b3c4b20953
Docker: Update base alpine version (fix CVE-2021-36159) (#38088)
* update base alpine version and update apk packages in Dockerfile

* update base alpine version

* don't need to apk update

* remove space

* Update to alpine 3.14.1

Co-authored-by: Malcolm Holmes <mdh@odoko.co.uk>
2021-08-20 12:54:03 +01:00
Dimitris Sotirakis
16c518582f
Chore: Prevent branches beginning with "v*" from being considered as versioned branches (#38016)
* Add v8* and v9* "regex" to only build versioned branches

* Add glob pattern matching

* Sign drone yaml
2021-08-20 09:22:53 +03:00
Dimitris Sotirakis
37b0c20984
Chore: Update channel to where failed Docker nightly builds are posted (#37927)
* Update channel

* Sign drone.yml
2021-08-16 14:54:52 +02:00
Julien Duchesne
7e63118ea9
Run builds on single-build agents (#37702)
This is an effort to reduce cache errors when multiple agents try to build the yarn cache at the same time
https://github.com/grafana/deployment_tools/issues/13329
2021-08-10 09:16:09 +03:00
Julien Duchesne
e5f52a05f2
Put back signature in drone.yml (#37447)
Repository protection will be enabled for grafana/grafana today
2021-08-02 15:35:49 +02:00
Dimitris Sotirakis
c189851339
Chore: Update grabpl version (#37253)
* Update grabpl version to 2.3.1

* Update grabpl version to 2.3.2
2021-07-27 13:18:06 +02:00
Dimitris Sotirakis
0c804df763
Update grabpl version to 2.3.1 (#37208) 2021-07-27 12:52:01 +03:00
sam boyer
cae47b3c1c
Make validate-schema CLI command work vs. disk (#36863)
* Make validate-schema CLI command work vs. disk

Previously, `grafana-cli cue validate-schema` would only validate the
CUE files that had been included at compile time. Now, the command
requires passing a grafana checkout root path, and will actually check
against live files on disk.

* Exempt validateScuemata from sec linter

* Nit: validateScuemata is a simpler, better name

* Try to fix validate-scuemata build step
2021-07-16 19:53:19 -04:00
Julien Duchesne
96ff257e96
Remove verify-drone for Windows (#36759)
This step checks that there's no drift between star files and yml
It's currently broken for windows: https://raintank-corp.slack.com/archives/C010WU9Q5TJ/p1626270627462700
But it's only needed for PRs really
2021-07-14 17:03:21 +02:00
Julien Duchesne
f41f00dec4
Sign Drone's configuration YAML file (#36528)
* Sign Drone's configuration YAML file
This is needed to protect the repository

* Update grabpl to 2.2.8

* Add comment about generating the drone.yml file
2021-07-14 14:40:28 +02:00
Jack Westbrook
90894a3474
CI: Depend on frontend build before triggering frontend metrics (#36253)
* ci(frontend-metrics): depend on build-frontend step to pass before publishing metrics

* ci(frontend-metrics): move frontend-metrics step so build-frontend occurs first
2021-06-29 10:29:34 +02:00
Javier Palomo
074c07b347
Drone: Retrieve the machine-user from a Vault secret (#35489)
This will remove the need to use a Drone repository secret
2021-06-10 12:22:03 +02:00
Dimitris Sotirakis
56e0efbb56
Chore: Update drone pipeline failure message to include target branch (#35170) 2021-06-03 14:09:53 +02:00
Dimitris Sotirakis
27ad970c2b
Chore: Make drone failed nightly checks send slack messages to #grafana-backend (#35076) 2021-06-02 08:49:42 +02:00
Julien Duchesne
22544bd135
Fix enterprise autodeploy (#34889)
Config file needs to be copied over

No-op for OSS grafana
2021-06-01 13:29:52 +02:00
idafurjes
c62602d941
Chore: Notify in slack when nightly docker image scan fails (#34980)
* Add scan docker image step, when pipeline fails notify in slack channel

* Add star code that generates the yaml file for the fail message to slack

* Fix template message

* Make message more detailed

* Adjust the name of the step
2021-05-31 17:33:22 +02:00
Arve Knudsen
ee73108e52
Drone: Don't ignore docs failures (#34872)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-28 09:38:56 +02:00
idafurjes
3064209cd5
33369: Add pipeline step with trivy scan for latest on grafana/grafan… (#34660)
* 33369: Add pipeline step with trivy scan for latest on grafana/grafana to drone config

* 33369:Add docker image scan steps to .drone.star file

* 33369: Add low/medium/unknwon scan into one pipeline step

* 33369:Make starlark generate code only for the given edition

* 33369:Adjust naming and add loop into vulnerability step

* Update scripts/job.star

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-26 14:27:40 +02:00
Dimitris Sotirakis
292789ba2d
Chore: Increase number of backend test retries in grabpl to 5 in release pipelines (#34493)
* Increase number of backend test retries to 5

* Exclude release-branch pipelines

* Fixes according to reviewer's comments

* Refactor

* Remove unused arguments

* Remove magic number
2021-05-20 17:52:02 +02:00
Julien Duchesne
368edd8ecc
Enterprise changes to the Drone pipelines (#33773)
* Enterprise changes to the Drone pipelines
This is basically a no-op in this repository, except for the fact that the grafanabot personal access token will now be fetched from Vault instead of repository secrets
This will pave the way for us to fetch all secrets from Vault

* Update star files from enterprise

* Add missingn newline
2021-05-12 15:30:05 +02:00
Dimitris Sotirakis
677b73dda5
Scuemata: Add grafana-cli cue schema validation to CI (#33798)
* Add scuemata validation in CI

* Fixes according to reviewer's comments
2021-05-10 17:54:35 +03:00
Torkel Ödegaard
7038f17a08
Drone: Make PRs pass wheb website docs step fail (#33812) 2021-05-07 15:40:57 +02:00
Arve Knudsen
adf9a0f6e0
CI: Fix triggering of enterprise (#33785)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-06 16:39:07 +02:00
Arve Knudsen
c2c1ec7d0f
Chore: Move from master to main branch (#33693)
* Chore: Move from master branch to main

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* CI: Upgrade build pipeline tool to v2

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-06 16:29:29 +02:00
Arve Knudsen
75b9018464
CI: Lint backend after testing, to catch build failures early (#33622)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-04 15:05:39 +02:00
Arve Knudsen
ca56e59415
CI: Upgrade build pipeline tool (#33514)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-04-29 10:11:15 +02:00
Dimitris Sotirakis
d3e510e92f
Chore: Remove Revive standalone linter - use it via golangci-lint (#33150)
* Remove Revive standalone linter - use it via golangci-lint

* Add revive settings to ignore lint errors for now

* Small fix

* Update to grabpl v0.5.53

* Remove errorCode and warningCode from config
2021-04-20 16:51:08 +02:00
Grot (@grafanabot)
a516ff00db
ReleaseNotes: Updated changelog and release notes for 7.5.4 (#32973)
* ReleaseNotes: Updated changelog and release notes for 7.5.4

* Update index link

* Fix boldness

* Update CHANGELOG.md

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

* Update codespell words

* Update docs/sources/release-notes/release-notes-7-5-4.md

* Update CHANGELOG.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Update docs/sources/release-notes/release-notes-7-5-4.md

* Change bold markers

* Fix escaping

* Update drone yaml

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-04-14 17:10:19 +02:00
sam boyer
bba4d9bd7f
Introduce "scuemata" system for CUE-based specification of Grafana objects (#32527) 2021-04-08 01:11:11 -07:00
Kevin Minehart
82bae892eb
add memcached integration test steps in starlark (#32729)
* add memcached integration test steps to starlark

* typo
2021-04-07 08:06:10 -05:00
Kevin Minehart
5c1d4777b2
add redis integration test for enterprise (#32617) 2021-04-06 08:50:54 -05:00
Dimitris Sotirakis
d59574ec1e
Update scripts and Dockerfiles to use Go 1.16.1 (#31881)
* Update scripts and Dockerfiles to use Go 1.16.1

* Update build-container image version to 1.4.1

* Update node version to 14.16.0-1nodesource1

* Updated drone configuration
2021-03-11 12:55:04 +02:00
Arve Knudsen
357cd8eb81
CI: Upgrade Dockerfiles wrt. Go, Node, Debian (#31407)
* CI: Upgrade Dockerfiles wrt. Go 1.16, Node, Debian

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-02-24 08:52:48 +01:00
Dimitris Sotirakis
c86eeae132
Remove tidy-check script (#31423)
* Remove tidy-check script

* Update grabpl version to 0.5.43
2021-02-23 17:53:30 +02:00
Dimitris Sotirakis
19ab83d6ed
Update grabpl from 0.5.38 to 0.5.42 version (#31419)
* Update grabpl from 0.5.41 to 0.5.42 version
2021-02-23 16:28:39 +02:00
Dimitris Sotirakis
d1cee1ad02
Add --tries 3 arg when triggering e2e-tests upon releasing (#31285)
* Add ``--tries 3` arg when triggering e2e-tests

* Make e2e-tests retry 3 times only for release pipelines
2021-02-18 10:16:49 +02:00
Dimitris Sotirakis
d1937408bd
Replace PR with Commit truncated hash when build fails (#31177)
* Replace PR with Commit truncated hash when build fails

* Make commit literal lower case
2021-02-12 18:36:15 +02:00
Dimitris Sotirakis
a18e4d8d64
Add author name and pr number in drone pipeline notifications (#31124)
* Add author name and pr number in drone pipeline notifications
2021-02-11 17:18:13 +02:00
Torkel Ödegaard
595a47959b
Drone: Make sure CDN upload is ok before pushing docker images (#31075)
* Drone: Make sure CDN upload is ok before pushing docker images

* Trying to simplify logic

* Snake case

* Only depend on cdn upload in release mode

* Rename and use util function where we can

* removing the cdn dependency
2021-02-10 13:55:28 +01:00
Torkel Ödegaard
d6e8e47698
CDN: Add CDN upload step to enterprise and release pipelines (#31058)
* CDN: Fixing drone CI config

* was in wrong dir when I executed command

* removed whitespace

* Update path

* Update Drone master and enterprise piplelines with CDN Upload

* Update test

* removed whitespace

* Go back to public folder defined

* updated build-pipeline

* Updated drone

* wrong version
2021-02-10 08:58:41 +01:00
Torkel Ödegaard
b8a52ed0bd
CDN: Fixing drone CI config (#31052)
* CDN: Fixing drone CI config

* was in wrong dir when I executed command

* removed whitespace
2021-02-09 16:31:30 +01:00
Torkel Ödegaard
99e72e65ab
CDN: Adds uppload to CDN step to drone CI (#30879)
* CDN: Adds uppload to CDN step to drone CI

* Bump grabpl

* updated sh files

* crying

* add init dependency

* Removed last test to get this to work
2021-02-09 14:55:11 +01:00
Arve Knudsen
d963c6d868
Drone: Fix deployment image (#31027)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-02-09 13:18:01 +01:00
Marcus Efraimsson
dadc8a2e2d
Chore: Upgrade docker build image (#30820)
* Chore: Upgrade docker build image

* use updated build image in drone
2021-02-05 11:47:04 +01:00
ying-jeanne
c24a4c1803
bump grabpl version to 0.5.36 (#30874)
* bump grabpl version to 0.5.36

* 2 missing shell script
2021-02-03 20:53:37 +01:00
Arve Knudsen
fdd6a84d82
DeployImage: Switch base images to Debian (#30684)
* DeployImage: Switch base images to Debian

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-28 11:03:18 +01:00
Jack Westbrook
54b1ce2cdb
ci(npm-publish): add missing github package token to env vars (#30665) 2021-01-27 15:13:08 +01:00
Tania B
bb1f84dbc7
Chore: Upgrade grabpl version (#30486) 2021-01-21 19:24:12 +02:00
Arve Knudsen
bd71eb23df
Chore: Upgrade build pipeline tool (#30456)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-20 20:30:45 +01:00
Agnès Toulet
c040d36a70
Drone: Upgrade build pipeline tool (#30247) 2021-01-13 11:44:34 +01:00
Agnès Toulet
4972d7f020
Drone: Upgrade build pipeline tool (#30104) 2021-01-07 12:58:40 +01:00
Arve Knudsen
87633c563c
Chore: Upgrade Docker build image wrt. Go/golangci-lint/Node (#30077)
* ci-build: Upgrade base image, Go, Node, golangci-lint

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Upgrade build image

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Upgrade plugin build image

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-06 17:52:17 +01:00
Arve Knudsen
52f79c3625
Drone: Fix race conditions between Enterprise and Enterprise2 (#30076)
* Drone: Fix race conditions between Enterprise and Enterprise2

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-06 13:22:20 +01:00
Agnès Toulet
4de784065d
Drone: Update pipelines for Enterprise (#29939)
* update E2E tests

* fix e2e tests for new pipelines

* Add enterprise2 test, build, package and upload steps

* fix missing linting step

* Upgrade build pipeline tool

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Use grabpl lint-backend

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Refactor publishing

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Refactor package publishing

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Supply --simulate-release flag to publish-packages for simulating a release

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Run e2e tests with specific ports

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* e2e/start-server: Make more robust

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-23 15:42:20 +01:00
Jack Westbrook
c2e81ab166
Build: Publish next and latest npm channels to Github (#29615)
* build(npm): publish next and latest packages to github registry

* ci(release): remove redundant commands from release-npm-packages step

* Update scripts/release.star

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

* Update scripts/release.star

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-04 16:34:03 +01:00
Jack Westbrook
73af91192d
Build: move canary packages to github (#29411)
* ci: wip - add release next npm package step to pr for testing

* ci: remove unpublish logic and use github for package registry

* chore: refresh drone.yml config

* ci: remove redundant variable

* ci: add missing double quote

* chore: move registry arg to npm script

* chore: refresh drone config

* ci: attempt github registry auth

* build: force lerna registry

* build: remote trailing slash

* build: remove obsolete lerna bootstrap, rename next publish files to canary

* chore: remove release_canary_packages step from pr pipeline

* docs(packages): introduce steps for authenticating with github packages

* refactor: move github registry related commands to shell script

* ci(drone): remove echo commands from canary release step

* docs: add missing backtick

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-12-03 11:31:14 +01:00
Torkel Ödegaard
00d59ec1fc
NodeJS: Update to LTS (14) (#29467)
* NodeJS: Update to LTS (14)

* Bump Volta's Node version

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Bump version of build image

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Upgrade build image

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-02 18:18:49 +01:00
Arve Knudsen
5773929953
Drone: Upgrade build pipeline tool (#29365)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-25 10:54:27 +01:00
Arve Knudsen
5cec4095b2
Drone: Upload artifacts for release branch builds (#29297)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-25 09:26:16 +01:00
Arve Knudsen
f7567f2266
Drone: Execute artifact publishing for both editions in parallel during release (#29362)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-25 08:49:24 +01:00
Arve Knudsen
65ca47549d
Drone: Check CUE dashboard schemas (#29334)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-25 08:11:08 +01:00
Arve Knudsen
7d8cb6869a
Drone: Publish NPM packages after Storybook to avoid race condition (#29340)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-24 15:13:23 +01:00
Arve Knudsen
e293dd40b0
Drone: Upgrade build pipeline tool (#29308)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-23 16:16:55 +01:00
Arve Knudsen
d6a645aae2
Drone: Fix publish-packages invocation (#29179)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-18 09:00:02 +01:00
Arve Knudsen
bcb307fb1b
Chore: Upgrade grafana/build-ci-deploy image to latest Go (#29171)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-18 08:40:41 +01:00
Arve Knudsen
a6e72d5b61
Drone: Upgrade build pipeline tool and build image (#29161)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 15:58:58 +01:00
Arve Knudsen
01df8f177c
Drone: Fix Drone config verification for enterprise on Windows (#29118)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-14 11:44:56 +01:00
Arve Knudsen
113e288668
Drone: Verify Drone config at beginning of pipelines (#29071)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-13 19:28:46 +01:00
Emil Tullstedt
46d568129e
Chore: Bump build pipeline version (#29023) 2020-11-11 13:12:45 +01:00
Arve Knudsen
9582e0afd9
Drone: Fix docs building (#28986)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-10 15:44:21 +01:00
Zoltán Bedi
f22d77100f
Chore: use jest without grunt (#28558)
* Chore: use jest without grunt

* Run no-focus-convey-tests and no-only-tests as well

* Update lib.star test-backend script with no-focus test to run first

* Lets see a failing test

* Revert "Lets see a failing test"

This reverts commit cb6c6ed67d.

* Update no-focus-convey test to a script

* Update scripts/lib.star

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update drone.yml

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-09 15:14:04 +01:00
Dominik Prokop
1f36e377e2
Adds storybook integrity check to drone config (#28785)
* Adds storybook integrity check to dron config

* Update starlark files

* Review comments

* Bump grabpl version

* Drone: Fix dangling dependency

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-03 18:34:45 +01:00
Arve Knudsen
0490b32790
Drone: Upgrade build pipeline tool (#28769)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-03 10:34:48 +01:00
Arve Knudsen
cbb6f425c0
Drone: Upgrade build-pipeline tool (#28728)
* Drone: Upgrade build-pipeline tool

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Raise Drone's memory limit for build-storybook

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-02 10:02:42 +01:00
Arve Knudsen
50f8bcc31e
Drone: Don't build on Windows for PRs (#28663)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-30 12:15:17 +01:00
Arve Knudsen
1571579c1d
Drone: Upgrade build pipeline tool (#28533)
* Drone: Upgrade grabpl

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-26 10:47:42 +01:00
Arve Knudsen
31c9c81f5b
Drone: Refactor version branch pipeline logic (#28531)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-26 09:47:51 +01:00
Arve Knudsen
c3917e6525
Drone: Upgrade build-pipeline tool (#28520)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-26 09:27:54 +01:00
Arve Knudsen
090c683fea
Drone: Don't build Windows installer for version branches (#28494)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-23 12:14:24 +02:00
Arve Knudsen
07897c7e1e
Drone: Add version branch pipeline (#28490)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-23 10:16:17 +02:00
Arve Knudsen
f158e4f526
ci-e2e: Add Git (#28410)
* ci-e2e: Add Git

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Update e2e image

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-20 19:32:22 +02:00
Arve Knudsen
392c5bdf73
Drone: Use ${DRONE_TAG} in release pipelines, since it should work (#28299)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-16 12:54:41 +02:00
Arve Knudsen
847dc0bec7
Drone: Fix grafana-mixin linting (#28308)
* Drone: Fix Starlark script

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* grafana-mixin: Move build logic to scripts

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Use mixin scripts

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* CI build image: Install jsonnetfmt and mixtool

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Makefile: Print commands

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-16 09:46:26 +02:00
Arve Knudsen
d9a156298b
Drone: Fix enterprise release pipeline (#28289)
* Drone: Fixes

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Fixes

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-15 14:06:52 +02:00
Arve Knudsen
7ee8f91e17
Drone: Use DRONE_COMMIT_REF to get release tag (#28283)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-15 12:55:25 +02:00
Marcus Andersson
b5196f531c
Build: added steps to generate packages api documentation. (#27930)
* added steps to generate docs.

* re-generated the drone.yml file.

* removed metrics reporting from pr pipeline.

* fixed spelling issues.

* fixed so package generation should work.

* some small refactorings.

* fixed spelling error.

* adding echo to verify that we execute the correct script.

* removed echo statement.

* changed scripts a bit.

* added ci flag to script.

* adding exit 1

* increased the limit.

* added missing space.

* fixed shellcheck error.

* fixing lint errors.

* renamed build step.

* changed logic.

* increased limit.

* changed to echo instead of echo -e

* fixed shellcheck errors.

* trying to debug script,

* trying to simplify the find statement.

* fixed issue with text formatting on linux.

* imported build step.

* Update scripts/ci-reference-docs-lint.sh

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* removed cleanup of packages.

* increased limit.

* will build frontend docs on master but not lint it.

* will always run the linting step.

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-14 14:35:55 +02:00
Arve Knudsen
26ac672854
Drone: Fix test-release pipeline (#28108)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-08 13:28:20 +02:00
Arve Knudsen
c064c16e83
Drone: Fix test-release pipeline (#28102)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-08 09:21:27 +02:00
Arve Knudsen
4751923442
Drone: Fix release pipelines (#28100)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-08 07:39:00 +02:00
Arve Knudsen
c2059e8f0c
Drone: Fix release pipelines (#28098)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-08 06:51:31 +02:00
Arve Knudsen
98b94d3824
Drone: Fix release pipelines (#28084)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-07 16:22:41 +02:00
Arve Knudsen
d2b957b726
Drone: Add release pipelines (#28083)
* Drone: Implement release pipeline

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Implement test-release pipeline

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-07 14:22:15 +02:00
Arve Knudsen
c3f277a6fe
Drone: Fix releasing of next NPM packages (#27965)
* CI: Upgrade build pipeline tool

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Don't bump NPM package version as part of script

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* cleaned up release next packages script.

* made the comment a bit better.

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2020-10-01 17:37:56 +02:00
Arve Knudsen
298ac20dc5
Drone: Upgrade build pipeline tool (#27949)
* Drone: Don't use npx

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Upgrade build pipeline tool

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-01 10:00:11 +02:00
Marcus Efraimsson
c028d3047c
CI: Notify failures in separate pipeline (#27936)
* Notify failures in separate pipeline

* Include branch and event in triggers

* Use snake case

* Use snake case

* Fix enterprise/downstream

* Apply suggestions from code review

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-30 22:14:47 +02:00
Arve Knudsen
b892aa2eb7
Drone: Don't ignore failure to publish next NPM packages (#27927)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-30 14:11:40 +02:00
Arve Knudsen
a59a89dfb8
Drone: Fix publishing of next NPM packages (#27925)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-30 13:36:09 +02:00
Arve Knudsen
34a355fe54
Drone: Add Slack failure notifier (#27920)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-30 11:04:37 +02:00
Arve Knudsen
7a12094ddc
Drone: Ignore failure to publish front-end metrics (#27918)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-30 09:23:48 +02:00
Arve Knudsen
702fb1edd1
Drone: Upgrade drone-grafana-docker image (#27911)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-29 21:34:34 +02:00
Arve Knudsen
26f86ba823
Drone: Fix publishing of master artifacts (#27902)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-29 18:15:25 +02:00
Arve Knudsen
a9afb750d9
Drone: Fix master build (#27897)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-29 16:34:49 +02:00
Arve Knudsen
6671e4ec32
Chore: Upgrade build pipeline tool (#27893)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-29 16:09:46 +02:00
Arve Knudsen
3f728501df
Drone: Fix Windows installer upload (#27890)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-29 15:45:59 +02:00
Arve Knudsen
262a6faad0
Chore: Upgrade build-pipeline tool (#27888)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-29 14:24:18 +02:00
Arve Knudsen
19c1428103
Drone: Ignore release-next-npm-packages failure (#27775)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-24 22:21:58 +02:00
Arve Knudsen
02e648c42d
Drone: Separate pipeline for publishing packages (#27774)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-24 21:31:09 +02:00
Arve Knudsen
c65aea5569
Drone: Fix master build (#27765)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-24 16:22:41 +02:00