Skip to content

docs: Allow arbitrary filenames for spicepod path argument#1727

Merged
lukekim merged 1 commit into
trunkfrom
docs/spicepod-arbitrary-filename
May 14, 2026
Merged

docs: Allow arbitrary filenames for spicepod path argument#1727
lukekim merged 1 commit into
trunkfrom
docs/spicepod-arbitrary-filename

Conversation

@lukekim
Copy link
Copy Markdown
Contributor

@lukekim lukekim commented May 14, 2026

Summary

spice run, spiced, and spice validate now accept any YAML file path (e.g. spiced ./configs/my-app.yaml) — not just files named spicepod.yaml / spicepod.yml. Files passed by path must declare kind: Spicepod and a recognized version; otherwise the runtime exits with an explicit validation error.

Source PRs

Changes

  • website/docs/reference/spicepod/index.md — relax the previous "must be named spicepod.yaml or spicepod.yml" wording and describe the directory-vs-file behavior.
  • website/docs/cli/reference/run.md — clarify that the positional [PATH] arg accepts arbitrary YAML filenames as long as the file declares kind: Spicepod.
  • website/docs/cli/reference/spiced.md — same clarification for SPICEPOD_PATH.
  • website/docs/cli/reference/validate.md — same clarification for the path argument.

Test plan

  • cd website && npm run build passes locally
  • Behavior verified against Spicepod::load_from and the new kind/version validation in crates/spicepod/src/lib.rs
  • Directory fallback (looks for spicepod.yaml / spicepod.yml) verified against test_load_from_directory_finds_spicepod_yaml

`spice run`, `spiced`, and `spice validate` now accept any YAML file
path (e.g. `spiced ./configs/my-app.yaml`) — not just files literally
named `spicepod.yaml`/`spicepod.yml`. Files passed by path must declare
`kind: Spicepod` and a recognized `version`, otherwise the runtime
exits with an explicit validation error.

- `reference/spicepod/index.md` — relax the "must be named spicepod.yaml"
  claim and describe the directory-vs-file behavior.
- `cli/reference/run.md`, `spiced.md`, `validate.md` — clarify what the
  positional path argument accepts.

Reflects the behavior introduced in spiceai/spiceai#10777.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

✅ Pull with Spice Passed

Passing checks:

  • ✅ Title meets minimum length requirement (10 characters)
  • ✅ Has at least one of the required labels: area/blog, area/docs, area/cookbook, dependencies
  • ✅ No banned labels detected
  • ✅ Has at least one assignee: claudespice

@github-actions
Copy link
Copy Markdown

🚀 deployed to https://da350875.spiceai-org-website.pages.dev

@lukekim lukekim merged commit 98eb3b9 into trunk May 14, 2026
6 of 8 checks passed
@lukekim lukekim deleted the docs/spicepod-arbitrary-filename branch May 14, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants