Skip to content

test: add script to run example livebooks against local checkout - #137

Merged
ausimian merged 1 commit into
mainfrom
test/livebooks-script
May 31, 2026
Merged

test: add script to run example livebooks against local checkout#137
ausimian merged 1 commit into
mainfrom
test/livebooks-script

Conversation

@ausimian

Copy link
Copy Markdown
Owner

Adds scripts/test-livebooks.sh: for each notebook in notebooks/, extracts the ```elixir cells, rewrites the {:emily, "~> x"} Mix.install dep to `{:emily, path: ""}` (so the NIF builds from the working tree and the notebook runs against local code), runs it headless with `elixir`, and reports PASS/FAIL/SKIP + per-notebook logs.

Mirrors the standalone-Mix.install pattern in scripts/qwen3_conformance.exs. Validated end-to-end on distilbert_qa (compiled the NIF from source, ran the QA pipeline through Emily.Backend, exit 0). Notebooks are run, not interacted with — Kino form/input cells (e.g. Whisper's audio recorder) don't fire, but surrounding setup/inference does.

scripts/test-livebooks.sh                     # all notebooks
scripts/test-livebooks.sh distilbert_qa       # a subset
LIVEBOOK_TIMEOUT=1800 LIVEBOOK_SKIP="qwen3_quantized" scripts/test-livebooks.sh

Dev tool only — not shipped in the hex package (scripts/ isn't in package[:files]); no Elixir/C++ change.

scripts/test-livebooks.sh extracts the Elixir cells from each notebook
in notebooks/, repoints the `{:emily, "~> x"}` Mix.install dependency at
the working tree (a path dep, so the NIF is built from source and the
notebook runs against local code), and runs each headless with `elixir`,
reporting PASS/FAIL/SKIP plus per-notebook logs.

Mirrors the standalone-Mix.install pattern in scripts/qwen3_conformance.exs.
Notebooks are run, not interacted with — Kino form/input cells (e.g. the
Whisper audio recorder) don't fire, but surrounding setup/inference does.
@ausimian
ausimian merged commit 3e396b1 into main May 31, 2026
3 checks passed
@ausimian
ausimian deleted the test/livebooks-script branch May 31, 2026 11:38
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.

1 participant