Commit Graph

313 Commits

Author SHA1 Message Date
Agnès Toulet
3e5e86d926
Drone: remove flag from main downstream step (#50681) 2022-06-13 17:06:11 +02:00
Kat Yang
bd35e6917a
Chore: Exclude integration tests from running on test-backend step (#50359)
* Chore: Exclude integration tests from running on test-backend step

* Remove -v from go test command

* Add check to skip integration tests before each integration test

* Try to restart pipeline

* Retrying to make pipeline run
2022-06-10 11:46:21 -04:00
Dimitris Sotirakis
5633648383
Rename release pipelines (#50585) 2022-06-10 12:28:50 +02:00
sam boyer
9fc889f5f6
ci: Depend on init-enterprise for gen-cue verify (#50191) 2022-06-09 09:48:27 +03:00
sam boyer
8876d56495
schema: Migrate from scuemata to thema (#49805)
* Remove crufty scuemata bits

Buhbye to: cue/ dir with old definitions, CI steps for checking unnecessary
things, and the original dashboard scuemata file.

* Remove grafana-cli cue subcommand

* Remove old testdata

* Don't swallow errors from codegen

* Small nits and tweaks to cuectx package

* WIP - refactor pluggen to use Thema

Also consolidate the embed.FS in the repo root.

* Finish halfway rename

* Convert all panel models.cue to thema

* Rewrite pluggen to use Thema

* Remove pkg/schema, and trim command

* Remove schemaloader service and usages

Will be replaced by coremodel-centric hydrate/dehydrate system Soon™.

* Remove schemaloader from wire

* Remove hangover field on histogram models.cue

* Fix lint errors, some vestiges of trim service

* Remove unused cuetsify cli command
2022-06-06 17:52:44 -07:00
Dimitris Sotirakis
7b750cc0f0
Update Golang - bump grabpl and build-container (#50253) 2022-06-06 15:38:39 +02:00
Kat Yang
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
Dimitris Sotirakis
b6a329c268
CI: Trigger pr-test-* pipelines on different cases (#48426)
* Trigger pr-test-backend pipeline on pkg/* changes

* Exclude paths for pr-test-frontend pipeline

* Add more paths

* Revert *.md - trigger on go.* changes

* Replace star with doublestar
2022-06-01 11:47:50 +03:00
sam boyer
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
Kevin Minehart
61101056b6
upgrade grabpl (#49534) 2022-05-24 13:18:05 -05:00
Agnès Toulet
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
Dimitris Sotirakis
20f62e1841
CI: Split main tests pipeline (#48628)
* Split tests pipeline

* Rename dependencies
2022-05-03 13:54:47 +02:00
Dimitris Sotirakis
c3ba6f962b
CI: Run docs pipeline only upon changes to root markdown files (#48433)
* Run docs pipeline only upon changes to root markdown files

* Include latest/json
2022-04-28 17:41:46 +03:00
Dimitris Sotirakis
a7a5476ac2
CI: Split publish-packages pipeline (#48414)
* Split publish packages pipeline

* Small refactoring
2022-04-28 14:53:32 +03:00
Dimitris Sotirakis
67752ad88c
Reorder dependencies for npm release steps (#48403) 2022-04-28 12:15:28 +02:00
Dimitris Sotirakis
ff23f78b51
Split frontend and backend pipelines (#48362) 2022-04-28 12:04:03 +03:00
Dimitris Sotirakis
430b9ae5cb
CI: Rename main pipelines (#48245)
* Rename main pipelines

* Rename dependencies
2022-04-26 11:40:13 +01:00
Dimitris Sotirakis
412be1f1cf
Add yarn-install when publishing npm packages (#48061) 2022-04-21 16:31:39 +02:00
Emil Tullstedt
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
Dimitris Sotirakis
4510519941
Update grabpl (#47824) 2022-04-15 16:00:26 +02:00
Dimitris Sotirakis
508cc58a63
CI: Remove unused --github-token flag (#47773)
* Remove github token flag

* Minor cleanup

* Update grabpl
2022-04-15 10:42:58 +03:00
Dimitris Sotirakis
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
Dimitris Sotirakis
1957863b67
Update grabpl (#47643) 2022-04-13 12:22:39 +03:00
Dimitris Sotirakis
cfaf058b20
Storybook: Add store-storybook command (#47557)
* Add store-storybook command

* Update grabpl version
2022-04-12 12:26:45 +03:00
Dimitris Sotirakis
ce2a9252c2
Replace with secret (#47488) 2022-04-08 10:06:45 +02:00
Dimitris Sotirakis
0845ba1abb
Make gsutil command don't fail if dir doesn't exist (#47394) 2022-04-07 09:30:09 +03:00
Jack Westbrook
a1ebcd520c
Build: Remove redundant build_npm_packages_step (#47384) 2022-04-06 14:26:59 +02:00
Dimitris Sotirakis
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
Dimitris Sotirakis
c72881a8b1
Update grabpl version (#47375) 2022-04-06 11:08:05 +02:00
Jack Westbrook
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
Dimitris Sotirakis
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
Dimitris Sotirakis
305530224a
Run slack notify on OSS repo only (#47194) 2022-04-01 14:20:26 +02:00
Dimitris Sotirakis
ee92af8ebe
Add dependencies (#47126) 2022-03-31 15:04:05 +03:00
Dimitris Sotirakis
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
malcolmholmes
562397ff8b
Build: only build on OSS for main/version (#46079)
* Only do main/version builds on OSS repo

* Sign drone

Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com>
2022-03-29 12:57:54 +00:00
Dimitris Sotirakis
0e682397ab
Add GH token when referring to remote - add --quite when running git push (#46926) 2022-03-24 15:01:49 +00:00
Dimitris Sotirakis
9bf82c37e3
Fetch tags after cloning (#46921) 2022-03-24 11:54:58 +00:00
Dimitris Sotirakis
758ccfb69e
CI: Trigger release build upon drone yaml changes (#46882)
* Add trigger-test-release step

* Change cd command

* Add failure:ignore

* Add depth when cloning

* Fix wrong secret
2022-03-24 10:59:15 +00:00
Dimitris Sotirakis
85184ee9dc
Update grabpl (#46639) 2022-03-16 13:31:20 +00:00
Dimitris Sotirakis
a29159f362
Update golang (#46458) 2022-03-11 16:09:17 +01:00
Dimitris Sotirakis
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
Jack Westbrook
73ba04cda6
Build: Bump grabpl to 2.9.24 (#46420) 2022-03-11 11:05:41 +01:00
renovate[bot]
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
Dimitris Sotirakis
b409c9782f
Update grabpl (#46253) 2022-03-04 16:31:39 +01:00
Kevin Minehart
0544218bb7
upgrade to 2.9.21 (#46219) 2022-03-03 19:00:46 -06:00
Kevin Minehart
593b2846c6
upgrade to 2.9.20 (#46217) 2022-03-03 18:09:14 -06:00
Kevin Minehart
085a8fde67
linux-x64 -> linux-amd64 (#46209) 2022-03-03 23:53:09 +01:00
Kevin Minehart
09e74c5ec5
upgrade grabpl (#46192) 2022-03-03 18:42:29 +00:00
Dimitris Sotirakis
42dd4d687d
CI: Change variants for pr_pipelines (#46170)
* Change variants for pr_pipelines

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

* Change variants for pr_pipelines
2022-03-03 16:31:44 +02:00