File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed
Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 7373 - name : Collect failed logs
7474 if : ${{ steps.deploy.outcome != 'success' || steps.forward-frontend-port.outcome != 'success' || steps.tests.outcome != 'success' }}
7575 run : |
76- ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
76+ if kubectl get namespace kubeflow >/dev/null 2>&1; then
77+ ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
78+ else
79+ echo "kubeflow namespace not found; skipping log collection."
80+ fi
7781 exit 1
7882
7983 - name : Collect test results
Original file line number Diff line number Diff line change 8888 - name : Collect failed logs
8989 if : ${{ steps.forward-mysql-port.outcome != 'success' || steps.integration-tests.outcome != 'success' || steps.initialization-tests.outcome != 'success' }}
9090 run : |
91- ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
91+ if kubectl get namespace kubeflow >/dev/null 2>&1; then
92+ ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
93+ else
94+ echo "kubeflow namespace not found; skipping log collection."
95+ fi
9296 exit 1
9397
9498 - name : Collect test results
Original file line number Diff line number Diff line change 5959 - name : Collect failed logs
6060 if : ${{ steps.create-kfp-cluster.outcome != 'success' || steps.deploy.outcome != 'success' || steps.tests.outcome != 'success' }}
6161 run : |
62- ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
62+ if kubectl get namespace kubeflow >/dev/null 2>&1; then
63+ ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
64+ else
65+ echo "kubeflow namespace not found; skipping log collection."
66+ fi
6367 exit 1
6468
6569 - name : Collect test results
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ RUN echo "Building for architecture: ${TARGETARCH}"
3939
4040# Downloading Argo CLI so that the samples are validated
4141ENV ARGO_VERSION=v3.7.3
42- RUN curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$TARGETARCH.gz && \
42+ RUN curl -sL -H "Accept: application/octet-stream" \
43+ https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$TARGETARCH.gz \
44+ -o argo-linux-$TARGETARCH.gz && \
4345 gunzip argo-linux-$TARGETARCH.gz && \
4446 chmod +x argo-linux-$TARGETARCH && \
4547 mv ./argo-linux-$TARGETARCH /usr/local/bin/argo
Original file line number Diff line number Diff line change @@ -49,5 +49,6 @@ RUN chmod -R 777 $NVM_DIR && \
4949# Configure npm cache location
5050RUN npm config set cache /tmp/.npm --global
5151
52- RUN curl -L https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz \
52+ RUN curl -L -H "Accept: application/octet-stream" \
53+ https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz \
5354 | tar -xz --strip-components=1 -C /usr/local/bin git-cliff-${GIT_CLIFF_VERSION}/git-cliff
You can’t perform that action at this time.
0 commit comments