Skip to content

Commit d70071e

Browse files
CI: Do not run Cloud tests automatically (#718)
* CI: Do not run Cloud tests automatically This will lead to faster runtimes and less flakiness. We rarely have to run those tests, we have very few cloud resources * Update workflow * remove target * Better comment
1 parent 26247fe commit d70071e

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.drone/drone.jsonnet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ local pipeline(name, steps, services=[]) = {
146146
},
147147
]
148148
) + {
149+
trigger: {
150+
event: ['promote'],
151+
},
149152
concurrency: { limit: 1 },
150153
},
151154

.drone/drone.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,8 @@ steps:
112112
image: golang:1.18
113113
name: tests
114114
trigger:
115-
branch:
116-
- master
117115
event:
118-
- pull_request
119-
- push
116+
- promote
120117
type: docker
121118
workspace:
122119
path: /drone/terraform-provider-grafana
@@ -426,6 +423,6 @@ kind: secret
426423
name: grafana-sm-token
427424
---
428425
kind: signature
429-
hmac: 859b4ecec6d95fed515f77177060967caf27b048bb6d8539a0b8a5f85317fd78
426+
hmac: e06354c28923331f229731c554363c1d778fb01464cde4ec885bb4f15a4e92fc
430427

431428
...
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on:
2+
pull_request:
3+
4+
jobs:
5+
info-comment:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
pull-requests: write
9+
steps:
10+
- uses: mshick/add-pr-comment@v2
11+
with:
12+
message: |
13+
In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically. To do so, a Grafana Labs employee must promote the Drone build.

0 commit comments

Comments
 (0)