This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new 84fd5fef Separate java and cpp/py UT (#305)
84fd5fef is described below
commit 84fd5fefd0549d5b575b0d22bb7fff9af9968186
Author: Haonan <[email protected]>
AuthorDate: Tue Nov 19 15:59:51 2024 +0800
Separate java and cpp/py UT (#305)
---
.../{unit-test.yml => unit-test-cpp-py.yml} | 18 ++++++------------
.../workflows/{unit-test.yml => unit-test-java.yml} | 20 ++++++++------------
2 files changed, 14 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/unit-test.yml
b/.github/workflows/unit-test-cpp-py.yml
similarity index 85%
copy from .github/workflows/unit-test.yml
copy to .github/workflows/unit-test-cpp-py.yml
index c3c10a0c..a1b0cc1e 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test-cpp-py.yml
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see:
https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-name: Unit-Test
+name: Unit-Test-Cpp-Py
on:
push:
@@ -11,6 +11,7 @@ on:
- rc/*
paths-ignore:
- 'docs/**'
+ - 'java/**'
pull_request:
branches:
- develop
@@ -18,6 +19,7 @@ on:
- rc/*
paths-ignore:
- 'docs/**'
+ - 'java/**'
# Enable manually starting builds, and allow forcing updating of SNAPSHOT
dependencies.
workflow_dispatch:
inputs:
@@ -38,9 +40,8 @@ jobs:
unit-test:
strategy:
fail-fast: false
- max-parallel: 20
+ max-parallel: 15
matrix:
- java: [ 8, 17, 21 ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
@@ -49,12 +50,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- - name: Set up JDK ${{ matrix.java }}
- uses: actions/setup-java@v4
- with:
- distribution: corretto
- java-version: ${{ matrix.java }}
-
# Setup caching of the artifacts in the .m2 directory, so they don't
have to
# all be downloaded again for every build.
- name: Cache Maven packages
@@ -79,14 +74,13 @@ jobs:
core.setOutput('platform_suffix', ``)
}
- # Run the actual maven build including all unit- and integration-tests.
+ # Run the actual maven build including all tests.
- name: Build and test with Maven
shell: bash
run: |
- ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P
with-java,with-cpp,with-python clean verify
+ ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P
with-cpp,with-python clean verify
- name: Upload whl Artifact
- if: ${{ matrix.java == '17'}}
uses: actions/upload-artifact@v4
with:
name: tsfile-${{ runner.os }}-whl
diff --git a/.github/workflows/unit-test.yml
b/.github/workflows/unit-test-java.yml
similarity index 85%
rename from .github/workflows/unit-test.yml
rename to .github/workflows/unit-test-java.yml
index c3c10a0c..d68c4fce 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test-java.yml
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see:
https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-name: Unit-Test
+name: Unit-Test-Java
on:
push:
@@ -11,6 +11,8 @@ on:
- rc/*
paths-ignore:
- 'docs/**'
+ - 'cpp/**'
+ - 'python/**'
pull_request:
branches:
- develop
@@ -18,6 +20,8 @@ on:
- rc/*
paths-ignore:
- 'docs/**'
+ - 'cpp/**'
+ - 'python/**'
# Enable manually starting builds, and allow forcing updating of SNAPSHOT
dependencies.
workflow_dispatch:
inputs:
@@ -38,7 +42,7 @@ jobs:
unit-test:
strategy:
fail-fast: false
- max-parallel: 20
+ max-parallel: 15
matrix:
java: [ 8, 17, 21 ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
@@ -79,16 +83,8 @@ jobs:
core.setOutput('platform_suffix', ``)
}
- # Run the actual maven build including all unit- and integration-tests.
+ # Run the actual maven build including all tests.
- name: Build and test with Maven
shell: bash
run: |
- ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P
with-java,with-cpp,with-python clean verify
-
- - name: Upload whl Artifact
- if: ${{ matrix.java == '17'}}
- uses: actions/upload-artifact@v4
- with:
- name: tsfile-${{ runner.os }}-whl
- path: python/dist/tsfile-*.whl
- retention-days: 1
+ ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P
with-java clean verify