Repository navigation
[Kernel OSS Readiness] Document the release process #498
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
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| <!-- | ||
| Copyright (c) 2026 Databricks, Inc. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| # Releasing Databricks SQL Kernel | ||
|
|
||
| This document is for repository maintainers. Releases are built, scanned, and | ||
| published by CI from a version tag; do not publish packages from a workstation. | ||
|
|
||
| ## Prepare the release | ||
|
|
||
| 1. Open a release pull request that updates the version in the root | ||
| `Cargo.toml`, `pyo3/Cargo.toml`, `pyo3/pyproject.toml`, `napi/Cargo.toml`, | ||
| and `napi/package.json`, and refreshes their lockfiles. Keep the standalone | ||
| ADBC crate unpublished (`publish = false`); only update its kernel dependency | ||
| requirement and lockfile. | ||
| 2. Move each component's staged entries from `NEXT_CHANGELOG.md`, | ||
| `pyo3/NEXT_CHANGELOG.md`, and `napi/NEXT_CHANGELOG.md` into the corresponding | ||
| `CHANGELOG.md`. Add each release section as | ||
| `## [v<version>] - <YYYY-MM-DD>`, then reset the staged file to its empty | ||
| template. Do not add a component section when that component has no changes. | ||
| 3. Run the repository checks and package validation: | ||
|
|
||
| ```bash | ||
|
rahuls-db marked this conversation as resolved.
Resolved
|
||
| make check | ||
|
rahuls-db marked this conversation as resolved.
Resolved
|
||
| cargo check --locked --manifest-path adbc/Cargo.toml | ||
| cargo check --locked --manifest-path pyo3/Cargo.toml | ||
| cargo check --locked --manifest-path napi/Cargo.toml | ||
| cargo package --locked --list | ||
| cargo package --locked | ||
| ``` | ||
|
|
||
| CI additionally builds and tests the PyO3 and NAPI packages and runs license, | ||
| advisory, SBOM, and artifact scans. | ||
|
|
||
| ## Tag and publish | ||
|
|
||
| After the release pull request is approved, CI is green, and the commit is on | ||
| `main`, manually dispatch the `Cargo Publish` workflow against that release | ||
| commit with `dry_run=true`. Manual dispatch skips the workflow's tag/version | ||
| check, so confirm that the selected ref is the intended release commit and that | ||
| its root `Cargo.toml` contains the intended version. | ||
|
|
||
| After the dry run succeeds, create an annotated `v<version>` tag on the release | ||
| commit. The tag must exactly match the root `Cargo.toml` version. Pushing the tag | ||
| immediately runs a real `cargo publish --registry jfrog`; the tag-triggered path | ||
| is not a dry run. | ||
|
|
||
| The tag triggers the repository's internal Cargo publication workflow. Public | ||
|
rahuls-db marked this conversation as resolved.
Resolved
|
||
| packages are released through the hardened workflows in | ||
| `databricks/secure-public-registry-releases-eng`: | ||
|
|
||
| - `peco-databricks-sql-kernel-rust.yml` publishes the kernel crate to crates.io. | ||
| - `peco-databricks-sql-kernel-python.yml` publishes Python wheels and the source | ||
| distribution to PyPI. | ||
| - `peco-databricks-sql-kernel-nodejs.yml` publishes the NAPI packages to npm. | ||
|
|
||
| Run each applicable public-package workflow in dry-run mode first. A real | ||
| publication requires the configured release-environment approval. The workflows | ||
|
rahuls-db marked this conversation as resolved.
Resolved
|
||
| verify the tag and manifest versions, build on protected runners, scan the | ||
| assembled artifacts, publish from hardened runners, and create or update the | ||
| GitHub release from the component changelogs. If one of these dry runs fails | ||
| after the tag has triggered the internal JFrog publish, fix the issue in a new | ||
| release pull request, bump the version, and repeat the release process; do not | ||
| reuse an internally published version. | ||
|
|
||
| Rust ADBC is experimental and has no publication workflow. Do not publish it or | ||
| attach ADBC artifacts to a release. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.