Skip to content

Commit 1dc6d3d

Browse files
authored
SANDBOX-800: save CRs when test fails (#61582)
* save CRS when test fails * add jrosental to OWNERS * requested changes * fix * fix
1 parent 104f3f7 commit 1dc6d3d

18 files changed

+195
-7
lines changed

ci-operator/config/codeready-toolchain/host-operator/codeready-toolchain-host-operator-master.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests:
3131
requests:
3232
cpu: "3"
3333
memory: 250Mi
34-
workflow: ipi-aws
34+
workflow: codeready-toolchain-aws
3535
zz_generated_metadata:
3636
branch: master
3737
org: codeready-toolchain

ci-operator/config/codeready-toolchain/member-operator/codeready-toolchain-member-operator-master.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests:
3131
requests:
3232
cpu: "3"
3333
memory: 250Mi
34-
workflow: ipi-aws
34+
workflow: codeready-toolchain-aws
3535
zz_generated_metadata:
3636
branch: master
3737
org: codeready-toolchain

ci-operator/config/codeready-toolchain/registration-service/codeready-toolchain-registration-service-master.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests:
3131
requests:
3232
cpu: "3"
3333
memory: 250Mi
34-
workflow: ipi-aws
34+
workflow: codeready-toolchain-aws
3535
zz_generated_metadata:
3636
branch: master
3737
org: codeready-toolchain

ci-operator/config/codeready-toolchain/toolchain-e2e/codeready-toolchain-toolchain-e2e-master.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests:
3131
requests:
3232
cpu: "3"
3333
memory: 250Mi
34-
workflow: ipi-aws
34+
workflow: codeready-toolchain-aws
3535
zz_generated_metadata:
3636
branch: master
3737
org: codeready-toolchain

ci-operator/config/codeready-toolchain/workload-analyzer/codeready-toolchain-workload-analyzer-master.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ tests:
5151
requests:
5252
cpu: "3"
5353
memory: 250Mi
54-
workflow: ipi-aws
54+
workflow: codeready-toolchain-aws
5555
zz_generated_metadata:
5656
branch: master
5757
org: codeready-toolchain

ci-operator/jobs/codeready-toolchain/host-operator/OWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ approvers:
1515
- ranakan19
1616
- rsoaresd
1717
- xcoulon
18+
- jrosental
1819
options: {}
1920
reviewers:
2021
- alexeykazakov
@@ -27,3 +28,4 @@ reviewers:
2728
- ranakan19
2829
- rsoaresd
2930
- xcoulon
31+
- jrosental

ci-operator/jobs/codeready-toolchain/member-operator/OWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ approvers:
1515
- ranakan19
1616
- rsoaresd
1717
- xcoulon
18+
- jrosental
1819
options: {}
1920
reviewers:
2021
- alexeykazakov
@@ -27,3 +28,4 @@ reviewers:
2728
- ranakan19
2829
- rsoaresd
2930
- xcoulon
31+
- jrosental

ci-operator/jobs/codeready-toolchain/registration-service/OWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ approvers:
1515
- ranakan19
1616
- rsoaresd
1717
- xcoulon
18+
- jrosental
1819
options: {}
1920
reviewers:
2021
- alexeykazakov
@@ -27,3 +28,4 @@ reviewers:
2728
- ranakan19
2829
- rsoaresd
2930
- xcoulon
31+
- jrosental

ci-operator/jobs/codeready-toolchain/toolchain-e2e/OWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ approvers:
1515
- ranakan19
1616
- rsoaresd
1717
- xcoulon
18+
- jrosental
1819
options: {}
1920
reviewers:
2021
- alexeykazakov
@@ -27,3 +28,4 @@ reviewers:
2728
- ranakan19
2829
- rsoaresd
2930
- xcoulon
31+
- jrosental

ci-operator/jobs/codeready-toolchain/workload-analyzer/OWNERS

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ approvers:
1414
- fbm3307
1515
- metlos
1616
- rsoaresd
17-
17+
- jrosental
1818
options: {}
1919
reviewers:
2020
- alexeykazakov
@@ -25,4 +25,5 @@ reviewers:
2525
- xcoulon
2626
- fbm3307
2727
- metlos
28-
- rsoaresd
28+
- rsoaresd
29+
- jrosental
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
approvers:
2+
- alexeykazakov
3+
- fbm3307
4+
- matousjobanek
5+
- metlos
6+
- mfrancisc
7+
- rajivnathan
8+
- ranakan19
9+
- rsoaresd
10+
- xcoulon
11+
- jrosental
12+
options: {}
13+
reviewers:
14+
- alexeykazakov
15+
- fbm3307
16+
- matousjobanek
17+
- metlos
18+
- mfrancisc
19+
- rajivnathan
20+
- ranakan19
21+
- rsoaresd
22+
- xcoulon
23+
- jrosental
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
approvers:
2+
- alexeykazakov
3+
- fbm3307
4+
- matousjobanek
5+
- metlos
6+
- mfrancisc
7+
- rajivnathan
8+
- ranakan19
9+
- rsoaresd
10+
- xcoulon
11+
- jrosental
12+
options: {}
13+
reviewers:
14+
- alexeykazakov
15+
- fbm3307
16+
- matousjobanek
17+
- metlos
18+
- mfrancisc
19+
- rajivnathan
20+
- ranakan19
21+
- rsoaresd
22+
- xcoulon
23+
- jrosental
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"path": "codeready-toolchain/aws/codeready-toolchain-aws-workflow.yaml",
3+
"owners": {
4+
"approvers": [
5+
"alexeykazakov",
6+
"fbm3307",
7+
"matousjobanek",
8+
"metlos",
9+
"mfrancisc",
10+
"rajivnathan",
11+
"ranakan19",
12+
"rsoaresd",
13+
"xcoulon",
14+
"jrosental"
15+
],
16+
"reviewers": [
17+
"alexeykazakov",
18+
"fbm3307",
19+
"matousjobanek",
20+
"metlos",
21+
"mfrancisc",
22+
"rajivnathan",
23+
"ranakan19",
24+
"rsoaresd",
25+
"xcoulon",
26+
"jrosental"
27+
]
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
workflow:
2+
as: codeready-toolchain-aws
3+
steps:
4+
allow_best_effort_post_steps: true
5+
pre:
6+
- chain: ipi-aws-pre
7+
post:
8+
- ref: codeready-toolchain-gather
9+
optional_on_success: true
10+
- chain: ipi-aws-post
11+
documentation: |-
12+
This workflow provides is based on /ci-operator/step-registry/ipi/aws/ipi-aws-workflow.yaml.
13+
Additionally, it adds codeready-toolchain-gather which will save the Custom Resources on ARTIFACT dir.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
approvers:
2+
- alexeykazakov
3+
- fbm3307
4+
- matousjobanek
5+
- metlos
6+
- mfrancisc
7+
- rajivnathan
8+
- ranakan19
9+
- rsoaresd
10+
- xcoulon
11+
- jrosental
12+
options: {}
13+
reviewers:
14+
- alexeykazakov
15+
- fbm3307
16+
- matousjobanek
17+
- metlos
18+
- mfrancisc
19+
- rajivnathan
20+
- ranakan19
21+
- rsoaresd
22+
- xcoulon
23+
- jrosental
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# queue function stolen from https://steps.ci.openshift.org/reference/gather-extra ;-)
4+
function queue() {
5+
local TARGET="${1}"
6+
shift
7+
local LIVE
8+
LIVE="$(jobs | wc -l)"
9+
while [[ "${LIVE}" -ge 45 ]]; do
10+
sleep 1
11+
LIVE="$(jobs | wc -l)"
12+
done
13+
echo "${@}"
14+
if [[ -n "${FILTER:-}" ]]; then
15+
"${@}" | "${FILTER}" >"${TARGET}" &
16+
else
17+
"${@}" >"${TARGET}" &
18+
fi
19+
}
20+
21+
# Resources
22+
CRD_LIST=$(oc get crds -o jsonpath='{.items[?(@.spec.group=="toolchain.dev.openshift.com")].metadata.name}')
23+
for CRD in ${CRD_LIST}; do
24+
queue ${ARTIFACT_DIR}/${CRD}.json oc --insecure-skip-tls-verify --request-timeout=5s get ${CRD} --all-namespaces -o json
25+
done
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"path": "codeready-toolchain/gather/codeready-toolchain-gather-ref.yaml",
3+
"owners": {
4+
"approvers": [
5+
"alexeykazakov",
6+
"fbm3307",
7+
"matousjobanek",
8+
"metlos",
9+
"mfrancisc",
10+
"rajivnathan",
11+
"ranakan19",
12+
"rsoaresd",
13+
"xcoulon",
14+
"jrosental"
15+
],
16+
"reviewers": [
17+
"alexeykazakov",
18+
"fbm3307",
19+
"matousjobanek",
20+
"metlos",
21+
"mfrancisc",
22+
"rajivnathan",
23+
"ranakan19",
24+
"rsoaresd",
25+
"xcoulon",
26+
"jrosental"
27+
]
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ref:
2+
as: codeready-toolchain-gather
3+
best_effort: true
4+
optional_on_success: true
5+
from: cli
6+
commands: codeready-toolchain-gather-commands.sh
7+
timeout: 900s
8+
grace_period: 60s
9+
resources:
10+
requests:
11+
cpu: 300m
12+
memory: 300Mi
13+
documentation: |-
14+
The pre-deprovision artifacts step collects codeready-toolchain artifacts which are either not covered by must-gather or gather-extra.

0 commit comments

Comments
 (0)