Add VSCode tutorial pipeline testing to CI
Adds a new CI workflow that tests all tutorial pipelines from the zenml-io/vscode-tutorial-extension repository to ensure ZenML core changes don't break user-facing tutorial examples.
This provides early detection of breaking changes that would affect the tutorial pipelines that users follow when learning ZenML.
View a successful run of these tests here: https://github.com/zenml-io/zenml/actions/runs/15637115894/job/44055030989. (This took just over 2 mins to run end-to-end).
Key Features
- Standalone workflow: Can be called from ci-slow or run independently via GitHub Actions UI
- Regression testing: Tests ZenML from current branch (not PyPI) for accurate testing
- Comprehensive coverage: Runs all 10 tutorial pipelines with proper error handling
- Resilient: Includes retry logic for network issues and timeout protection per pipeline
- Well documented: Updates both tests/README.md and CLAUDE.md with testing strategy
Implementation Details
- New workflow:
.github/workflows/vscode-tutorial-pipelines-test.yml - Test script:
scripts/test-tutorial-pipelines.shwith validation and reporting - CI integration: Added to
ci-slow.ymlasvscode-tutorial-pipelines-testjob - Environment: Python 3.12 with UV package manager for fast dependency resolution
- Error handling: Comprehensive validation of repo structure and meaningful failure reporting
Files Changed
.github/workflows/vscode-tutorial-pipelines-test.yml(new standalone workflow)scripts/test-tutorial-pipelines.sh(new test execution script).github/workflows/ci-slow.yml(added job call)tests/README.md(updated testing strategy documentation)CLAUDE.md(updated CI documentation)
Test Plan
- [x] YAML syntax validation passes
- [x] Formatting with
scripts/format.shpasses - [x] Workflow includes proper error handling and resilience features
- [x] Script validates tutorial repository structure
- [x] Documentation accurately reflects new testing approach
The workflow will be triggered when the run-slow-ci label is applied to PRs, ensuring tutorial pipeline compatibility is verified before merging changes that could break user examples.
🤖 Generated with Claude Code
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Explain this complex logic.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai explain this code block.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and explain its main purpose.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai generate sequence diagramto generate a sequence diagram of the changes in this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
Documentation Link Check Results
✅ Absolute links check passed ✅ Relative links check passed Last checked: 2025-07-03 08:58:19 UTC
I have a general question about this. How do we version the changes in the tutorials? If something breaks in ZenML, the tutorial will break. Let's say we fix it in the other repo, which will run it out-of-sync with the latest ZenML release for a while until we make the next release. Even when we release, the pipelines will be incompatible with earlier versions of ZenML. Do we have any precautions for it?
The main thing this is trying to ward against is someone making a breaking change in the ZenML core API and not realising that it's also broken the tutorial pipelines.
The way we version changes to the tutorial pipelines is that it has it's own repo and people can make changes / PRs there etc and fix / update to work with the latest versions of ZenML.
I don't think there's a problem with the pipelines being incompatible with earlier versions of ZenML. These tutorial pipelines will only ever be run with the latest release of ZenML. And any changes made to the tutorials repo won't be reflected in the Codespaces environment until someone rebuilds the extension + pushes a new Docker image.
But maybe @safoinme has some thoughts on this as well.
I have a general question about this. How do we version the changes in the tutorials? If something breaks in ZenML, the tutorial will break. Let's say we fix it in the other repo, which will run it out-of-sync with the latest ZenML release for a while until we make the next release. Even when we release, the pipelines will be incompatible with earlier versions of ZenML. Do we have any precautions for it?
The main thing this is trying to ward against is someone making a breaking change in the ZenML core API and not realising that it's also broken the tutorial pipelines.
The way we version changes to the tutorial pipelines is that it has it's own repo and people can make changes / PRs there etc and fix / update to work with the latest versions of ZenML.
I don't think there's a problem with the pipelines being incompatible with earlier versions of ZenML. These tutorial pipelines will only ever be run with the latest release of ZenML. And any changes made to the tutorials repo won't be reflected in the Codespaces environment until someone rebuilds the extension + pushes a new Docker image.
But maybe @safoinme has some thoughts on this as well.
I see your point. However, it will be impossible to ward against someone breaking ZenML. Those types of changes are inevitable. 😄
I guess if the compatibility with the earlier versions is not an issue, and more importantly, any changes made to the tutorials repo isn't reflected until someone rebuilds, this approach should be fine.