Skip to content

Commit 01b9b35

Browse files
committed
Update ci artifact collection
Signed-off-by: perdasilva <[email protected]>
1 parent c610a3e commit 01b9b35

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM quay.io/fedora/fedora:34-x86_64 as builder
22
LABEL stage=builder
33
WORKDIR /build
44

5-
# install dependencies and go 1.16
5+
# install dependencies and go 1.17
66

77
# copy just enough of the git repo to parse HEAD, used to record version in OLM binaries
88
RUN dnf update -y && dnf install -y bash make git mercurial jq wget && dnf upgrade -y

test/e2e/collect-ci-artifacts.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ echo "Using the ${TEST_ARTIFACTS_DIR} output directory"
1414
mkdir -p "${TEST_ARTIFACTS_DIR}"
1515

1616
commands=()
17-
commands+=("get catalogsources -o yaml")
18-
commands+=("get subscriptions -o yaml")
19-
commands+=("get operatorgroups -o yaml")
20-
commands+=("get clusterserviceversions -o yaml")
21-
commands+=("get installplans -o yaml")
22-
commands+=("get pods -o wide")
17+
commands+=("describe all")
18+
commands+=("get all -o yaml")
19+
commands+=("get all -o wide")
2320
commands+=("get events --sort-by .lastTimestamp")
2421

2522
echo "Storing the test artifact output in the ${TEST_ARTIFACTS_DIR} directory"
@@ -28,3 +25,8 @@ for command in "${commands[@]}"; do
2825
COMMAND_OUTPUT_FILE=${TEST_ARTIFACTS_DIR}/${command// /_}
2926
${KUBECTL} -n ${TEST_NAMESPACE} ${command} >> "${COMMAND_OUTPUT_FILE}"
3027
done
28+
29+
for pod in $(${KUBECTL} -n ${TEST_NAMESPACE} get --no-headers pods | awk '{ print $1 }'); do
30+
echo "Collecting logs for pod: ${pod}"
31+
${KUBECTL} -n ${TEST_NAMESPACE} logs ${pod} >> "${TEST_ARTIFACTS_DIR}/${pod}.log"
32+
done

0 commit comments

Comments
 (0)