Commit Graph
100 Commits
Author SHA1 Message Date
Dimitris SotirakisandGeorge Robinson ba0b2dfa1a Security: Fix XSS in runbook URL (#59540)
Fix XSS in runbook URL

Co-authored-by: George Robinson <george.robinson@grafana.com>
2022-11-30 12:37:16 +02:00
Dimitris Sotirakis d11c1ee646 Chore: Update latest.json to 9.3.0 (#59538)
Chore: update latest.json to 9.3.0
2022-11-30 04:52:36 -05:00
Dimitris Sotirakis 2d7fcea8fa CI: Remove npm steps from enterprise pipelines (#59108)
Remove npm steps from enterprise pipelines
2022-11-24 14:12:07 +02:00
Dimitris Sotirakis 27bd50da52 Docs: Update merge-pull-request.md regarding backport policies (#59239)
* Update merge-pull-request.md

* yarn run prettier:write
2022-11-23 20:51:09 +02:00
Dimitris Sotirakis 44402ff726 CI: Split enterprise2 pipelines (#57997)
* Add publishimages_enterprise2.go file

* Add push.go

* Modify build files

* Modify starlark files

* Remove promotion pipeline

* Remove unused args

* Handle tag for custom events
2022-11-21 20:06:00 +02:00
Dimitris Sotirakis 01afe9fbd4 CI: Move upload-packages subcmd from grabpl (#58960)
* Move upload-packages subcmd from grabpl

# Conflicts:
#	.drone.yml

# Conflicts:
#	.drone.yml

* Fix lint - add ActivateServiceAccount

* Fix lint
2022-11-18 17:22:14 +02:00
Dimitris Sotirakis 0bf3c98eec CI: Add environment variables for edition to all pipelines (#58964)
Add environment variables to pipelines
2022-11-18 16:15:04 +02:00
Dimitris Sotirakis e37fc888c0 CI: Move upload-cdn subcommand from grabpl (#58957)
Move upload-cdn from grabpl
2022-11-18 08:37:18 -05:00
Dimitris Sotirakis 5ea077c440 CI: Replace TAG with DRONE_TAG in CI (#58894)
* Replace TAG with DRONE_TAG

* Fix variable call

* Replace remaining bits

* Bump grabpl version
2022-11-17 08:30:09 -05:00
Dimitris Sotirakis d0dcbe34b2 grafana.com: Make beta and test releases not stable (#58883)
If version is beta or test, don't mark it as stable
2022-11-17 12:44:53 +02:00
Dimitris Sotirakis 5d73f7f8e8 CI: Cleanup e2e tests dependencies (#58829)
Cleanup end to end tests dependencies
2022-11-16 09:07:53 -05:00
Dimitris Sotirakis 3d016d67a2 latest.json: Update latest.json to 9.3.0-beta1 (#58788)
Update latest.json
2022-11-15 18:32:34 -03:00
Dimitris Sotirakis 09c3ead945 CI: Make build and store storybook trigger in the release process (#58686)
Make storybook trigger conditional
2022-11-14 10:14:50 +00:00
Dimitris Sotirakis bdb8fe3b02 Update drone-cli go mod to v1.6.1 (#58245) 2022-11-05 09:52:21 +02:00
Dimitris Sotirakis 9c1c10ab9a Remove base and arch args (#58209) 2022-11-04 13:21:18 +02:00
Dimitris Sotirakis 7a12132237 DEB/RPM Packages: Remove old package publishing steps (#58071)
* Remove old publish package steps

* Don't ignore publish packaging failures
2022-11-02 18:42:01 +00:00
Dimitris Sotirakis f3b8cd1c98 CI: Remove *-test-backend-enterprise2 pipelines (#58028)
* Remove test-backend-enterprise2 pipelines

* Remove leftover
2022-11-02 04:13:12 -04:00
Dimitris Sotirakis 57ee0e4a4b CI: Use full dockerhub repository name (#57979)
* Add full dockerhub repo name

* Update grabpl version
2022-11-01 15:33:16 +02:00
Dimitris Sotirakis 1eaf7cbfc0 Add GCP_KEY to publish-grafanacom step (#57910) 2022-11-01 09:41:15 +02:00
Dimitris Sotirakis e829b50149 CI: Add CreateTempDir func and use it in publish packages logic (#57171)
* Add CreateTempDir func and use it in publish packages logic

* Fill err return in defer func
2022-10-19 12:58:22 +02:00
Dimitris Sotirakis 0b72c36527 Replace json decoder with io.ReadAll (#57178) 2022-10-19 12:51:24 +03:00
Dimitris Sotirakis f0b882ebad Add token to init-enterprise (#57246) 2022-10-19 04:23:12 -04:00
Dimitris Sotirakis 7a71482371 Update grabpl to 3.0.14 (#57144) 2022-10-18 02:44:31 -04:00
Dimitris Sotirakis c96b6a6ab0 CI: Move CreateTempFile - use it for rpm/deb packages (#56990)
* Move CreateTempFile - use it for rpm/deb packages

* Fix typo

* Fix tests:
2022-10-17 16:23:57 +01:00
Dimitris Sotirakis 27f072beb3 Don't trigger tag event when merging (#57063) 2022-10-17 12:27:10 +03:00
Dimitris Sotirakis e25475b9c8 Make publish packages depend on compile-build-cmd and run from bin/build (#56713) 2022-10-17 10:58:36 +03:00
Dimitris Sotirakis b9d449529a Update grabpl to v3.0.12 (#56823) 2022-10-13 11:35:05 +03:00
Dimitris Sotirakis 62314bbf66 Remove grabpl dependency from yarn-install (#56692) 2022-10-11 18:58:03 +03:00
Dimitris Sotirakis 94fe605175 Update latest json (#56732) 2022-10-11 14:35:50 +00:00
Dimitris Sotirakis efc8f985cb Remove build-frontend-packages step from docs pipelines (#56686) 2022-10-11 06:56:43 -04:00
Dimitris Sotirakis 66cb56de79 CI: Trigger tag on CI changes (#55388)
* Trigger tag on CI changes

* Use github token available for PRs

Remove remote addition

* Replace origin with full url

Remove fetch for origin

Fix fetch

Remove --quite

Add rebase

Stash changes from verify-gen-cue

Cleanup

* Add --quiet when fetching
2022-10-11 12:01:18 +03:00
Dimitris Sotirakis 668cb25b82 Fix release test pipelines dependencies (#56671) 2022-10-11 11:42:24 +03:00
Dimitris Sotirakis 811f6054c8 Add dependencies (#56666) 2022-10-11 10:05:13 +03:00
Dimitris Sotirakis eb077db2b0 Add clone-enterprise and init-enterprise steps (#56662) 2022-10-10 22:46:12 +03:00
Dimitris Sotirakis 75c5845749 CI: Split release test pipelines (#56655)
* Split test release pipelines

* Add missing dependencies

* Add release branch case when naming pipeline
2022-10-10 11:46:56 -04:00
Dimitris Sotirakis df2abf09c2 Use io.ReadAll instead of json.Decode (#56528) 2022-10-07 04:27:18 -04:00
Dimitris Sotirakis 66e8f39ce8 Packaging: Change from 0750 to 0755 folder permissions when packaging (#56436)
* Change from 0750 to 0755

* Change to 0o755

* Skip lint when creating dir
2022-10-06 17:11:11 +03:00
Dimitris Sotirakis 3aacda5579 Move files under pkg/build/packaging (#56435) 2022-10-06 03:33:40 -04:00
Dimitris Sotirakis ec7d9e196e Change from grabpl to build for grafana-com (#56434) 2022-10-06 08:14:38 +01:00
Dimitris Sotirakis 636ae8d091 Update grabpl version to v3.0.11 (#56377) 2022-10-05 14:18:28 +03:00
Dimitris Sotirakis 5cdc932f8c CI: Stop publishing OSS images for security mode (#56088)
* No-op: Refactor publish images pipeline struct

* Stop publishing images for OSS
2022-10-05 09:39:38 +03:00
Dimitris Sotirakis d94af21cac Replace filename with path without the local dir (#56296) 2022-10-04 17:18:07 +03:00
Dimitris Sotirakis 26d64a778e Add cronjob option at switch case (#56272) 2022-10-04 11:15:47 +01:00
Dimitris Sotirakis 8eea6f7f4f Add edition as environment var (#56069) 2022-10-04 10:35:18 +03:00
Dimitris Sotirakis f7c6fe0c97 Fix update-changelog.yml version input (#56224) 2022-10-04 02:55:13 -04:00
Dimitris Sotirakis d32c67b52a CI: Add packages-bucket flag to publish packages command (#56170)
* Add public bucket string

* Fix lint
2022-10-03 13:29:32 +01:00
Dimitris Sotirakis 947838cca0 CI: Move grafanacom command to OSS (#55853)
* Move publish-packages command over from

* Fix lint

* Move grafanacom command to OSS

* Add GetLatestMainBuild to gsutil

* Fix lint

* More lint fixes

* Add tests for grafanacom

* Fix lint
2022-10-03 14:14:24 +03:00
Dimitris Sotirakis 9a68f8704f CI: Move publish-packages command over from grabpl (#55850)
* Move publish-packages command over from

* Lint fixes

* Update test
2022-09-29 07:32:42 -04:00
Dimitris Sotirakis 46037cff56 Remove prepare-release.yml (#55893) 2022-09-28 04:52:42 -04:00
Dimitris Sotirakis cd360f2d2a Add nightly cronjob (#55675) 2022-09-27 08:49:20 -05:00
Dimitris Sotirakis 2a3f423e10 Replace armhf with armhfp for RPMs (#55814) 2022-09-27 08:49:00 -05:00
Dimitris Sotirakis 61c50ca1aa Update grabpl version to v3.0.9 (#55621) 2022-09-23 09:19:55 +03:00
Dimitris Sotirakis a9a86cbe54 Introduce lint-frontend pipeline (#55559) 2022-09-21 14:39:28 -05:00
Dimitris Sotirakis c18432971b CI: Introduce lint-backend pipeline (#55476)
* Introduce lint-backend pipeline

* Use go image and install make

* Don't run lint pipeline on .drone.yml changes
2022-09-21 07:05:19 -04:00
Dimitris Sotirakis cb93ed04a7 Add storybook bucket for main builds (#55448) 2022-09-20 13:15:06 +03:00
Dimitris Sotirakis b26e443173 Fix fetch-images command (#55365) 2022-09-19 17:17:56 +03:00
Dimitris Sotirakis 2c872b0d94 Run enterprise downstream after OSS CI is done (#55366) 2022-09-19 17:17:36 +03:00
Dimitris Sotirakis f058e1eae3 Add storybook bucket for main builds (#55379) 2022-09-19 17:17:25 +03:00
Dimitris Sotirakis 93e78e2146 CI: Move fetch-images sub-command from build-pipeline repo (#55298)
* Move fetch images from build-pipeline

* Modify drone

* Replace zerolog with builtin log

* Fix lint
2022-09-19 11:19:31 +03:00
Dimitris Sotirakis 5f16e4cedc Rename build-e2e-publish pipelines (#44836) 2022-02-03 14:23:50 +00:00
Dimitris Sotirakis 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
Dimitris Sotirakis ef35cb5318 Update grabpl version (#44410) 2022-01-25 09:40:26 +01:00
Dimitris SotirakisandMaria Alexandra 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
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