File tree Expand file tree Collapse file tree 4 files changed +38
-4
lines changed
Expand file tree Collapse file tree 4 files changed +38
-4
lines changed Original file line number Diff line number Diff line change 2828 - name : Checkout code
2929 uses : actions/checkout@v5
3030
31+ - name : Free up disk space
32+ run : ./.github/resources/scripts/free-disk-space.sh
33+
3134 - name : Set up Python
3235 uses : actions/setup-python@v6
3336 with :
4144 k8s_version : ${{ matrix.k8s_version }}
4245 continue-on-error : true
4346
47+ - name : Ensure kubeflow namespace exists
48+ if : ${{ steps.create-kfp-cluster.outcome == 'success' }}
49+ run : kubectl create namespace kubeflow || true
50+
4451 - name : Deploy
4552 id : deploy
4653 uses : ./.github/actions/deploy
7077 - name : Collect failed logs
7178 if : ${{ steps.deploy.outcome != 'success' || steps.forward-frontend-port.outcome != 'success' || steps.tests.outcome != 'success' }}
7279 run : |
73- ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
80+ if kubectl get namespace kubeflow >/dev/null 2>&1; then
81+ ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
82+ else
83+ echo "kubeflow namespace not found; skipping log collection."
84+ fi
7485 exit 1
7586
7687 - name : Collect test results
Original file line number Diff line number Diff line change 3737 - name : Checkout code
3838 uses : actions/checkout@v5
3939
40+ - name : Free up disk space
41+ run : ./.github/resources/scripts/free-disk-space.sh
42+
4043 - name : Set up Python
4144 uses : actions/setup-python@v6
4245 with :
4952 k8s_version : ${{ matrix.k8s_version }}
5053 continue-on-error : true
5154
55+ - name : Ensure kubeflow namespace exists
56+ if : ${{ steps.create-kfp-cluster.outcome == 'success' }}
57+ run : kubectl create namespace kubeflow || true
58+
5259 - name : Deploy
5360 id : deploy
5461 uses : ./.github/actions/deploy
8592 - name : Collect failed logs
8693 if : ${{ steps.forward-mysql-port.outcome != 'success' || steps.integration-tests.outcome != 'success' || steps.initialization-tests.outcome != 'success' }}
8794 run : |
88- ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
95+ if kubectl get namespace kubeflow >/dev/null 2>&1; then
96+ ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
97+ else
98+ echo "kubeflow namespace not found; skipping log collection."
99+ fi
89100 exit 1
90101
91102 - name : Collect test results
Original file line number Diff line number Diff line change @@ -29,13 +29,20 @@ jobs:
2929 - name : Checkout code
3030 uses : actions/checkout@v5
3131
32+ - name : Free up disk space
33+ run : ./.github/resources/scripts/free-disk-space.sh
34+
3235 - name : Create KFP cluster
3336 id : create-kfp-cluster
3437 uses : ./.github/actions/create-cluster
3538 with :
3639 k8s_version : ${{ matrix.k8s_version }}
3740 continue-on-error : true
3841
42+ - name : Ensure kubeflow namespace exists
43+ if : ${{ steps.create-kfp-cluster.outcome == 'success' }}
44+ run : kubectl create namespace kubeflow || true
45+
3946 - name : Deploy
4047 id : deploy
4148 uses : ./.github/actions/deploy
5663 - name : Collect failed logs
5764 if : ${{ steps.create-kfp-cluster.outcome != 'success' || steps.deploy.outcome != 'success' || steps.tests.outcome != 'success' }}
5865 run : |
59- ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
66+ if kubectl get namespace kubeflow >/dev/null 2>&1; then
67+ ./.github/resources/scripts/collect-logs.sh --ns kubeflow --output /tmp/tmp_pod_log.txt
68+ else
69+ echo "kubeflow namespace not found; skipping log collection."
70+ fi
6071 exit 1
6172
6273 - name : Collect test results
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