Commit Graph

151 Commits

Author SHA1 Message Date
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