Skip to content

Commit fe94511

Browse files
authored
#72 Upgrade to Metabase v0.47.3 (#74)
1 parent 9d25437 commit fe94511

File tree

15 files changed

+161
-94
lines changed

15 files changed

+161
-94
lines changed

.github/workflows/broken_links_checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
group: ${{ github.workflow }}-${{ github.ref }}
1616
cancel-in-progress: true
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Configure broken links checker
2020
run: |
2121
mkdir -p ./target
@@ -24,4 +24,4 @@ jobs:
2424
with:
2525
use-quiet-mode: 'yes'
2626
use-verbose-mode: 'yes'
27-
config-file: ./target/broken_links_checker.json
27+
config-file: ./target/broken_links_checker.json

.github/workflows/ci-build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
cancel-in-progress: true
1616
runs-on: ubuntu-latest
1717
env:
18-
METABASE_TAG: v0.46.5
18+
METABASE_TAG: v0.47.3
1919
steps:
2020
- name: Checkout the repository
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
2424
path: metabase-driver
2525

2626
- name: Checkout the Metabase repository at tag ${{ env.METABASE_TAG }}
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 1
3030
repository: metabase/metabase
@@ -38,9 +38,9 @@ jobs:
3838
java-version: 11
3939

4040
- name: Install clojure tools
41-
uses: DeLaGuardo/setup-clojure@7.0
41+
uses: DeLaGuardo/setup-clojure@12.1
4242
with:
43-
cli: latest
43+
cli: '1.11.1.1262'
4444

4545
- name: Cache Maven repository
4646
uses: actions/cache@v3
@@ -83,4 +83,3 @@ jobs:
8383
cd "$GITHUB_WORKSPACE/metabase-driver"
8484
mkdir -p .clj-kondo/.cache
8585
clojure -M:clj-kondo --lint src test --debug
86-

.github/workflows/integration-tests.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,39 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
exasol_version: ["7.1.17", "8.18.1"]
14+
exasol_version: ["7.1.17", "8.18.1"] # Must be supported by integration-test-docker-environment
1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.exasol_version }}
1717
cancel-in-progress: true
1818
name: "Build with Exasol ${{ matrix.exasol_version }}"
1919
runs-on: ubuntu-latest
2020
env:
21-
METABASE_TAG: v0.46.5
21+
METABASE_TAG: v0.47.3
2222
steps:
23+
- name: Free Disk Space
24+
run: |
25+
sudo rm -rf /usr/local/lib/android
26+
sudo rm -rf /usr/share/dotnet
2327
- name: Checkout the repository
24-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2529
with:
2630
fetch-depth: 1
2731
path: 'metabase-driver'
2832

2933
- name: Checkout the Metabase repository at tag ${{ env.METABASE_TAG }}
30-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3135
with:
3236
fetch-depth: 1
3337
repository: 'metabase/metabase'
3438
path: 'metabase'
3539
ref: ${{ env.METABASE_TAG }}
3640

3741
- name: Checkout integration test docker environment
38-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
3943
with:
4044
fetch-depth: 1
4145
repository: 'exasol/integration-test-docker-environment'
42-
ref: "1.7.1"
46+
ref: "2.0.0"
4347
path: 'integration-test-docker-environment'
4448

4549
- name: Set up JDK 11
@@ -49,9 +53,9 @@ jobs:
4953
java-version: 11
5054

5155
- name: Install clojure tools
52-
uses: DeLaGuardo/setup-clojure@7.0
56+
uses: DeLaGuardo/setup-clojure@12.1
5357
with:
54-
cli: latest
58+
cli: '1.11.1.1262'
5559

5660
- name: Cache Maven repository
5761
uses: actions/cache@v3
@@ -90,8 +94,9 @@ jobs:
9094

9195
- name: Run integration tests
9296
run: |
97+
cat $GITHUB_WORKSPACE/integration-test-docker-environment/.build_output/cache/environments/test/environment_info.sh
9398
source $GITHUB_WORKSPACE/integration-test-docker-environment/.build_output/cache/environments/test/environment_info.sh
94-
EXASOL_HOST=$ENVIRONMENT_DATABASE_HOST \
95-
EXASOL_PORT=$ENVIRONMENT_DATABASE_DB_PORT \
99+
EXASOL_HOST=$ITDE_DATABASE_HOST \
100+
EXASOL_PORT=$ITDE_DATABASE_DB_PORT \
96101
EXASOL_USER=sys EXASOL_PASSWORD=exasol \
97102
$GITHUB_WORKSPACE/metabase-driver/scripts/run-integration-tests.sh

.github/workflows/release_droid_upload_github_release_assets.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
env:
14-
METABASE_TAG: v0.46.5
14+
METABASE_TAG: v0.47.3
1515
steps:
1616
- name: Checkout the repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 1
2020
path: metabase-driver
2121

2222
- name: Checkout the Metabase repository at tag ${{ env.METABASE_TAG }}
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 1
2626
repository: metabase/metabase
@@ -34,9 +34,9 @@ jobs:
3434
java-version: 11
3535

3636
- name: Install clojure tools
37-
uses: DeLaGuardo/setup-clojure@7.0
37+
uses: DeLaGuardo/setup-clojure@12.1
3838
with:
39-
cli: latest
39+
cli: '1.11.1.1262'
4040

4141
- name: Cache Maven repository
4242
uses: actions/cache@v3

deps.edn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
:aliases
1212
{:dev
1313
{:extra-deps
14-
{io.github.metabase/metabase {:git/tag "v0.46.5" :git/sha "0ca7df3"}}}
14+
{io.github.metabase/metabase {:git/tag "v0.47.3" :git/sha "0ca7df3"}}}
1515

1616
; clojure -M:clj-kondo --lint src test --debug
1717
:clj-kondo
1818
{:replace-deps {clj-kondo/clj-kondo {:mvn/version "2023.03.17"}}
19-
:main-opts ["-m" "clj-kondo.main"]}}}
19+
:main-opts ["-m" "clj-kondo.main"]}}}

doc/changes/changes_1.0.6.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# metabase-driver 1.0.6, released 2023-06-??
1+
# metabase-driver 1.0.6, released 2023-10-09
22

3-
Code name: Test with Exasol 8
3+
Code name: Test with Exasol 8, upgrade to Metabase v0.47.3
44

55
## Summary
66

7-
This release adds tests for Exasol version 8 and adapts the driver to Metabase v0.46.5.
7+
This release adds tests for Exasol version 8 and adapts the driver to Metabase v0.47.3.
8+
9+
## Features
10+
11+
* #72: Upgraded to Metabase v0.47.3
12+
* #71: Upgraded JDBC driver to 7.1.20
813

914
## Tests
1015

doc/developer_guide/developer_guide.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ clojure --version
4545
git clone https://github.com/metabase/metabase.git
4646
cd metabase
4747
git fetch --all --tags
48-
export METABASE_VERSION=v0.46.5
48+
export METABASE_VERSION=v0.47.3
4949
git reset --hard
50-
rm -vf target/patch_excluded_test_applied target/patch_fix_metabase_build_applied
50+
rm -vf target/patch_excluded_test_applied
5151
git checkout "tags/${METABASE_VERSION}" -b "${METABASE_VERSION}-branch"
5252
# Build (this will take ~15min)
5353
./bin/build.sh
5454
# Run
5555
clojure -M:run
5656
```
5757

58-
2. Download the Exasol JDBC driver from the [Download Portal](https://www.exasol.com/portal/display/DOWNLOAD/) and install it:
58+
2. Download the Exasol JDBC driver from the [Download Portal](https://downloads.exasol.com/clients-and-drivers) and install it:
5959

6060
```bash
6161
cp exajdbc.jar "$METABASE_DIR/plugins"
@@ -112,6 +112,14 @@ clojure -M:run
112112

113113
You need to have metabase checked out next to this repository.
114114

115+
Start Exasol docker container:
116+
117+
```shell
118+
docker run --publish 8563:8563 --publish 2580:2580 --publish 443:443 --detach --privileged --stop-timeout 120 exasol/docker-db:7.1.23
119+
```
120+
121+
Start integration tests:
122+
115123
```shell
116124
EXASOL_HOST=<hostname> EXASOL_PORT=8563 EXASOL_USER=sys EXASOL_PASSWORD=exasol ./scripts/run-integration-tests.sh
117125
```
@@ -180,7 +188,7 @@ When the patch file has changed or you updated to a new Metabase release, do the
180188
181189
```shell
182190
cd $METABASE_DIR
183-
git reset --hard && rm -vf target/patch_excluded_test_applied target/patch_fix_metabase_build_applied
191+
git reset --hard && rm -vf target/patch_excluded_test_applied
184192
```
185193
186194
## Linting

scripts/build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ exasol_driver_dir="$( cd "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P )"
88

99
source "$exasol_driver_dir/scripts/common.sh"
1010

11-
patch_metbase_build_scripts
12-
1311
log_info "Building exasol driver in $exasol_driver_dir using Metabase $metabase_dir..."
1412
cd "$metabase_dir"
1513
DRIVER_PATH=$exasol_driver_dir

scripts/common.sh

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,3 @@ patch_excluded_tests() {
5252
log_trace "Test exclusion patch already applied"
5353
fi
5454
}
55-
56-
patch_metbase_build_scripts() {
57-
local patch_applied="$metabase_dir/target/patch_fix_metabase_build_applied"
58-
if [ ! -f "$patch_applied" ]; then
59-
local patch_file="$exasol_driver_dir/scripts/fix-metabase-build.diff"
60-
cd "$metabase_dir"
61-
log_info "Check if patch $patch_file can be applied..."
62-
if ! git apply --check --verbose "$patch_file" ; then
63-
log_error "Error applying patch $patch_file to $metabase_dir"
64-
log_error "Please revert your local changes"
65-
exit 1
66-
fi
67-
log_info "Applying patch $patch_file to fix build scripts"
68-
git apply --apply --verbose "$patch_file"
69-
mkdir -p "$(dirname "$patch_applied")"
70-
touch "$patch_applied"
71-
else
72-
log_trace "Build script patch already applied"
73-
fi
74-
}

0 commit comments

Comments
 (0)