Run benchmarks in cron jobs. (#4636)

* Run benchmarks in cron jobs.

* Increase benchmark timeout.

* Trigger every four hours.
pull/4711/head
Karsten Jeschkies 4 years ago committed by GitHub
parent 413ffab235
commit 5b9f5b9efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      .drone/drone.jsonnet
  2. 20
      .drone/drone.yml

@ -329,6 +329,18 @@ local manifest(apps) = pipeline('manifest') {
make('check-example-config-doc', container=false) { depends_on: ['clone'] },
],
},
pipeline('benchmark-cron') {
workspace: {
base: '/src',
path: 'loki',
},
node: { type: 'no-parallel' },
steps: [
run('LogQL', ['go test -mod=vendor -bench=Benchmark -benchtime 20x -timeout 120m ./pkg/logql/'])
],
trigger: {event: ['cron'], cron: ['loki-bench']},
//when: condition('include').tagMain,
},
] + [
multiarch_image(arch)
for arch in archs

@ -56,6 +56,24 @@ workspace:
base: /src
path: loki
---
kind: pipeline
name: benchmark-cron
node:
type: no-parallel
steps:
- commands:
- go test -mod=vendor -bench=Benchmark -benchtime 20x -timeout 120m ./pkg/logql/
image: grafana/loki-build-image:0.18.0
name: LogQL
trigger:
cron:
- loki-bench
event:
- cron
workspace:
base: /src
path: loki
---
depends_on:
- check
kind: pipeline
@ -936,6 +954,6 @@ kind: secret
name: deploy_config
---
kind: signature
hmac: 7b6eb119ab31c369dda4d65a5b26aae344e0dd4815196bfef75f93e99ebb202b
hmac: 6b8d9fa66b043f8338f674bb0c4deb881195d23d9ce048ad1ed284483b873ee3
...

Loading…
Cancel
Save