Skip to content

add papermill-based notebook tests for pyiceberg examples#3330

Open
federicsp wants to merge 2 commits intoapache:mainfrom
federicsp:main
Open

add papermill-based notebook tests for pyiceberg examples#3330
federicsp wants to merge 2 commits intoapache:mainfrom
federicsp:main

Conversation

@federicsp
Copy link
Copy Markdown

Closes #3328

Rationale for this change

pyiceberg_example.ipynb and spark_integration_example.ipynb had no
automated test coverage. Breaking changes to notebook cells could go
undetected in CI.

This PR adds papermill-based tests that execute the
real notebooks as-is, so any change to a cell is automatically reflected
in the tests.

Are these changes tested?

Yes. The tests themselves are the change. Run them with:

make test-notebook

Are there any user-facing changes?

No.

@federicsp
Copy link
Copy Markdown
Author

@kevinjqliu the lint job failed on Python 3.14 with a uv cache error — looks unrelated to the PR. Could you take a look?

@Fokko
Copy link
Copy Markdown
Contributor

Fokko commented May 6, 2026

Ohhh, this is nice! Retriggered the CI.

Copy link
Copy Markdown
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

This looks great!

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.

Notebook examples lack automated test coverage

2 participants