122 Commits

Author SHA1 Message Date
c63ebc887b Chore: Run integration tests without grabpl (#49448)
* Chore: Run integration tests without grabpl

* Add new step for integration tests in lib.star

* Remove old integration test step from lib.star

* Change drone signature

* Fix: Edit starlark integration step to not affect enterprise

* Remove all build tags & rename starlark integration test step

* Resync .drone.yml with .drone.star

* Fix lint errors

* Fix lint errors

* Fix lint errors

* Fix more lint errors

* Fix another lint error

* Rename integration test step

* Fix last lint error

* Recomment enterprise step

* Remove comment from Makefile

Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com>
2022-06-01 14:55:22 -04:00
be06d37a20 schema: Generate Go and Typescript from Thema coremodels (#49193)
* Add go code generator for coremodels

* Just generate the entire coremodel for now

Maybe we'll need more flexibility as more coremodels are added, but for
now this is fine.

* Add note on type comment about stability, grodkit

* Remove local replace directive for thema

* Generate typescript from coremodel

* Update pkg/coremodel/dashboard/addenda.go

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

* Update cuetsy to new release

* Update thema to latest

* Fix enum generation for FieldColorModeId

* Put main generated object at the end of the file

* Tweaks to generated Go output

* Retweak back to var

* Add generated coremodel test

* Remove local replace statement again

* Add Make target and call into cuetsy cmd from gen

* Rename and comment linsrc for readability

* Move key codegen bits into reusable package

* Move body of cuetsifier into codegen pkg

Also genericize the diffing output into reusable WriteDiffer.

* Refactor coremodel generator to use WriteDiffer

* Add gen-cue step to CI

* Whip all the codegen automation into shape

* Add simplistic coremodel canonicality controls

* Remove erroneously committed test

* Bump thema version

* Remove dead code

* Improve wording of non-canonicality comment

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-05-27 03:21:37 +02:00
61101056b6 upgrade grabpl (#49534) 2022-05-24 13:18:05 -05:00
4bd97c8673 Drone: Trigger Enterprise PR checks for OSS PRs (#47176)
* Drone: add enterprise-init-downstream step

* fixes

* Add OSS_PULL_REQUEST env variable for downstream builds

* sign Drone config

* Update .drone.yml

* use test grabpl

* test without init step

* fix downstream branch

* unknown branch test

* use drone-downstream test image

* revert latest changes

* update Drone and add GH workflow

* fix PR number

* Run Enterprise PR check only on PRs targeting main or release branch

* update repository dispatch action

* remove test data

* update grabpl version
2022-05-16 14:28:37 +02:00
24038d9985 Chore: Update Go version (#47914)
* Remove makefile (it's not used anymore)

* Directly download and install nodejs package

The Packages file for deb.nodesource.com/node_16.x doesn't list older
versions, so only the most recent version of nodejs is available. We
don't want to require every update to the build container to have to
update nodejs if a never version is available, so I manually download
the deb and install it with dpkg.

* Update Go version

* Update lib.star

* Generate new .drone.yml
2022-04-20 09:14:12 +02:00
4510519941 Update grabpl (#47824) 2022-04-15 16:00:26 +02:00
508cc58a63 CI: Remove unused --github-token flag (#47773)
* Remove github token flag

* Minor cleanup

* Update grabpl
2022-04-15 10:42:58 +03:00
90892050d0 CI: Remove initialize step (#47622)
* Remove initialize step from pr.star

* Remove initialize step from main.star

* Remove initialize step from release.star

* Reorder dependencies

* Re-add identify runner step

* Add enterprise steps

* Remove is_downstream variable from starlark logic (#47715)

* Make init steps depend on init-enterprise for enterprise pipelines

* Exclude shellcheck from enterprise pipelines

* Add init steps to enterprise integration tests pipeline

* Add dependency for windows enterprise step

* Update grabpl version
2022-04-14 14:56:14 +03:00
1957863b67 Update grabpl (#47643) 2022-04-13 12:22:39 +03:00
cfaf058b20 Storybook: Add store-storybook command (#47557)
* Add store-storybook command

* Update grabpl version
2022-04-12 12:26:45 +03:00
0845ba1abb Make gsutil command don't fail if dir doesn't exist (#47394) 2022-04-07 09:30:09 +03:00
25e04d77be Storybook: Replace gsutil rsync with gsutil cp when copying artifacts (#47335)
* Replace gsutil rsync with cp

* Sync drone

* Remove folder before uploading artifacts
2022-04-06 13:31:36 +03:00
c72881a8b1 Update grabpl version (#47375) 2022-04-06 11:08:05 +02:00
9a6fd8572a Build: Remove redundant NPM publishing code (#46425)
* chore(build): remove npm package:publishPrevious script and release-npm-packages.sh

* ci(drone): bump grabpl to v2.9.31
2022-04-06 10:48:00 +02:00
bd386df617 CI: Run publishing steps only on OSS repo for main/version branches (#47315)
* Convert steps to run on OSS repo only

* Exclude versioned branches from publishing artifacts

* Change trigger -> when

* Add trigger to upload_* steps

* Add conditions to remaining steps

* Exclude release steps

* Bring back exclusion for release builds
2022-04-06 10:46:05 +03:00
65b0bd3017 CI: Update grabpl version - remove --no-pull-enterprise flag (#47013)
* Update grabpl version

* Sign drone

* Remove --no-pull-enterprise flag

* Sign drone

* Update grabpl
2022-03-31 11:06:59 +03:00
85184ee9dc Update grabpl (#46639) 2022-03-16 13:31:20 +00:00
a29159f362 Update golang (#46458) 2022-03-11 16:09:17 +01:00
82b436afee CI: Add more checks to standalone docs pipeline (#46449)
* Add build frontend package step

* Reorder dependencies

* Add codespell and prettier checks
2022-03-11 16:48:23 +02:00
73ba04cda6 Build: Bump grabpl to 2.9.24 (#46420) 2022-03-11 11:05:41 +01:00
9fc6ee2535 Update Yarn to v3.2.0 (#45714)
* Update Yarn to v3.2.0

* Update sdks as well

* Update nodejs to latest

* Updates

* Update grabpl to 2.9.23

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-03-09 10:10:51 +01:00
b409c9782f Update grabpl (#46253) 2022-03-04 16:31:39 +01:00
0544218bb7 upgrade to 2.9.21 (#46219) 2022-03-03 19:00:46 -06:00
593b2846c6 upgrade to 2.9.20 (#46217) 2022-03-03 18:09:14 -06:00
085a8fde67 linux-x64 -> linux-amd64 (#46209) 2022-03-03 23:53:09 +01:00
09e74c5ec5 upgrade grabpl (#46192) 2022-03-03 18:42:29 +00:00
42dd4d687d CI: Change variants for pr_pipelines (#46170)
* Change variants for pr_pipelines

* Update grabpl
2022-03-03 16:39:03 +01:00
0012b89826 CI: Rename build variants - bump grabpl version (#46152)
* Update grabpl

* Change variants for pr_pipelines
2022-03-03 16:31:44 +02:00
1fef87fbcc upgrade grabpl (#46127) 2022-03-03 10:17:05 +02:00
2f6c827f5d CI: Introduce build-frontend-packages step (#45824)
* Split frontend build

* Fix command name

* Update grabpl
2022-03-02 13:02:07 +02:00
60db643983 grafana-cli: Diff generated ts directly instead of relying on git (#45815)
* Add diffing support to grafana-cli cue gen-ts

* Rely on diff comparison in cuetsify pipeline step

* Ignore *.gen.ts files with eslint

* Chore: Fix lint `sdboyer/cuetsify-compare` (#45818)

* Sync drone

(cherry picked from commit 40645ab19e39ff9b0a12b7ebb13a4dc4c5e1d472)

* Fix lint

(cherry picked from commit c95ece983984432fea029335b2b729b09d76c7eb)

* Sign drone

Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com>
2022-02-24 12:03:07 +01:00
f4d9de00e9 Update dependency cypress to v9.5.0 (#44678)
* Update dependency cypress to v9.5.0

* drone: update cypress version

* Update drone.yml

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-02-24 10:32:55 +01:00
2f0dcbbd9d Update grabpl and build-container version (#45784) 2022-02-23 16:14:15 +02:00
02640c7436 Docs: Remove dependency between build-frontend and build-frontend-docs (#45736)
* Remove dependency

* Add yarn commands
2022-02-22 18:02:36 +02:00
ded53e8e0e Remove --no-install-deps argument (#45718) 2022-02-22 13:22:45 +02:00
3db331402d DockerHub: Use grafana(-oss)-image-tags to push to grafana(-oss)-dev DockerHub repo (#45708)
* Revert back changes - changes are done on grabpl

* Sync drone
2022-02-22 09:51:31 +01:00
a5dc832a86 Update grabpl (#45614) 2022-02-18 16:16:05 +01:00
0a8c3f92f6 Update grabpl (#45591) 2022-02-18 11:40:51 +01:00
af1691dbfb Update grabpl (#45520) 2022-02-17 14:26:38 +01:00
163b570f5d CI: Remove manual gcloud authentication (#44986)
* Remove manual gcloud auth from store-packages

* Update grabpl
2022-02-15 16:45:37 +02:00
9a7438c720 Build: only specify github-token when needed (#45326) 2022-02-11 16:01:45 +00:00
334ee9c4a7 Build: build enterprise2 with OSS (#45317)
* Build: build enterprise2 with OSS
2022-02-11 15:38:40 +01:00
5543ad883d CI: Remove grafana/drone-grafana-docker image (#44983)
* Remove grafana/drone-grafana-docker image

* Rename step

* Remove manual gcloud authentication

(cherry picked from commit 329b1a1ef3903c7e2c3ec1f286f9b0f00fcd023e)

* Add publish command for main

* Fix TAG variable parsing

* Remove shouldSave from main builds

* Reorder dependencies

* Update grabpl version
2022-02-07 18:30:41 +01:00
67225d9cfc Update upload-cdn command args (#44966) 2022-02-07 10:56:05 +01:00
f96a6c10c5 CI: Update GCP_GRAFANA_UPLOAD_KEY var name (#44303)
* Update GCP_KEY var name

* Rename GCP_GRAFANA_UPLOAD_KEY for upload-packages

* Update grabpl
2022-02-07 10:11:27 +01:00
7bb5a5b318 CI: Make e2e tests depend on binary builds (#44647)
* Make e2e test depend on binary builds

* Search for binary in the correct folders

* Remove package file var

* Add ARCH var
2022-02-02 12:40:22 +02:00
ef35cb5318 Update grabpl version (#44410) 2022-01-25 09:40:26 +01:00
9371690645 Update dependency cypress to v9.3.1 (#44206)
* Update dependency cypress to v9.3.1

* Upgrade cypress image

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-01-21 11:34:36 +01:00
22eb2df602 E2E: Rename end-to-end-tests-server to grafana-server (#44249)
* Rename to grafana-server / move scripts into new directory

* Change grafana-server step command

* Change scripts paths

* Use test grabpl version

* Update run-suite script

* Further name updates

* Update grabpl version

* Update contribute/style-guides/e2e-core.md

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

Co-authored-by: Maria Alexandra <239999+axelavargas@users.noreply.github.com>
2022-01-20 17:01:00 +00:00
27fbe82bf1 Remove test-release pipelines (#44220) 2022-01-19 16:42:40 +00:00