Skip to content

ci: define the test dataset inline instead of fetching it from the registry - #83

Merged
bjchambers merged 1 commit into
trunkfrom
fix/ci-inline-quickstart-dataset
Aug 14, 2026
Merged

ci: define the test dataset inline instead of fetching it from the registry#83
bjchambers merged 1 commit into
trunkfrom
fix/ci-inline-quickstart-dataset

Conversation

@lukekim

@lukekim lukekim commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

What

Replaces spice add spiceai/quickstart with the same dataset declared inline, in both the Unix step (heredoc) and the Windows step (PowerShell here-string).

Why

Every Build and test job dies before a test runs:

ERROR Invalid argument: Failed to extract Spicepod archive: invalid Zip archive: Could not find EOCD

The Spicepod registry is returning a body the CLI can't unpack. Clippy and rustfmt stay green because they don't need a runtime — only the jobs that start one fail, which is the signature of an environment problem rather than a code one.

This reproduces off CI: spice add spiceai/quickstart fails identically on a local machine.

Mirrors spicepy#176, which is green.

Verification

  • Ran the resulting spicepod against a local runtime — taxi_trips queryable in ~6s, 2,964,624 rows
  • Workflow YAML parses
  • Checked the dedented form each shell actually receives: the bash heredoc and the PowerShell here-string both come out correct, with '@ at column 0 as PowerShell requires
  • spice init emits version: v2

…gistry

`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.
Copilot AI review requested due to automatic review settings July 27, 2026 22:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CI workflow for the Rust SDK to avoid fetching the spiceai/quickstart Spicepod from the registry (currently failing to unpack) by declaring the equivalent dataset inline before starting the Spice runtime, so integration tests can run reliably again.

Changes:

  • Replace spice add spiceai/quickstart with an inline datasets: declaration appended to spicepod.yaml on Unix (bash heredoc).
  • Do the same dataset injection on Windows (PowerShell here-string piped to Add-Content).
  • Preserve the existing runtime start + wait behavior before running cargo test.

@bjchambers
bjchambers merged commit 9566c18 into trunk Aug 14, 2026
31 of 32 checks passed
@bjchambers
bjchambers deleted the fix/ci-inline-quickstart-dataset branch August 14, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants