zenml icon indicating copy to clipboard operation
zenml copied to clipboard

Add VSCode tutorial pipeline testing to CI

Open strickvl opened this issue 6 months ago • 3 comments

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.sh with validation and reporting
  • CI integration: Added to ci-slow.yml as vscode-tutorial-pipelines-test job
  • 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.sh passes
  • [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

strickvl avatar Jun 13 '25 14:06 strickvl

[!IMPORTANT]

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in 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.

❤️ Share
🪧 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 @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in 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 pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere 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.

coderabbitai[bot] avatar Jun 13 '25 14:06 coderabbitai[bot]

Documentation Link Check Results

Absolute links check passedRelative links check passed Last checked: 2025-07-03 08:58:19 UTC

github-actions[bot] avatar Jun 13 '25 14:06 github-actions[bot]

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.

strickvl avatar Jun 16 '25 12:06 strickvl

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.

bcdurak avatar Jun 27 '25 06:06 bcdurak