Skip to content

Commit b4dc6a2

Browse files
committed
Fix
1 parent 0d1f3ac commit b4dc6a2

1 file changed

Lines changed: 24 additions & 10 deletions

File tree

.github/workflows/run_spicebench.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Run
2-
run-name: Run - ${{ github.event.inputs.system_under_test || 'spice_cloud' }}
2+
run-name: Run - ${{ github.event.inputs.system_under_test || 'spice_cloud' }} - ${{ github.event.inputs.etl_type}}
33

44
on:
55
schedule:
@@ -118,9 +118,6 @@ jobs:
118118
DATABRICKS_SQL_WAREHOUSE_ID: ${{ secrets.DATABRICKS_SQL_WAREHOUSE_ID }}
119119
DATABRICKS_CATALOG: ${{ secrets.DATABRICKS_CATALOG }}
120120
DATABRICKS_SCHEMA: ${{ secrets.DATABRICKS_SCHEMA }}
121-
PG_HOST: ${{ vars.POSTGRES_PG_HOST }}
122-
PG_USER: ${{ secrets.POSTGRES_PG_USER }}
123-
PG_DATABASE: ${{ vars.POSTGRES_PG_DATABASE }}
124121
run: |
125122
set -euo pipefail
126123
SYSTEM_UNDER_TEST_PREFIX="${SYSTEM_UNDER_TEST%%-*}"
@@ -175,13 +172,30 @@ jobs:
175172
;;
176173
177174
postgres)
178-
for required_var in PG_HOST PG_USER PG_DATABASE; do
179-
if [ -z "${!required_var:-}" ]; then
180-
echo "${required_var} must be set for postgres adapter mode"
181-
exit 1
182-
fi
183-
done
175+
if ! command -v docker >/dev/null 2>&1; then
176+
echo "docker is required for postgres mode"
177+
exit 1
178+
fi
179+
180+
docker image inspect ghcr.io/spiceai/spidapter:latest >/dev/null 2>&1 || {
181+
echo "spidapter docker image not found locally; pull step may have failed"
182+
exit 1
183+
}
184+
;;
185+
186+
mongodb)
187+
if ! command -v docker >/dev/null 2>&1; then
188+
echo "docker is required for postgres mode"
189+
exit 1
190+
fi
191+
192+
docker image inspect ghcr.io/spiceai/spidapter:latest >/dev/null 2>&1 || {
193+
echo "spidapter docker image not found locally; pull step may have failed"
194+
exit 1
195+
}
196+
;;
184197
198+
dynamodb)
185199
if ! command -v docker >/dev/null 2>&1; then
186200
echo "docker is required for postgres mode"
187201
exit 1

0 commit comments

Comments
 (0)