Commit Graph
100 Commits
Author SHA1 Message Date
Dimitris Sotirakis 27fbe82bf1 Remove test-release pipelines (#44220) 2022-01-19 16:42:40 +00:00
Dimitris Sotirakis 46280848d8 CI: Release automation fixes (#44200)
* Change bucket

(cherry picked from commit f7b85c5dd9)

* Make publish-packages depend on publish-artifacts pipeline

(cherry picked from commit 1c91e84f17)

* Change bucket for windows .msi installers

(cherry picked from commit 5ce49e48df)
2022-01-19 15:12:57 +02:00
Dimitris Sotirakis 3d6c905eb8 Update latest.json (#44172) 2022-01-18 17:20:16 +01:00
Dimitris SotirakisandKevin Minehart c1ba0afdc7 GetUserInfo: Return an error if no user was found (#44169)
* return an error if no user was found

* Update database.go

Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2022-01-18 17:03:16 +01:00
Dimitris Sotirakis 118cc0d735 Replace docker-puppeteer with the one in grafana dockerhub repo (#44145) 2022-01-18 12:23:21 +01:00
Dimitris Sotirakis 9fc46b19e3 Update grabpl version to 2.8.4 (#44045) 2022-01-14 15:54:16 +02:00
Dimitris Sotirakis 787d55fb2d Update grabpl version to 2.8.3 - modify commands (#43996) 2022-01-13 13:57:15 +02:00
Dimitris Sotirakis 0c88b39162 Bug: Make e2e artifacts upload run at the end of the pipeline (#43962)
* Rename step

* Make e2e tests artifacts upload run even on failed e2e tests
2022-01-12 17:58:35 +02:00
Dimitris Sotirakis 634ce4a98e Update grabpl version to 2.8.2 (#43949) 2022-01-12 13:07:29 +02:00
Dimitris Sotirakis ee0a30c8c2 Update grabpl version to 2.8.1 (#43902) 2022-01-11 20:53:40 +02:00
Dimitris Sotirakis 4f47832bac CI: Automate Grafana releases (#43897)
* CI: Automate releases

* Update grabpl version
2022-01-11 16:28:29 +02:00
Dimitris Sotirakis f60a2e8152 Chore: Split release pipelines (#43419)
* Split release pipelines

* Re-add pr and main pipelines
2022-01-11 09:17:00 +00:00
Dimitris Sotirakis 79d10c6903 Add packages:publishPrevious command (#43800) 2022-01-07 16:19:58 +02:00
Dimitris Sotirakis beba5958a4 Remove duplication (#43694) 2022-01-07 11:23:17 +02:00
Dimitris Sotirakis 3625c617fa Add packages:publishTest command (#43696) 2022-01-05 10:53:46 +01:00
Dimitris Sotirakis 6926cb3060 Remove cypress cache volumes (#43667) 2022-01-04 16:28:06 +02:00
Dimitris Sotirakis e3baa24946 CI: Remove initialize step from integration tests pipeline (#43663)
* Remove initialize step from integration tests

* Remove initialize step from integration tests on main pipelines
2022-01-04 14:17:20 +01:00
Dimitris Sotirakis 59e153cde8 Remove Github Packages publish step (#43453) 2021-12-23 10:12:37 +02:00
Dimitris Sotirakis d88502112f Chore: Replace publish keyword with store (#43340)
* Replace publish keyword with store

* Rename publish_steps with store_steps

* Update grabpl version
2021-12-20 12:23:51 +01:00
Dimitris Sotirakis b7f8c1855d Add services to main-integration-tests (#43325) 2021-12-20 09:33:47 +01:00
Dimitris Sotirakis 2fd2fd353e Split pipelines on main builds (#43324) 2021-12-20 09:09:25 +01:00
Dimitris SotirakisandKyle Brandt c798c0e958 Security: Fix directory traversal issue (#42846)
* security: fix dir traversal issue

(cherry picked from commit 00e38ba555)

* Improve comments and error message.

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2021-12-07 19:15:53 +02:00
Dimitris Sotirakis dc627a3d47 Remove e2e tests on enterprise2 (#42640) 2021-12-02 14:55:23 +02:00
Dimitris Sotirakis 54ea2ed766 CI: Notify channel on drone yaml changes (#42428)
* Notify on drone yaml changes

* Change secrets

* Remove test notification

* Fix typo
2021-11-29 20:08:13 +02:00
Dimitris Sotirakis db122e9b2c CI: Run e2e tests in parallel using multiple suites (#41748)
* Split suite1 to multiple e2e test suites

* Update drone yaml

* Add missing arg

* Extract cypress install step

* Change image on e2e tests step

* Sync with main

* Add cypress cache volume

* Try with grafana/ci-e2e:12.19.0-1 image

* Update grabpl version to 2.7.2

* Revert a11y failure back to 'always'
2021-11-24 11:20:11 +01:00
Dimitris Sotirakis e3bb53b64d CI: Remove Linux grabpl step dependency from Windows builds (#42069)
* Remove Linux grabpl download step from Windows oss builds

* Remove Linux grabpl download step from Windows enterprise builds
2021-11-23 09:57:16 +01:00
Dimitris Sotirakis 4b2c90b834 Add deployment_tools_config.json to git and eslint ignore (#42053)
(cherry picked from commit 15a603dae0)
2021-11-22 12:36:21 +01:00
Dimitris Sotirakis bec3cc4634 Make integration tests depend on initialize for enterprise-release-* branches (#42004) 2021-11-19 21:50:34 +01:00
Dimitris Sotirakis 42c51747ed Refactor drone yaml (#41937) 2021-11-19 11:35:57 +01:00
Dimitris Sotirakis 0462577f3d Install netcat to build-container and update the version (#41825) 2021-11-19 09:17:29 +01:00
Dimitris Sotirakis 7dcc5ca199 Make initialize depend on clone, only on enterprise pipelines (#41909) 2021-11-18 18:10:25 +02:00
Dimitris Sotirakis e8a2a82d5c Run integration tests after initialize (#41906) 2021-11-18 17:59:22 +02:00
Dimitris Sotirakis 53dc388dcf Disable lint-drone from release pipelines (#41899) 2021-11-18 17:32:45 +02:00
Dimitris Sotirakis c82a15eafb Update grabpl version to 2.6.1 (#41892) 2021-11-18 15:56:49 +01:00
Dimitris Sotirakis b8dd9fdd4a CI: Make build, test and integration tests steps run in parallel (#40794)
* Make build and test steps run in parallel

* Make tests and builds run on different pipelines

* Make test-backend depend on initialize

* Rename

* Create standalone integration tests pipeline (#41730)

* Remove unused variables
2021-11-17 11:25:55 +02:00
Dimitris Sotirakis 86d79e4625 Add grabpl step only if platform=linux (#41732) 2021-11-16 11:46:44 +01:00
Dimitris Sotirakis 99900cbdd8 CI: Make grabpl and lint-drone standalone steps (#41644)
* Extract grabpl download as separate step

* Change image to alpine

* Change image to curlimage

* Change image to alpine-curl

* Extract lint-drone step

* Add lint-drone to release and main pipelines

* Rename lint_drone to lint_drone_step

* Sign drone
2021-11-15 17:14:33 +00:00
Dimitris Sotirakisandgamab 2c8ac1f58f Security Fix: Fine-grained access control enables organization admins to create/modify/delete user roles in other organization (#41694)
* 8.2.4: Fine-grained access control enables organization admins to create/modify/delete user roles in other organization

* Revert back calls with ScopeOrgID

Co-authored-by: gamab <gabi.mabs@gmail.com>
2021-11-15 15:35:09 +01:00
Dimitris Sotirakis a076a4170c Release Notes: Update Release Notes and Changelog for 8.2.4 security fix (#41691)
* 8.2.4: Update CHANGELOG.md and release-notes-8-2-4.md

* Update blog post link
2021-11-15 15:28:22 +01:00
Dimitris Sotirakis 2b2c0b8b5e Remove check for local drone version (#41535) 2021-11-12 14:08:43 +00:00
Dimitris Sotirakis 13df0901a8 Remove build-deploy.sh (#41586) 2021-11-11 09:23:12 +01:00
Dimitris Sotirakis b79eab8455 Make script not fail if reports/docs directory doesn't exist (#41527) 2021-11-10 18:07:39 +02:00
Dimitris Sotirakis ad4fc4d87e Remove FocusConvey check (#41165) 2021-11-09 12:38:51 +01:00
Dimitris Sotirakis 7465716086 ReleaseNotes: Update release notes for v8.2.3 (#41269)
* ReleaseNotes: Updated release notes for v8.2.3

* Update release-notes-8-2-3.md

* Update CHANGELOG.md
2021-11-03 15:38:19 +01: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
Dimitris Sotirakis 8a3e192e6a InfluxDB: Fix regular expression to parse aliases according to documentation (#41186)
* Fix regular expression to parse aliases that start with either square brackets or dollar sign

* Fix lint
2021-11-02 13:26:11 +01:00
Dimitris Sotirakis 469a5e4a85 Comment out "Queries with new datasource ref object" test (#41187) 2021-11-02 13:09:51 +02:00
Dimitris Sotirakis 5e813ea454 Add isl and expat libs as tarballs explicitly (#41138) 2021-11-01 15:12:16 +02: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 b926edf666 Add /packaging/**/*.tar.gz.sha256 to .gitignore (#40651) 2021-10-19 20:15:18 +02: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 534e6b3f5a Add @grafana/grafana-release-eng to CODEOWNERS (#40468) 2021-10-14 15:39:54 +02:00
Dimitris Sotirakis cc67b1802c Remove unused push_to_deployment_tools step (#40308) 2021-10-12 09:44:52 +03: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
Dimitris Sotirakis d023cabae6 Add Headers to http client Options (#40214) 2021-10-08 16:52:41 +03:00
Dimitris Sotirakis f65372789e Chore: Add Kevin Minehart to CODEOWNERS for CI related code (#40074)
* Add Kevin Minehart to CODEOWNERS for CI related code

* Remove zserge from CODEOWNERS
2021-10-06 14:53:02 +02: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
Dimitris Sotirakis fdc681788b InfluxDB: Fix regex to identify / as separator (#39185)
* Fix regex to identify / as separator

* Update regex
2021-09-15 09:37:33 +01:00
Dimitris Sotirakis ed810da1f6 Update to grabpl 2.4.6 (#39177) 2021-09-14 16:21:04 +02:00
Dimitris Sotirakis f5ecf5c2d9 Cast fields to int64 (#39179) 2021-09-14 14:57:12 +02:00
Dimitris Sotirakis ba9d5540b8 Datasources: Introduce response_limit for datasource responses (#38962)
* Introduce response_limit for datasource responses

* Fix lint

* Fix tests

* Add case where limit <= 0 - added parametrized tests

* Add max_bytes_reader.go

* Use new httpclient.MaxBytesReader instead of net/http one

* Fixes according to reviewer's comments

* Add tests for max_bytes_reader

* Add small piece in configuration.md

* Further fixes according to reviewer's comments

* Fix linting - fix test
2021-09-10 16:51:06 +03:00
Dimitris Sotirakis 78b3847014 Copy cue.mod and packages/grafana-schema to container workdir (#38998) 2021-09-09 08:54:36 +03:00
Dimitris Sotirakis 5f10843203 Chore: Rename scripts/star dir to scripts/drone (#38910)
* Rename scripts/star dir to scripts/drone

* Update CODEOWNERS after paths change
2021-09-07 12:15:04 +03:00
Dimitris Sotirakis 2316c3942b Chore: Tidy up starlark files into folders (#38874)
* Tidy up starlark files into folders

* Rename steps

* Make sure lib.star only contain steps - added services.star and utils.star
2021-09-07 10:21:49 +03:00
Dimitris Sotirakis e5cdf9e4d1 Add type/ci as label on CI related file changes (#38831) 2021-09-02 18:22:51 +02: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 89716f2806 Remove ci-build-windows folder (#38778) 2021-09-01 10:44:08 +02:00
Dimitris Sotirakis 3fb5afb9e3 Update Dockerfile (#38744) 2021-08-31 12:53:17 +03:00
Dimitris SotirakisandMarcus Efraimsson 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 d7daaa19df Add CODEOWNERS for CI related code (#38606) 2021-08-27 09:06:15 +03:00
Dimitris Sotirakis 00886afaf1 Force use versions of libcrypto1.1 and libssl1.1 (#38585) 2021-08-26 15:22:53 +02:00
Dimitris Sotirakis 12320dda3c Elasticsearch: Fix metric names for alert queries (#38546)
* Export fieldName to var

* Add empty string as frame name
2021-08-26 09:20:38 +02: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
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
Dimitris Sotirakis da72dc55cb Update to golang:1.16.1-alpine3.14 (#38508) 2021-08-24 16:13:12 +02:00
Dimitris Sotirakis 309d263531 Chore: Add public/lib to .prettierignore (#38479)
* Add public/lib to .prettierignore

* Fixes according to reviewer's comments
2021-08-24 10:11:44 +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
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 050dc7bc8f Cloudwatch: Unwrap errors - throw error from upstream (#36334)
* Unwrap errors - throw error from upstream

* Fixes according to reviewer's comments

* Fix linting

* Remove unused code
2021-08-18 10:37:13 +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
Dimitris Sotirakis 1aeafa34d1 Elasticsearch: Fix metric names for alert queries (#37871)
* Use props names as metrics names

* Make aliases work
2021-08-16 14:45:20 +03:00
Dimitris Sotirakis db91a55d49 Remove duplicated title from slack notification (#37834) 2021-08-13 15:13:02 +03:00
Dimitris Sotirakis e4779cfb4f Remove pkg-archive from Makefile (#37821) 2021-08-12 11:39:09 +03:00
Dimitris Sotirakis 27c71a1f09 Prometheus: Migrate to use SDK contracts (#37358)
* Use SDK contracts (test needs fixing)

* Fix tests

* Add customQueryParametersMiddleware

* Fix merge conflicts
2021-08-09 11:11:19 +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
Dimitris Sotirakisandsam boyer 2e0dc835cf Scuemata: Add test to validate devenv resources (#35810)
* Add test for devenv resources

* Refactor validation tests for grokkability

* Devenv dashboards error-tracking script

* Refactor to use cueerrors.Details()

* Further test refinement

* Close major elements of dashboard schema

* Centralize dashboard validation tests

General dashboard validation testing belongs in the load package.

* Better names for error context on glue CUE code

* Fixup validate-resource

Do only one of base or dist, and fix copied docs.

* Skip the devenv test

* Remove test for validateResources

* Fix shellcheck

* Backend linter

Co-authored-by: sam boyer <sdboyer@grafana.com>
2021-07-15 20:08:03 -04:00
Dimitris Sotirakis 0df1b33d71 Plugins: Migrate Elasticsearch to backend plugin SDK (#36132)
* Migrate Elasticsearch to backend plugin SDK

* Fix linting

* Move away from Convey!

* Rebase commit

* Small logger fix

* Fixes according to reviewer's comments

* Fixes according to reviewer's comments

* Fixes according to reviewer's comments

* More cleanup

* Move things around - small refactoring

* Fix typo

* Update calculator - add tests

* Fixes according to reviewer's comments
2021-07-15 16:45:59 +02:00
Dimitris Sotirakis 069fb0cf38 HTTP Client: Introduce dataproxy_max_idle_connections config variable (#35864)
* Introduce dataproxy_max_idle_connections config var

* Fix according to reviewer's comments

* Fix according to reviewer's comments - round 2

* Remove unused const

* Bring back MaxIdleConnsPerHost

* Fixes according to reviewer's comments
2021-07-07 13:13:53 +03:00
Dimitris Sotirakis a18d3007a7 Folders: Return 409 Conflict status when folder already exists (#36429)
* Return 409 Conflict when trying to post folder that already exists

* Fix tests

* Update documentation for new error message in folders api
2021-07-06 11:11:29 +02:00
Dimitris Sotirakis 084c9c8746 Dashboards: Add IsFolder field into models.GetDashboardQuery (#36214)
* Add IsFolder field into models.GetDashboardQuery

* Reverted folderId - return dummy success when calling get folder with id 0

* Moved condition to upper level - add test
2021-07-01 11:40:38 +03:00