zuul/tests/fixtures/layout-timer.yaml
Clark Boylan 3ee090a243 Fix races in timer trigger tests.
Timer trigger tests are vulnerable to a race where the timer trigger can
enqueue new builds while we are checking the number of builds queued.
This can happen during intermediate build queue checks or in
assertFinalState.

To fix this race swap in a layout that does not use the timer trigger
which will prevent further build queueing once the timer triggered
builds have done their thing.

Change-Id: Ic9b64e34c6a39275b57b1299b47d9b1d0e0e5c79
2014-04-23 12:43:17 -07:00

29 lines
540 B
YAML

pipelines:
- name: check
manager: IndependentPipelineManager
trigger:
gerrit:
- event: patchset-created
success:
gerrit:
verified: 1
failure:
gerrit:
verified: -1
- name: periodic
manager: IndependentPipelineManager
trigger:
timer:
- time: '* * * * * */1'
projects:
- name: org/project
check:
- project-merge:
- project-test1
- project-test2
periodic:
- project-bitrot-stable-old
- project-bitrot-stable-older