Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1692380: Release pipeline #8

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c7a2b13
Public POM
sfc-gh-pbulawa Oct 3, 2024
d0adb76
Merge remote-tracking branch 'origin/main' into SNOW-1692380-release-…
sfc-gh-pbulawa Oct 7, 2024
d87fd3b
Merge remote-tracking branch 'origin/main' into SNOW-1692380-release-…
sfc-gh-pbulawa Oct 7, 2024
33cdb9c
Merge branch 'main' into SNOW-1692380-release-pipeline
sfc-gh-pbulawa Oct 7, 2024
6dab278
Add deploy profile
sfc-gh-pbulawa Oct 11, 2024
90ab041
Remove PrPr mention
sfc-gh-pbulawa Oct 14, 2024
6c7b311
Remove POM
sfc-gh-pbulawa Oct 14, 2024
0d452db
Fix typo
sfc-gh-pbulawa Oct 15, 2024
fec8fea
Add changelog file
sfc-gh-pbulawa Oct 15, 2024
004d80b
Change target artifact name, include javadoc and sources
sfc-gh-pbulawa Oct 15, 2024
be32686
Reorder properties, fix naming, add config for plugins
sfc-gh-pbulawa Oct 15, 2024
f88dbf5
Add javadoc
sfc-gh-pbulawa Oct 17, 2024
884d07c
Remove deprecated configuration
sfc-gh-pbulawa Oct 17, 2024
615d9c0
Replace source and target with release
sfc-gh-pbulawa Oct 17, 2024
f9a4f64
Format
sfc-gh-pbulawa Oct 17, 2024
351c11b
Move src to project folder
sfc-gh-pbulawa Oct 17, 2024
3f8a132
Remove public_pom, pr artifact build script and update readme
sfc-gh-pbulawa Oct 17, 2024
21e4fa8
Update targets for deploy
sfc-gh-pbulawa Oct 17, 2024
d154d5f
Add different JDBC version tests
sfc-gh-pbulawa Oct 17, 2024
bc489bf
Merge remote-tracking branch 'origin/main' into SNOW-1692380-release-…
sfc-gh-pbulawa Oct 17, 2024
4a5e3db
Fix test
sfc-gh-pbulawa Oct 18, 2024
d9c1293
Do not test JDBC 3.13.31 on Java 21
sfc-gh-pbulawa Oct 18, 2024
ef511bd
Add shields, rename readme title
sfc-gh-pbulawa Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 33 additions & 30 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ jobs:

test-windows:
needs: build
name: ${{ matrix.runConfig.cloud }} Windows java ${{ matrix.runConfig.javaVersion }} tests ${{ matrix.runConfig.testGroups }}
name: ${{ matrix.runConfig.cloud }} Windows java${{ matrix.runConfig.javaVersion }} tests ${{ matrix.runConfig.testGroups }} Snowflake JDBC ${{ matrix.runConfig.jdbcVersion }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
runConfig: [
{ cloud: 'GCP', javaVersion: '11', testGroups: 'UNIT,STANDARD' },
{ cloud: 'GCP', javaVersion: '17', testGroups: 'UNIT,STANDARD' },
{ cloud: 'GCP', javaVersion: '21', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '11', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '17', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '21', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AWS', javaVersion: '11', testGroups: 'UNIT,STANDARD,HYBRID' },
{ cloud: 'AWS', javaVersion: '17', testGroups: 'UNIT,STANDARD,HYBRID' },
{ cloud: 'AWS', javaVersion: '21', testGroups: 'UNIT,STANDARD,HYBRID' }
{ cloud: 'AWS', javaVersion: '11', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: '3.13.31' },
{ cloud: 'AWS', javaVersion: '17', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: '3.15.1' },
{ cloud: 'AWS', javaVersion: '21', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: 'LATEST' },
{ cloud: 'AZURE', javaVersion: '11', testGroups: 'UNIT,STANDARD', jdbcVersion: 'LATEST' },
{ cloud: 'AZURE', javaVersion: '17', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.13.31' },
{ cloud: 'AZURE', javaVersion: '21', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.15.1' },
{ cloud: 'GCP', javaVersion: '11', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.13.31' },
{ cloud: 'GCP', javaVersion: '17', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.15.1' },
{ cloud: 'GCP', javaVersion: '21', testGroups: 'UNIT,STANDARD', jdbcVersion: 'LATEST' }
]
steps:
- uses: actions/checkout@v4
Expand All @@ -71,25 +71,26 @@ jobs:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
CLOUD_PROVIDER: ${{ matrix.runConfig.cloud }}
TEST_GROUPS: ${{ matrix.runConfig.testGroups }}
JDBC_VERSION: ${{ matrix.runConfig.jdbcVersion }}
run: ci\\test_windows.bat

test-mac:
needs: build
name: ${{ matrix.runConfig.cloud }} Mac java ${{ matrix.runConfig.javaVersion }} tests ${{ matrix.runConfig.testGroups }}
name: ${{ matrix.runConfig.cloud }} Mac java${{ matrix.runConfig.javaVersion }} tests ${{ matrix.runConfig.testGroups }} Snowflake JDBC ${{ matrix.runConfig.jdbcVersion }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
runConfig: [
{ cloud: 'GCP', javaVersion: '11', testGroups: 'UNIT,STANDARD' },
{ cloud: 'GCP', javaVersion: '17', testGroups: 'UNIT,STANDARD' },
{ cloud: 'GCP', javaVersion: '21', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '11', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '17', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '21', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AWS', javaVersion: '11', testGroups: 'UNIT,STANDARD,HYBRID' },
{ cloud: 'AWS', javaVersion: '17', testGroups: 'UNIT,STANDARD,HYBRID' },
{ cloud: 'AWS', javaVersion: '21', testGroups: 'UNIT,STANDARD,HYBRID' }
{ cloud: 'AWS', javaVersion: '11', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: '3.13.31' },
{ cloud: 'AWS', javaVersion: '17', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: '3.15.1' },
{ cloud: 'AWS', javaVersion: '21', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: 'LATEST' },
{ cloud: 'AZURE', javaVersion: '11', testGroups: 'UNIT,STANDARD', jdbcVersion: 'LATEST' },
{ cloud: 'AZURE', javaVersion: '17', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.13.31' },
{ cloud: 'AZURE', javaVersion: '21', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.15.1' },
{ cloud: 'GCP', javaVersion: '11', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.13.31' },
{ cloud: 'GCP', javaVersion: '17', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.15.1' },
{ cloud: 'GCP', javaVersion: '21', testGroups: 'UNIT,STANDARD', jdbcVersion: 'LATEST' }
]
steps:
- uses: actions/checkout@v4
Expand All @@ -110,25 +111,26 @@ jobs:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
CLOUD_PROVIDER: ${{ matrix.runConfig.cloud }}
TEST_GROUPS: ${{ matrix.runConfig.testGroups }}
JDBC_VERSION: ${{ matrix.runConfig.jdbcVersion }}
run: bash ./ci/test.sh

test-linux:
needs: build
name: ${{ matrix.runConfig.cloud }} Linux java ${{ matrix.runConfig.javaVersion }} tests ${{ matrix.runConfig.testGroups }}
name: ${{ matrix.runConfig.cloud }} Linux java${{ matrix.runConfig.javaVersion }} tests ${{ matrix.runConfig.testGroups }} Snowflake JDBC ${{ matrix.runConfig.jdbcVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
runConfig: [
{ cloud: 'GCP', javaVersion: '11', testGroups: 'UNIT,STANDARD' },
{ cloud: 'GCP', javaVersion: '17', testGroups: 'UNIT,STANDARD' },
{ cloud: 'GCP', javaVersion: '21', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '11', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '17', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AZURE', javaVersion: '21', testGroups: 'UNIT,STANDARD' },
{ cloud: 'AWS', javaVersion: '11', testGroups: 'UNIT,STANDARD,HYBRID' },
{ cloud: 'AWS', javaVersion: '17', testGroups: 'UNIT,STANDARD,HYBRID' },
{ cloud: 'AWS', javaVersion: '21', testGroups: 'UNIT,STANDARD,HYBRID' }
{ cloud: 'AWS', javaVersion: '11', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: '3.13.31' },
{ cloud: 'AWS', javaVersion: '17', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: '3.15.1' },
{ cloud: 'AWS', javaVersion: '21', testGroups: 'UNIT,STANDARD,HYBRID', jdbcVersion: 'LATEST' },
{ cloud: 'AZURE', javaVersion: '11', testGroups: 'UNIT,STANDARD', jdbcVersion: 'LATEST' },
{ cloud: 'AZURE', javaVersion: '17', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.13.31' },
{ cloud: 'AZURE', javaVersion: '21', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.15.1' },
{ cloud: 'GCP', javaVersion: '11', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.13.31' },
{ cloud: 'GCP', javaVersion: '17', testGroups: 'UNIT,STANDARD', jdbcVersion: '3.15.1' },
{ cloud: 'GCP', javaVersion: '21', testGroups: 'UNIT,STANDARD', jdbcVersion: 'LATEST' }
]
steps:
- uses: actions/checkout@v4
Expand All @@ -146,4 +148,5 @@ jobs:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
CLOUD_PROVIDER: ${{ matrix.runConfig.cloud }}
TEST_GROUPS: ${{ matrix.runConfig.testGroups }}
JDBC_VERSION: ${{ matrix.runConfig.jdbcVersion }}
run: ./ci/test.sh
Empty file added CHANGELOG.rst
Empty file.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# snowflake-hibernate
# Snowflake Dialect provider for Hibernate

[<img src="https://github.com/snowflakedb/snowflake-hibernate/actions/workflows/build-test.yml/badge.svg?branch=main">](https://github.com/snowflakedb/snowflake-hibernate/actions/workflows/build-test.yml?query=branch%3Amain)
[<img src="http://img.shields.io/:license-Apache--2.0-brightgreen.svg">](http://www.apache.org/licenses/LICENSE-2.0.txt)

## Brief

Expand All @@ -18,7 +21,7 @@ Ensure to add in your project necessary minimal dependencies:
* Snowflake JDBC Driver 3.13.31+

### Features

| *Feature* | *snowflake-hibernate Dialect Switch* | *Values* | *Default* |
|---------------------|-------------------------------------------------------------|-----------------|-----------|
| JDBC Driver Version | hibernate.dialect.snowflake.allow_unrecommended_jdbc_driver | false/true | false |
Expand Down Expand Up @@ -138,7 +141,7 @@ Run performance tests:
3. Build snowflake-hibernate `./mvnw clean package`
4. Install snowflake-hibernate in private maven repo
```
./mvnw org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file -Dfile=./snowflake-hibernate/target/snowflake-hibernate-*-SNAPSHOT.jar -DpomFile=./snowflake-hibernate-pom.xml
./mvnw org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file -Dfile=./target/snowflake-hibernate.jar -DpomFile=./pom.xml
```

#### Spring Boot samples
Expand All @@ -152,7 +155,3 @@ Run performance tests:
1. Go to [sample/springboot-flyway](sample/springboot-flyway) `cd ./sample/springboot-flyway`
2. Set java version to 17 (e.g. using sdkman)
3. Run tests: `../../mvnw clean test`

## Prepare distribution for PrPr

Run `./buildPrPrArtifact.sh`
20 changes: 0 additions & 20 deletions buildPrPrArtifact.sh

This file was deleted.

3 changes: 2 additions & 1 deletion ci/container/test_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ cd "$SOURCE_ROOT"
# Avoid connection timeout on plugin dependency fetch or fail-fast when dependency cannot be fetched
$MVNW_EXE --batch-mode --show-version dependency:go-offline

echo "[INFO] Run Hibernate tests"
echo "[INFO] Run Hibernate tests on Snowflake JDBC v$JDBC_VERSION"
$MVNW_EXE -Djava.io.tmpdir="$WORKSPACE" \
-Djacoco.skip.instrument=false \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
verify \
-DtestGroups="$TEST_GROUPS" \
-Dsnowflake-jdbc.version="$JDBC_VERSION" \
--batch-mode --show-version
3 changes: 2 additions & 1 deletion ci/test_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ echo "MAVEN OPTIONS %MAVEN_OPTS%"
REM Avoid connection timeout on plugin dependency fetch or fail-fast when dependency cannot be fetched
cmd /c %MVNW_EXE% --batch-mode --show-version dependency:go-offline

echo [INFO] Run Hibernate tests
echo [INFO] Run Hibernate tests on Snowflake JDBC v%JDBC_VERSION%
cmd /c %MVNW_EXE% -B -Djava.io.tmpdir=%GITHUB_WORKSPACE% ^
-Djacoco.skip.instrument=false ^
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn ^
verify ^
-DtestGroups=%TEST_GROUPS% ^
-Dsnowflake-jdbc.version=%JDBC_VERSION% ^
--batch-mode --show-version > log.txt & type log.txt
echo "[INFO] Check for test execution status"
find /i /c "BUILD FAILURE" log.txt > NUL
Expand Down
Loading
Loading