From 821633c796ef06ed9f52734af527e2e59eb8dbd8 Mon Sep 17 00:00:00 2001 From: Dimitris Sotirakis Date: Mon, 3 Apr 2023 14:04:30 +0300 Subject: [PATCH] CI: Make `init-enterprise` depend on `grabpl` (#65797) Make init-enterprise depend on grabpl # Conflicts: # .drone.yml --- .drone.yml | 38 ++++++++++++++-------- scripts/drone/pipelines/test_frontend.star | 2 +- scripts/drone/steps/lib.star | 1 + 3 files changed, 27 insertions(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4f8d457e355..8f6d5409b69 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2613,6 +2613,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -2874,6 +2875,12 @@ platform: os: linux services: [] steps: +- commands: + - mkdir -p bin + - curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.0.30/grabpl + - chmod +x bin/grabpl + image: byrnedo/alpine-curl:0.1.8 + name: grabpl - commands: - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" - cd grafana-enterprise @@ -2894,6 +2901,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -2903,12 +2911,6 @@ steps: - echo $DRONE_RUNNER_NAME image: alpine:3.17.1 name: identify-runner -- commands: - - mkdir -p bin - - curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.0.30/grabpl - - chmod +x bin/grabpl - image: byrnedo/alpine-curl:0.1.8 - name: grabpl - commands: - yarn install --immutable depends_on: @@ -2985,6 +2987,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -3180,6 +3183,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -3430,6 +3434,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -4452,6 +4457,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -5105,6 +5111,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -5376,6 +5383,12 @@ platform: os: linux services: [] steps: +- commands: + - mkdir -p bin + - curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.0.30/grabpl + - chmod +x bin/grabpl + image: byrnedo/alpine-curl:0.1.8 + name: grabpl - commands: - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" - cd grafana-enterprise @@ -5395,6 +5408,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -5404,12 +5418,6 @@ steps: - echo $DRONE_RUNNER_NAME image: alpine:3.17.1 name: identify-runner -- commands: - - mkdir -p bin - - curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.0.30/grabpl - - chmod +x bin/grabpl - image: byrnedo/alpine-curl:0.1.8 - name: grabpl - commands: - yarn install --immutable depends_on: @@ -5482,6 +5490,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -5616,6 +5625,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -5836,6 +5846,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -6228,6 +6239,7 @@ steps: - mv /tmp/grabpl bin/ depends_on: - clone-enterprise + - grabpl environment: GITHUB_TOKEN: from_secret: github_token @@ -6614,6 +6626,6 @@ kind: secret name: enterprise2_security_prefix --- kind: signature -hmac: 5854eba6447f784a354210984cb34a52f0d04a2df8387d2df1a24731e2838e9d +hmac: fdd3de326221eb73f644939b750b98b25de8dddbf9b9fc43e7a1db64e9a51088 ... diff --git a/scripts/drone/pipelines/test_frontend.star b/scripts/drone/pipelines/test_frontend.star index 843b1ce8b73..d41d1b7a08a 100644 --- a/scripts/drone/pipelines/test_frontend.star +++ b/scripts/drone/pipelines/test_frontend.star @@ -78,10 +78,10 @@ def test_frontend_enterprise(trigger, ver_mode, source, edition = "enterprise"): environment = {"EDITION": edition} steps = ( [ + download_grabpl_step(), clone_enterprise_step(source), init_enterprise_step(ver_mode), identify_runner_step(), - download_grabpl_step(), ] + with_deps([yarn_install_step()], ["init-enterprise"]) + [ diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star index ca9188834d9..82d61f390fd 100644 --- a/scripts/drone/steps/lib.star +++ b/scripts/drone/steps/lib.star @@ -171,6 +171,7 @@ def init_enterprise_step(ver_mode): "image": build_image, "depends_on": [ "clone-enterprise", + "grabpl", ], "environment": environment, "commands": [