Skip to content

Commit

Permalink
ci flakiness / pod-spawning - strongify the test flow
Browse files Browse the repository at this point in the history
This changes ensure the microshift-pod job takes longer in order
that we see it appears in the zuul status page.

Also re-use the job uuid for looking in the zuul API result pages.

Additionaly, update job timeout.

Change-Id: Ie6dc6f96275473edfe7a2145681987fbc757f517
  • Loading branch information
morucci committed Nov 29, 2023
1 parent f903fac commit ec399fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions roles/health-check/pod-spawning/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
- hosts: localhost,all
tasks:
- name: Doing command
command: sleep 2
command: sleep 15
dest: "{{ config_path }}/playbooks/microshift-pod.yml"

- name: Create git commit message
Expand Down Expand Up @@ -119,7 +119,7 @@
register: _job_uuid
until: _job_uuid.stdout != "" and "null" not in _job_uuid.stdout
retries: 60
delay: 1
delay: 2
tags:
- skip_ansible_lint

Expand All @@ -135,5 +135,6 @@
- zuul_job_result.json != []
- "'result' in zuul_job_result.json[0]"
- zuul_job_result.json[0]["result"] == 'SUCCESS'
- zuul_job_result.json[0]["uuid"] == _job_uuid.stdout
retries: 60
delay: 30
delay: 2
5 changes: 2 additions & 3 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- playbooks/post.yaml
run: playbooks/main.yaml
abstract: true
timeout: 5200
irrelevant-files: &irrelevant-files
- ".*.md$"
- "doc/.*"
Expand Down Expand Up @@ -44,6 +45,7 @@
parent: sf-operator-microshift-multinode
pre-run: *pre-run
post-run: *post-run
timeout: 5200
run: playbooks/main.yaml
abstract: true
irrelevant-files: *irrelevant-files
Expand Down Expand Up @@ -85,15 +87,13 @@
- job:
name: sf-operator-olm
description: Validates a sf-operator deployment via OLM
timeout: 3600
parent: sf-operator
vars:
mode: "olm"

- job:
name: sf-operator-upgrade
description: Validates a sf-operator upgrade via OLM
timeout: 3600
parent: sf-operator
run: playbooks/upgrade.yaml
vars:
Expand All @@ -102,7 +102,6 @@
- job:
name: sf-operator-standalone
description: Validates a sf-operator standalone deployment in multinode
timeout: 3600
parent: sf-operator-multinode
vars:
mode: "standalone"
Expand Down

0 comments on commit ec399fb

Please sign in to comment.