Skip to content

Commit 2d008c8

Browse files
authored
revert CI workflow changes (#3674)
Signed-off-by: zane-neo <[email protected]>
1 parent 48123e1 commit 2d008c8

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

.github/workflows/CI-workflow.yml

+12-25
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,23 @@ jobs:
8484
echo "::add-mask::$COHERE_KEY" &&
8585
echo "build and run tests" && ./gradlew build -x spotlessJava &&
8686
echo "Publish to Maven Local" && ./gradlew publishToMavenLocal -x spotlessJava &&
87-
echo "Multi Nodes Integration Testing" && ./gradlew integTest -PnumNodes=3 -x spotlessJava &&
88-
echo "Run Jacoco test coverage" && ./gradlew jacocoTestReport && cp -v plugin/build/reports/jacoco/test/jacocoTestReport.xml ./jacocoTestReport.xml'
87+
echo "Multi Nodes Integration Testing" && ./gradlew integTest -PnumNodes=3 -x spotlessJava'
8988
plugin=`basename $(ls plugin/build/distributions/*.zip)`
9089
echo $plugin
9190
mv -v plugin/build/distributions/$plugin ./
9291
echo "build-test-linux=$plugin" >> $GITHUB_OUTPUT
9392
93+
- name: Upload Coverage Report
94+
uses: codecov/codecov-action@v3
95+
with:
96+
flags: ml-commons
97+
token: ${{ secrets.CODECOV_TOKEN }}
98+
9499
- uses: actions/upload-artifact@v4
95-
if: ${{ matrix.os }} == "ubuntu-latest"
96100
with:
97-
name: coverage-report-${{ matrix.os }}-${{ matrix.java }}
98-
path: ./jacocoTestReport.xml
101+
name: ml-plugin-linux-${{ matrix.java }}
102+
path: ${{ steps.step-build-test-linux.outputs.build-test-linux }}
103+
if-no-files-found: error
99104

100105

101106
Test-ml-linux-docker:
@@ -164,8 +169,8 @@ jobs:
164169
- name: Generate Password For Admin
165170
id: genpass
166171
run: |
167-
PASSWORD=$(openssl rand -base64 20 | tr -dc 'A-Za-z0-9!@#$%^&*()_+=-')
168-
echo "password={$PASSWORD}" >> $GITHUB_OUTPUT
172+
PASSWORD=$(openssl rand -base64 20 | tr -dc 'A-Za-z0-9!@#$%^&*()_+=-')
173+
echo "password={$PASSWORD}" >> $GITHUB_OUTPUT
169174
- name: Run Docker Image
170175
if: env.imagePresent == 'true'
171176
run: |
@@ -195,24 +200,6 @@ jobs:
195200
flags: ml-commons
196201
token: ${{ secrets.CODECOV_TOKEN }}
197202

198-
Precommit-codecov:
199-
needs: Build-ml-linux
200-
strategy:
201-
matrix:
202-
java: [21, 23]
203-
os: [ubuntu-latest]
204-
runs-on: ${{ matrix.os }}
205-
steps:
206-
- uses: actions/download-artifact@v4
207-
with:
208-
name: coverage-report-${{ matrix.os }}-${{ matrix.java }}
209-
path: ./
210-
- name: Upload Coverage Report
211-
uses: codecov/codecov-action@v5
212-
with:
213-
token: ${{ secrets.CODECOV_TOKEN }}
214-
files: ./jacocoTestReport.xml
215-
216203
Build-ml-windows:
217204
strategy:
218205
matrix:

0 commit comments

Comments
 (0)