Skip to content

Commit da3299d

Browse files
authored
Merge pull request #18 from shiftstack/prow-onboarding
Add OWNERS, CODEOWNERS, and ansible-lint GitHub Action for Prow onboarding
2 parents b820b7a + 10d1a6d commit da3299d

6 files changed

Lines changed: 74 additions & 1 deletion

File tree

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Default reviewers for all files
2+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
3+
4+
* @arxcruz @chenwng @dlaw4608 @ekuris-redhat @eshulman2 @gryf @imatza-rh @kstrenkova @mandre @stephenfin @tusharjadhav3302 @winiciusallan

.github/workflows/ansible-lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Ansible Lint
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
ansible-lint:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: quay.io/shiftstack-qe/shiftstack-client
14+
options: --user root
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Mark workspace as safe for git
20+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
21+
22+
- name: Install Ansible collections
23+
run: ansible-galaxy collection install -r requirements.yaml
24+
25+
- name: Run pre-commit (ansible-lint)
26+
run: pre-commit run --all-files
27+
env:
28+
ANSIBLE_VAULT_PASSWORD_FILE: /home/cloud-admin/.vault-pass

OWNERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
2+
# This file just uses aliases defined in OWNERS_ALIASES.
3+
4+
approvers:
5+
- openstack-approvers
6+
7+
reviewers:
8+
- openstack-reviewers

OWNERS_ALIASES

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# See the OWNERS_ALIASES docs: https://git.k8s.io/community/contributors/guide/owners.md#OWNERS_ALIASES
2+
3+
aliases:
4+
openstack-approvers:
5+
- arxcruz
6+
- chenwng
7+
- dlaw4608
8+
- ekuris-redhat
9+
- eshulman2
10+
- gryf
11+
- imatza-rh
12+
- kstrenkova
13+
- mandre
14+
- stephenfin
15+
- tusharjadhav3302
16+
- winiciusallan
17+
openstack-reviewers:
18+
- arxcruz
19+
- chenwng
20+
- dlaw4608
21+
- ekuris-redhat
22+
- eshulman2
23+
- gryf
24+
- imatza-rh
25+
- kstrenkova
26+
- mandre
27+
- stephenfin
28+
- tusharjadhav3302
29+
- winiciusallan

collection/stages/roles/day2ops/tasks/procedures/run-performance-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090

9191
- name: Collect SRIOV DUT port MACs
9292
ansible.builtin.shell: |
93+
set -o pipefail
9394
oc --kubeconfig {{ kubeconfig }} logs {{ perf_test.sriov.pod_name }} -n default | grep -E "^Port [0-9]" | grep -v "link state change"
9495
register: _sriov_macs
9596
retries: 10
@@ -202,6 +203,7 @@
202203

203204
- name: Collect DPDK DUT port MACs
204205
ansible.builtin.shell: |
206+
set -o pipefail
205207
oc --kubeconfig {{ kubeconfig }} logs {{ perf_test.dpdk.pod_name }} -n default | grep -E "^Port [0-9]" | grep -v "link state change"
206208
register: _dpdk_macs
207209
retries: 10
@@ -271,4 +273,4 @@
271273
loop:
272274
- "{{ perf_test.sriov.pod_name }}"
273275
- "{{ perf_test.dpdk.pod_name }}"
274-
ignore_errors: true
276+
failed_when: false

collection/tools/roles/tools_get_openshift_release/tasks/get_openshift_release_binaries.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
when: openshift_release_pull_spec is not defined or openshift_release_pull_spec == ''
2828

2929
- name: Extract pull secret from host cluster via Kubernetes API
30+
changed_when: true
3031
ansible.builtin.shell: |
3132
python3 << 'PYEOF'
3233
import yaml, json, base64, subprocess, os, sys, tempfile
@@ -127,6 +128,7 @@
127128
mode: u=rwx,g=rw,o=r
128129

129130
- name: Extract OCP tools from release image {{ openshift_release_pull_spec }}
131+
changed_when: true
130132
ansible.builtin.command:
131133
cmd: >-
132134
timeout 900

0 commit comments

Comments
 (0)