-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MariaDB migration testing #2170
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the WalkthroughThe project has introduced a new GitHub Actions workflow to automate the testing of database migrations for MariaDB. This includes setting up Python 3.9 and executing a script that handles migrations across different MariaDB versions. Additionally, an existing script has been updated to support MariaDB, including the ability to manage Docker containers and perform connection and disconnection steps tailored for MariaDB. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@coderabbitai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 1
Configuration used: .coderabbit.yaml
Files selected for processing (3)
- .github/workflows/release.yml (1 hunks)
- .github/workflows/testing_this_now.yml (1 hunks)
- scripts/test-migrations.sh (3 hunks)
Additional comments: 3
.github/workflows/release.yml (1)
- 69-82: The addition of the
mariadb-db-migration-testing
job is consistent with the PR's objective to introduce MariaDB testing. Ensure that theubuntu-dind-runners
label is correctly configured in the CI environment to handle the Docker-in-Docker setup required for MariaDB testing..github/workflows/testing_this_now.yml (1)
- 1-18: The new workflow
TEST MariaDB DB migrations
is correctly configured with triggers for PR events and path exclusions. Verify that the paths ignored are as intended and that no additional paths that should trigger the workflow are excluded.scripts/test-migrations.sh (1)
- 119-121: The cleanup commands for the MariaDB Docker container are correct. Ensure that the CI environment has the necessary permissions to execute these Docker commands without issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
@coderabbitai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 2
Configuration used: .coderabbit.yaml
Files selected for processing (2)
- scripts/test-migrations.sh (4 hunks)
- src/zenml/zen_stores/migrations/versions/728c6369cfaa_add_name_column_to_input_artifact_pk.py (1 hunks)
Files skipped from review due to trivial changes (1)
- scripts/test-migrations.sh
src/zenml/zen_stores/migrations/versions/728c6369cfaa_add_name_column_to_input_artifact_pk.py
Outdated
Show resolved
Hide resolved
src/zenml/zen_stores/migrations/versions/728c6369cfaa_add_name_column_to_input_artifact_pk.py
Outdated
Show resolved
Hide resolved
…riadb-db-migrations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same observations applies to the existing MySQL code
@avishniakov fixed as per your changes and all ran without error here https://github.com/zenml-io/zenml/actions/runs/7463701141 |
Adds MariaDB DB migration testing.
https://github.com/zenml-io/zenml/actions/runs/7452053752/job/20274610586 shows the test running through without error.
Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes
Summary by CodeRabbit
Summary of changes
New Features
Enhancements
Documentation