Skip to content

Commit 9566c18

Browse files
authored
ci: define the test dataset inline instead of fetching it from the registry (#83)
`spice add spiceai/quickstart` makes every run depend on the Spicepod registry, which is currently returning a body the CLI cannot unpack: Invalid argument: Failed to extract Spicepod archive: invalid Zip archive: Could not find EOCD Declaring the same dataset inline removes the dependency. Covers both the Unix step (heredoc) and the Windows step (PowerShell here-string). Verified locally: taxi_trips loads and is queryable within seconds. Mirrors spicepy#176.
1 parent 82dcce7 commit 9566c18

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,20 @@ jobs:
159159
run: |
160160
spice init spice_qs
161161
cd spice_qs
162-
spice add spiceai/quickstart
162+
# Define the dataset inline rather than fetching spiceai/quickstart from
163+
# the Spicepod registry, which currently returns a body the CLI cannot
164+
# unpack ("Failed to extract Spicepod archive: Could not find EOCD").
165+
cat >> spicepod.yaml <<'YAML'
166+
167+
datasets:
168+
- from: s3://spiceai-demo-datasets/taxi_trips/2024/
169+
name: taxi_trips
170+
description: taxi trips in s3
171+
params:
172+
file_format: parquet
173+
acceleration:
174+
enabled: true
175+
YAML
163176
spice run &> spice.log &
164177
# time to initialize added dataset
165178
sleep 10
@@ -169,7 +182,20 @@ jobs:
169182
run: |
170183
spice init spice_qs
171184
cd spice_qs
172-
spice add spiceai/quickstart
185+
# Define the dataset inline rather than fetching spiceai/quickstart from
186+
# the Spicepod registry, which currently returns a body the CLI cannot
187+
# unpack ("Failed to extract Spicepod archive: Could not find EOCD").
188+
@'
189+
190+
datasets:
191+
- from: s3://spiceai-demo-datasets/taxi_trips/2024/
192+
name: taxi_trips
193+
description: taxi trips in s3
194+
params:
195+
file_format: parquet
196+
acceleration:
197+
enabled: true
198+
'@ | Add-Content -Path spicepod.yaml
173199
Start-Process -FilePath spice run
174200
# time to initialize added dataset
175201
Start-Sleep -Seconds 10

0 commit comments

Comments
 (0)