Skip to content

Commit 0e5f13e

Browse files
Fix install script for spark session tests and pin dependency (#1275)
1 parent ad6c2da commit 0e5f13e

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

dbt-spark/dagger/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
beartype<0.18.0
2+
gql[httpx]~=3.5.0
23
dagger-io~=0.9.7
34
python-dotenv

dbt-spark/dagger/run_dbt_spark_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def test_spark(test_args):
140140
)
141141

142142
elif test_args.profile == "spark_session":
143-
tst_container = tst_container.with_exec(["apt-get", "install", "openjdk-17-jre", "-y"])
143+
tst_container = tst_container.with_exec(["./scripts/install_jdk.sh"])
144144

145145
# run the tests
146146
result = (
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -eo
3+
apt-get update && apt-get install -y \
4+
default-jdk

dbt-spark/hatch.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ features=["all"]
2727
[envs.default.scripts]
2828
setup = [
2929
"pre-commit install",
30-
"cp -n test.env.example test.env",
3130
"pip install -r dagger/requirements.txt",
3231
]
3332
code-quality = "pre-commit run --all-files"

0 commit comments

Comments
 (0)