Skip to content

ci: stop uploading sqlmesh-tests to Tobiko's private registry - #6265

Merged
mday-io merged 1 commit into
SQLMesh:mainfrom
mday-io:mday/remove-tobiko-private-upload
Nov 25, 2026
Merged

mday-io merged 1 commit into
SQLMesh:mainfrom
mday-io:mday/remove-tobiko-private-upload

Conversation

@mday-io

@mday-io mday-io commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Why

After publishing to PyPI, the release workflow packages tests/ as sqlmesh-tests and uploads it to Tobiko's private package registry. #2270 added this in March 2024 so Tobiko's other repos could run SQLMesh's core tests, and #5729 carried it over when CI moved to GitHub Actions. SQLMesh is now a Linux Foundation project, so a community release shouldn't publish to one company's private registry, and this repo shouldn't hold that registry's credentials.

The upload also runs after the PyPI upload, so if Tobiko's registry fails, the release run fails even though the package is already on PyPI.

How

  • Remove the "Update pypirc for private repository" and "Publish Python Tests package" steps from .github/workflows/release.yaml.
  • Delete .github/scripts/update-pypirc.sh, which only that step used.

Toby has agreed to removing the upload. If anything still needs sqlmesh-tests, its owner can build the package from a public release tag with make package-tests.

After this merges, a repo admin can delete the TOBIKO_PRIVATE_PYPI_URL and TOBIKO_PRIVATE_PYPI_KEY secrets. The publish-tests Makefile target still uploads to tobiko-private. I've left it for a follow-up, since nothing in CI calls it after this change.

Test Plan

  • Checked that release.yaml still parses and that the publish job now ends with "Publish Python package".
  • git grep finds no remaining references to update-pypirc.sh or the TOBIKO_PRIVATE_* secrets. The only remaining tobiko-private reference is the publish-tests Makefile target.
  • The release workflow only runs on a pushed v*.*.* tag, so this PR's CI doesn't exercise it. The next release is the first real run.

Checklist

  • I have run make style and fixed any issues (not applicable: no files covered by the style hooks changed)
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test) (not applicable: CI config only)
  • My commits are signed off (git commit -s) per the DCO

Summary by CodeRabbit

  • Chores
    • Automated releases no longer publish the Python Tests package or update private package repository credentials. The Python package continues to be published before the GitHub release is created.
    • These changes affect the automated release process; they do not change the features available in the application or the published Python package.

The release workflow packaged tests/ as sqlmesh-tests and uploaded it to Tobiko's private package registry after publishing to PyPI. Remove that upload and the script that configured the registry, so releases no longer need the TOBIKO_PRIVATE_PYPI_URL and TOBIKO_PRIVATE_PYPI_KEY secrets.

Signed-off-by: mday-io <mdaytn@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The release workflow no longer configures private PyPI credentials or publishes the Python Tests package. It still publishes the Python package before creating the GitHub release.

Changes: Release publishing

Layer / File(s) Summary
Remove private package publishing
.github/workflows/release.yaml, .github/scripts/update-pypirc.sh
The workflow no longer updates .pypirc with private repository credentials or runs make publish-tests. The helper script for writing those credentials was deleted.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Suggested reviewers: eakmanrq

Merge Risk: Minimal · up to b9466

Releases no longer upload the tests package to the private registry or need its secrets, so a failed private upload can no longer break a release after the PyPI upload. The PyPI publish step is unchanged. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the CI workflow no longer uploads the sqlmesh-tests package to Tobiko's private registry. The title is concise and specific, and the changeset removes the upload steps…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description covers the Why, How, and Test Plan sections, and it explains the reasons for removing the private registry upload. It names the removed steps, the deleted script, and the secrets that …
Full details: Title check

Explanation

The title names the main change: the CI workflow no longer uploads the sqlmesh-tests package to Tobiko's private registry. The title is concise and specific, and the changeset removes the upload steps and the update-pypirc.sh script that supported them, so it matches the diff.

Full details: Description check

Explanation

The description covers the Why, How, and Test Plan sections, and it explains the reasons for removing the private registry upload. It names the removed steps, the deleted script, and the secrets that can be removed later. It also states the verification done and the follow-up left for the publish-tests Makefile target. The template's Description and Test Plan sections are filled in. The Checklist is present, with the DCO box checked and the other boxes annotated as not applicable with reasons. The description is mostly complete and specific, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0ef55501-129c-45ab-8433-ebd4ff5f95fb
Commits

Reviewing files that changed from the base of the PR and between 9c2ad4f and b9466c5.

Files selected for processing: 2

  • .github/scripts/update-pypirc.sh
  • .github/workflows/release.yaml
Files with no reviewable changes: 2

  • .github/scripts/update-pypirc.sh
  • .github/workflows/release.yaml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@mday-io
mday-io marked this pull request as ready for review November 25, 2026 21:09

@nicksspirit nicksspirit left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Changes look good, we should merge this first before the other CI pr you created.

@mday-io
mday-io merged commit f5ec1fb into SQLMesh:main Nov 25, 2026
37 checks passed
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.

2 participants