Skip to content

Commit

Permalink
Fix for release issue (#276)
Browse files Browse the repository at this point in the history
* Reproduce droid CI environment

* Fix file format

* Update GitHub actions

* Add linting

* Use default Exasol version

* Use exasol version specified in ci workflow

* Update release date

---------

Co-authored-by: Christoph Pirkl <[email protected]>
  • Loading branch information
Shmuma and kaklakariada authored Oct 4, 2023
1 parent 35826e3 commit f508227
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build-next-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,16 @@ jobs:
strategy:
fail-fast: false
matrix:
exasol-docker-version: ["7.1.22"]
exasol-docker-version: ["7.1.23"]
env:
DEFAULT_DOCKER_DB_VERSION: "7.1.22"
DEFAULT_DOCKER_DB_VERSION: "7.1.23"
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
# temporary fix for https://github.com/jlumbroso/free-disk-space/issues/17
large-packages: false
docker-images: false
swap-storage: false

- name: Free Disk Space
run: |
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11 & 17
Expand Down Expand Up @@ -90,7 +82,7 @@ jobs:
-DtrimStackTrace=false \
-Dsonar.organization=exasol \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=$SONAR_TOKEN
-Dsonar.token=$SONAR_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
15 changes: 6 additions & 9 deletions .github/workflows/release_droid_prepare_original_checksum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ name: Release Droid - Prepare Original Checksum
on:
workflow_dispatch:

env:
DEFAULT_DOCKER_DB_VERSION: "7.1.22"

jobs:
build:
runs-on: ubuntu-20.04 # UDFs fail with "VM error: Internal error: VM crashed" on ubuntu-latest
steps:
- name: Free Disk Space
run: |
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
Expand All @@ -27,11 +28,7 @@ jobs:
- name: Enable testcontainer reuse
run: echo 'testcontainers.reuse.enable=true' > "$HOME/.testcontainers.properties"
- name: Run tests and build with Maven
run: |
mvn --batch-mode clean verify --file pom.xml \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-DtrimStackTrace=false \
-Dcom.exasol.dockerdb.image=${{ env.DEFAULT_DOCKER_DB_VERSION }}
run: mvn --batch-mode clean verify --file pom.xml
- name: Prepare checksum
run: find target -maxdepth 1 -name *.jar -exec sha256sum "{}" + > original_checksum
- name: Upload checksum to the artifactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ on:
workflow_dispatch:
inputs:
upload_url:
description: 'Assets upload URL'
description: "Assets upload URL"
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
distribution: "temurin"
java-version: 11
cache: 'maven'
cache: "maven"
- name: Build with Maven skipping tests
run: mvn --batch-mode clean verify -DskipTests
- name: Generate sha256sum files
Expand Down
2 changes: 1 addition & 1 deletion doc/changes/changes_2.7.4.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Cloud Storage Extension 2.7.4, released 2023-09-29
# Cloud Storage Extension 2.7.4, released 2023-10-04

Code name: Upgrade Dependencies

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ import org.scalatest.funsuite.AnyFunSuite

trait BaseIntegrationTest extends AnyFunSuite with BeforeAndAfterAll with LazyLogging {
private[this] val JAR_NAME_PATTERN = "exasol-cloud-storage-extension-"
private[this] val DEFAULT_EXASOL_DOCKER_IMAGE = "7.1.22"

val network = DockerNamedNetwork("it-tests", true)
val exasolContainer = {
val c: ExasolContainer[_] = new ExasolContainer(DEFAULT_EXASOL_DOCKER_IMAGE)
val c: ExasolContainer[_] = new ExasolContainer()
c.withNetwork(network)
c.withReuse(true)
c
Expand Down

0 comments on commit f508227

Please sign in to comment.