Skip to content

Commit 8bdb57e

Browse files
author
Sandeep Mishra
committed
updated tests
1 parent facbe61 commit 8bdb57e

File tree

1 file changed

+41
-36
lines changed

1 file changed

+41
-36
lines changed

.github/workflows/spanner-pr.yml

Lines changed: 41 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -98,42 +98,46 @@ jobs:
9898
--modules-to-build="SPANNER"
9999
- name: Cleanup Java Environment
100100
uses: ./.github/actions/cleanup-java-env
101-
java_unit_tests:
102-
name: Unit Tests
103-
needs: [java_build]
104-
timeout-minutes: 60
105-
runs-on: [self-hosted, it]
106-
steps:
107-
- name: Checkout Code
108-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
109-
- name: Setup Environment
110-
id: setup-env
111-
uses: ./.github/actions/setup-env
112-
- name: Run Unit Tests
113-
run: |
114-
./cicd/run-unit-tests \
115-
--modules-to-build="SPANNER"
116-
- name: Upload Unit Tests Report
117-
uses: actions/upload-artifact@v4
118-
if: always() # always run even if the previous step fails
119-
with:
120-
name: surefire-unit-test-results
121-
path: |
122-
**/surefire-reports/TEST-*.xml
123-
**/surefire-reports/*.html
124-
**/surefire-reports/html/**
125-
retention-days: 1
126-
- name: Upload coverage reports to Codecov
127-
uses: codecov/codecov-action@v5.5.1
128-
with:
129-
token: ${{ secrets.CODECOV_TOKEN }}
130-
slug: GoogleCloudPlatform/DataflowTemplates
131-
files: 'target/site/jacoco-aggregate/jacoco.xml'
132-
- name: Cleanup Java Environment
133-
uses: ./.github/actions/cleanup-java-env
101+
102+
# Temporarily disabled the Unit Test job to speed up debugging
103+
# java_unit_tests:
104+
# name: Unit Tests
105+
# needs: [java_build]
106+
# timeout-minutes: 60
107+
# runs-on: [self-hosted, it]
108+
# steps:
109+
# - name: Checkout Code
110+
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
111+
# - name: Setup Environment
112+
# id: setup-env
113+
# uses: ./.github/actions/setup-env
114+
# - name: Run Unit Tests
115+
# run: |
116+
# ./cicd/run-unit-tests \
117+
# --modules-to-build="SPANNER"
118+
# - name: Upload Unit Tests Report
119+
# uses: actions/upload-artifact@v4
120+
# if: always() # always run even if the previous step fails
121+
# with:
122+
# name: surefire-unit-test-results
123+
# path: |
124+
# **/surefire-reports/TEST-*.xml
125+
# **/surefire-reports/*.html
126+
# **/surefire-reports/html/**
127+
# retention-days: 1
128+
# - name: Upload coverage reports to Codecov
129+
# uses: codecov/codecov-action@v5.5.1
130+
# with:
131+
# token: ${{ secrets.CODECOV_TOKEN }}
132+
# slug: GoogleCloudPlatform/DataflowTemplates
133+
# files: 'target/site/jacoco-aggregate/jacoco.xml'
134+
# - name: Cleanup Java Environment
135+
# uses: ./.github/actions/cleanup-java-env
136+
134137
java_integration_smoke_tests_templates:
135138
name: Dataflow Templates Integration Smoke Tests
136-
needs: [spotless_check, checkstyle_check, java_build, java_unit_tests]
139+
# Updated 'needs' to remove java_unit_tests
140+
needs: [spotless_check, checkstyle_check, java_build]
137141
timeout-minutes: 60
138142
# Run on any runner that matches all the specified runs-on values.
139143
runs-on: [self-hosted, it]
@@ -183,7 +187,7 @@ jobs:
183187
--it-project="cloud-teleport-testing" \
184188
--it-artifact-bucket="cloud-teleport-testing-it-gitactions" \
185189
--it-private-connectivity="datastream-connect-2" \
186-
-Dtest=SpannerToSourceDbIT # THIS IS THE ADDED LINE TO ISOLATE THE TEST
190+
-Dtest=SpannerToSourceDbIT
187191
- name: Upload Integration Tests Report
188192
uses: actions/upload-artifact@v4
189193
if: always() # always run even if the previous step fails
@@ -211,7 +215,8 @@ jobs:
211215
java_load_tests_templates:
212216
if: contains(github.event.pull_request.labels.*.name, 'run-load-tests')
213217
name: Dataflow Templates Load Tests
214-
needs: [spotless_check, checkstyle_check, java_build, java_unit_tests, java_integration_tests_templates]
218+
# Updated 'needs' to remove java_unit_tests
219+
needs: [spotless_check, checkstyle_check, java_build, java_integration_tests_templates]
215220
timeout-minutes: 600
216221
# Run on any runner that matches all the specified runs-on values.
217222
runs-on: [self-hosted, perf]

0 commit comments

Comments
 (0)