Skip to content

Commit

Permalink
SNOW-1663769 Add Multiple JDK Test (#163)
Browse files Browse the repository at this point in the history
* add test

* fix test

* fix test

* fix env

* fix test

* fix test

* fix test

* reformat
  • Loading branch information
sfc-gh-bli authored Sep 23, 2024
1 parent e419b1c commit 453e319
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/precommit-fips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ jobs:
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: export SNOWPARK_FIPS=true;sbt "testOnly com.snowflake.snowpark_test.SessionSuite" -J-DFIPS_TEST=true
run: sbt "testOnly com.snowflake.snowpark_test.SessionSuite" -J-DFIPS_TEST=true
env:
SNOWPARK_FIPS: true
29 changes: 29 additions & 0 deletions .github/workflows/precommit-multiple-jdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: precommit test - udf with multiple JDK
on:
push:
branches: [ main ]
pull_request:
branches: '**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17 ]
fail-fast: false
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Decrypt profile.properties
run: .github/scripts/decrypt_profile.sh
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: sbt "testOnly com.snowflake.snowpark_test.UDTFSuite com.snowflake.snowpark_test.AlwaysCleanUDFSuite com.snowflake.snowpark_test.StoredProcedureSuite"
env:
JAVA_OPTS: "--add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED"

0 comments on commit 453e319

Please sign in to comment.