From 571eddd953f90bbb202423ba0d97ca95468842e7 Mon Sep 17 00:00:00 2001 From: Rahul Singhal Date: Mon, 23 Nov 2026 18:31:09 +0000 Subject: [PATCH 1/4] docs: document the release process Signed-off-by: Rahul Singhal --- RELEASING.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 RELEASING.md diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 00000000..49cf8ed3 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,48 @@ +# 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, PyO3, and + NAPI package manifests 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` into the + corresponding `CHANGELOG.md`, 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 + make check + 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`, create an annotated `v` tag on that commit. The tag must exactly +match the root `Cargo.toml` version. + +The tag triggers the repository's internal Cargo publication workflow. Public +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 the applicable workflow in dry-run mode first. A real publication requires +the configured release-environment approval. The workflows 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. + +Rust ADBC is experimental and has no publication workflow. Do not publish it or +attach ADBC artifacts to a release. From 4b0e79defba6dab0553b70b6aca5f6dc14647f0a Mon Sep 17 00:00:00 2001 From: Rahul Singhal Date: Mon, 23 Nov 2026 19:35:59 +0000 Subject: [PATCH 2/4] docs: clarify release validation and publish order Signed-off-by: Rahul Singhal --- RELEASING.md | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 49cf8ed3..0c1c1218 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -9,13 +9,17 @@ published by CI from a version tag; do not publish packages from a workstation. NAPI package manifests 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` into the - corresponding `CHANGELOG.md`, then reset the staged file to its empty +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] - `, 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 make check + cargo check --locked --manifest-path pyo3/Cargo.toml + cargo check --locked --manifest-path napi/Cargo.toml cargo package --locked --list cargo package --locked ``` @@ -26,8 +30,15 @@ published by CI from a version tag; do not publish packages from a workstation. ## Tag and publish After the release pull request is approved, CI is green, and the commit is on -`main`, create an annotated `v` tag on that commit. The tag must exactly -match the root `Cargo.toml` version. +`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` 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 packages are released through the hardened workflows in @@ -38,11 +49,11 @@ packages are released through the hardened workflows in distribution to PyPI. - `peco-databricks-sql-kernel-nodejs.yml` publishes the NAPI packages to npm. -Run the applicable workflow in dry-run mode first. A real publication requires -the configured release-environment approval. The workflows 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. +Run each applicable public-package workflow in dry-run mode first. A real +publication requires the configured release-environment approval. The workflows +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. Rust ADBC is experimental and has no publication workflow. Do not publish it or attach ADBC artifacts to a release. From 8659fbdb9faed90fab6befac0c93164ea567f710 Mon Sep 17 00:00:00 2001 From: Rahul Singhal Date: Mon, 23 Nov 2026 19:46:13 +0000 Subject: [PATCH 3/4] docs: complete release checklist details Signed-off-by: Rahul Singhal --- RELEASING.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 0c1c1218..6a9684cd 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -5,8 +5,9 @@ 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, PyO3, and - NAPI package manifests and refreshes their lockfiles. Keep the standalone +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`, @@ -18,6 +19,7 @@ published by CI from a version tag; do not publish packages from a workstation. ```bash make check + 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 @@ -53,7 +55,10 @@ Run each applicable public-package workflow in dry-run mode first. A real publication requires the configured release-environment approval. The workflows 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. +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. From 7f1acc5b905090bc30726864520283a63020b45d Mon Sep 17 00:00:00 2001 From: Rahul Singhal Date: Mon, 23 Nov 2026 19:53:24 +0000 Subject: [PATCH 4/4] docs: add release guide license header Signed-off-by: Rahul Singhal --- RELEASING.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/RELEASING.md b/RELEASING.md index 6a9684cd..e6a4ea38 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,3 +1,19 @@ + + # Releasing Databricks SQL Kernel This document is for repository maintainers. Releases are built, scanned, and