Skip to content

Commit

Permalink
SNOW-1663770 Jenkins Tests (#164)
Browse files Browse the repository at this point in the history
* change aws test

* update jenkins tests

* perf test

* perf test
  • Loading branch information
sfc-gh-bli authored Sep 26, 2024
1 parent 453e319 commit 26c0f03
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 20 deletions.
9 changes: 7 additions & 2 deletions scripts/jenkins_fips_regress_aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ exit_code_decorator(){
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output profile.properties scripts/profile.properties.gpg


exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -f fips-pom.xml -DargLine=-DFIPS_TEST=true -Dgpg.skip -DtagsToExclude=UnstableTest,com.snowflake.snowpark.PerfTest,SampleDataTest test"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"

9 changes: 7 additions & 2 deletions scripts/jenkins_fips_regress_az.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ exit_code_decorator(){
# decrypt profile
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output profile.properties scripts/profile_az.properties.gpg

exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -f fips-pom.xml -DargLine=-DFIPS_TEST=true -Dgpg.skip -DtagsToExclude=UnstableTest,com.snowflake.snowpark.PerfTest,SampleDataTest test"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"

9 changes: 7 additions & 2 deletions scripts/jenkins_fips_regress_gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ exit_code_decorator(){
# decrypt profile
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output profile.properties scripts/profile_gcp.properties.gpg

exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -f fips-pom.xml -DargLine=-DFIPS_TEST=true -Dgpg.skip -DtagsToExclude=UnstableTest,com.snowflake.snowpark.PerfTest,SampleDataTest test"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"

6 changes: 4 additions & 2 deletions scripts/jenkins_perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output profile.properties scripts/profile.properties.gpg
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output snowhouse.properties scripts/snowhouse.properties.gpg

mvn clean compile
mvn -Dgpg.skip -DtagsToInclude=com.snowflake.snowpark.PerfTest -DargLine="-DPERF_TEST=true -Xss1G" test
sbt clean compile
sbt "testOnly com.snowflake.snowpark.PerfTest" -J-DargLine="-DPERF_TEST=true -Xss1G"
export JAVA_OPTS="-Xss1G"
sbt "testOnly com.snowflake.perf.OptimizerPerfSuite" -J-DPERF_TEST=true

9 changes: 7 additions & 2 deletions scripts/jenkins_regress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ exit_code_decorator(){
# decrypt profile
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output profile.properties scripts/profile.properties.gpg

exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -Dgpg.skip -DtagsToExclude=com.snowflake.snowpark.PerfTest -e scoverage:report -P test-coverage"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"
9 changes: 7 additions & 2 deletions scripts/jenkins_regress_az.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ exit_code_decorator(){
# decrypt profile
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output profile.properties scripts/profile_az.properties.gpg

exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -Dgpg.skip -DtagsToExclude=UnstableTest,com.snowflake.snowpark.PerfTest,SampleDataTest test"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"

9 changes: 7 additions & 2 deletions scripts/jenkins_regress_az_latest_jdbc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ build_jdbc
# skip com.snowflake.snowpark.ReplSuite because classpath are not set well for local jdbc jar
rm -fr ./src/test/scala/com/snowflake/snowpark/ReplSuite.scala

exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -Dgpg.skip -DtagsToExclude=UnstableTest,com.snowflake.snowpark.PerfTest,SampleDataTest test"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"

# clean up
rm -fr snowflake-jdbc
Expand Down
9 changes: 7 additions & 2 deletions scripts/jenkins_regress_gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ exit_code_decorator(){
# decrypt profile
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output profile.properties scripts/profile_gcp.properties.gpg

exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -Dgpg.skip -DtagsToExclude=UnstableTest,com.snowflake.snowpark.PerfTest,SampleDataTest test"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"

9 changes: 7 additions & 2 deletions scripts/jenkins_regress_gcp_latest_jdbc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ build_jdbc
# skip com.snowflake.snowpark.ReplSuite because classpath are not set well for local jdbc jar
rm -fr ./src/test/scala/com/snowflake/snowpark/ReplSuite.scala

exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -Dgpg.skip -DtagsToExclude=UnstableTest,com.snowflake.snowpark.PerfTest,SampleDataTest test"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"

# clean up
rm -fr snowflake-jdbc
Expand Down
9 changes: 7 additions & 2 deletions scripts/jenkins_regress_latest_jdbc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ build_jdbc
# skip com.snowflake.snowpark.ReplSuite because classpath are not set well for local jdbc jar
rm -fr ./src/test/scala/com/snowflake/snowpark/ReplSuite.scala

exit_code_decorator "mvn clean compile"
exit_code_decorator "mvn -Dgpg.skip -DtagsToExclude=com.snowflake.snowpark.PerfTest test"
exit_code_decorator "sbt clean compile"
exit_code_decorator "sbt JavaAPITests:test"
exit_code_decorator "sbt SprocTests:test"
exit_code_decorator "sbt NonparallelTests:test"
exit_code_decorator "sbt UDFTests:test"
exit_code_decorator "sbt UDTFTests:test"
exit_code_decorator "sbt OtherTests:test"

# clean up
rm -fr snowflake-jdbc
Expand Down

0 comments on commit 26c0f03

Please sign in to comment.