test: add script to run example livebooks against local checkout - #137
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
scripts/test-livebooks.sh: for each notebook innotebooks/, 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.installpattern inscripts/qwen3_conformance.exs. Validated end-to-end ondistilbert_qa(compiled the NIF from source, ran the QA pipeline throughEmily.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.Dev tool only — not shipped in the hex package (
scripts/isn't inpackage[:files]); no Elixir/C++ change.