Skip to content

Commit 15cf564

Browse files
committed
fixing test report notifications
Signed-off-by: Nelesh Singla <[email protected]>
1 parent ce49b0a commit 15cf564

File tree

4 files changed

+25
-47
lines changed

4 files changed

+25
-47
lines changed

.github/actions/test-and-report/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ runs:
145145
retention-days: 30
146146
continue-on-error: true
147147

148+
- name: Notify Test Report
149+
id: notify
150+
if: (!cancelled())
151+
shell: bash
152+
run: |
153+
echo "::notice file=${{ inputs.test_directory }}/reports/test-report.html,title=${{ steps.name_gen.outputs.REPORT_NAME }}::${{ steps.name_gen.outputs.REPORT_NAME }} Report"
154+
148155
- name: Mark Workflow failure if test step failed
149156
if: steps.run-tests.outcome != 'success' && !cancelled()
150157
shell: bash

.github/workflows/api-server-tests.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,6 @@ jobs:
153153
tls_enabled: ${{ matrix.pod_to_pod_tls_enabled }}
154154
ca_cert_path: ${{ env.CA_CERT_PATH }}
155155

156-
- name: Notify test reports
157-
shell: bash
158-
if: ${{ steps.test-run.outcome == 'success' }}
159-
160-
run: |
161-
echo "::notice title=Test Summary and HTML Report is now available in the Summary Tab"
162-
163156

164157
api-test-k8s-native:
165158
needs: build
@@ -222,13 +215,6 @@ jobs:
222215
python_version: ${{ env.PYTHON_VERSION }}
223216
report_name: "K8Native_k8sVersion=${{ matrix.k8s_version }}_cacheEnabled=${{ matrix.cache_enabled }}_argoVersion=${{ matrix.argo_version }}_uploadPipelinesWithKubernetesClient=${{ matrix.uploadPipelinesWithKubernetesClient }}"
224217

225-
- name: Notify test reports
226-
shell: bash
227-
if: ${{ steps.test-run.outcome == 'success' }}
228-
run: |
229-
echo "::notice title=Test Summary and HTML Report is now available in the Summary Tab"
230-
231-
232218
api-test-multi-user:
233219
needs: build
234220
runs-on: ubuntu-latest
@@ -281,9 +267,3 @@ jobs:
281267
user_namespace: ${{ env.USER_NAMESPACE }}
282268
multi_user: ${{ matrix.multi_user }}
283269
report_name: "MultiUser_k8sVersion=${{ matrix.k8s_version }}_cacheEnabled=${{ matrix.cache_enabled }}_multiUser=${{ matrix.multi_user }}"
284-
285-
- name: Notify test reports
286-
shell: bash
287-
if: ${{ steps.test-run.outcome == 'success' }}
288-
run: |
289-
echo "::notice title=Test Summary and HTML Report is now available in the Summary Tab"

.github/workflows/e2e-test.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,6 @@ jobs:
159159
tls_enabled: ${{ matrix.pod_to_pod_tls_enabled }}
160160
ca_cert_path: ${{ env.CA_CERT_PATH }}
161161

162-
- name: Notify test reports
163-
shell: bash
164-
if: ${{ steps.test-run.outcome == 'success' }}
165-
run: |
166-
echo "::notice title=Test Summary and HTML Report is now available in the Summary Tab"
167-
168162
end-to-end-critical-scenario-multi-user-tests:
169163
runs-on: ubuntu-latest
170164
needs: build
@@ -264,9 +258,3 @@ jobs:
264258
python_version: ${{ env.PYTHON_VERSION }}
265259
user_namespace: ${{ env.USER_NAMESPACE }}
266260
report_name: "E2EMultiUserTests_K8s=${{ matrix.k8s_version }}_cacheEnabled=${{ matrix.cache_enabled }}_multiUser=${{ matrix.multi_user }}_storage=${{ matrix.storage }}"
267-
268-
- name: Notify test reports
269-
shell: bash
270-
if: ${{ steps.test-run.outcome == 'success' }}
271-
run: |
272-
echo "::notice title=Test Summary and HTML Report is now available in the Summary Tab"

.github/workflows/upgrade-test.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: KFP upgrade tests
22

33
env:
44
TESTS_DIR: "./backend/test/v2/api"
5-
TESTS_LABEL: "ApiServerTests"
6-
NUMBER_OF_PARALLEL_NODES: 15
5+
NUMBER_OF_PARALLEL_NODES: 10
76
CLUSTER_NAME: "kfp"
87
NAMESPACE: "kubeflow"
98
PYTHON_VERSION: "3.9"
@@ -92,6 +91,11 @@ jobs:
9291
go run github.com/onsi/ginkgo/v2/ginkgo -r -v --cover -p --keep-going --github-output=true --nodes=${{ env.NUMBER_OF_PARALLEL_NODES }} -v --label-filter="UpgradePreparation"
9392
continue-on-error: true
9493

94+
- name: Stop port forwarding
95+
run: |
96+
pkill -f "port-forward"
97+
continue-on-error: true
98+
9599
- name: Deploy from Branch
96100
uses: ./.github/actions/deploy
97101
if: ${{ steps.create-cluster.outcome == 'success' }}
@@ -100,16 +104,15 @@ jobs:
100104
image_path: ${{ needs.build.outputs.IMAGE_PATH }}
101105
image_tag: ${{ needs.build.outputs.IMAGE_TAG }}
102106
image_registry: ${{ needs.build.outputs.IMAGE_REGISTRY }}
103-
forward_port: 'false'
104-
105-
# The step below has been temporarily removed as it consistently fails.
106-
# - name: Verify Upgrade
107-
# uses: ./.github/actions/test-and-report
108-
# if: ${{ steps.deploy.outcome == 'success' }}
109-
# with:
110-
# test_directory: ${{ env.TESTS_DIR }}
111-
# test_label: "UpgradeVerification"
112-
# num_parallel_nodes: ${{ env.NUMBER_OF_PARALLEL_NODES }}
113-
# default_namespace: ${{ env.NAMESPACE }}
114-
# python_version: ${{ env.PYTHON_VERSION }}
115-
# report_name: "Upgrade Verification"
107+
forward_port: 'true'
108+
109+
- name: Verify Upgrade
110+
uses: ./.github/actions/test-and-report
111+
if: ${{ steps.deploy.outcome == 'success' }}
112+
with:
113+
test_directory: ${{ env.TESTS_DIR }}
114+
test_label: "UpgradeVerification"
115+
num_parallel_nodes: ${{ env.NUMBER_OF_PARALLEL_NODES }}
116+
default_namespace: ${{ env.NAMESPACE }}
117+
python_version: ${{ env.PYTHON_VERSION }}
118+
report_name: "Upgrade Verification"

0 commit comments

Comments
 (0)