Elffuss BraidHub

kikocis/lancedb public

85830ec79fd2 · 4.6 KiBRenderedRawPermalink
1# Release process
2
3There are five total packages we release. Three are the `lancedb` packages
4for Python, Rust, and Node.js. The other two are the legacy `vectordb`
5packages for Rust and node.js.
6
7The Python package is versioned and released separately from the Rust and Node.js
8ones. For Rust and Node.js, the release process is shared between `lancedb` and
9`vectordb` for now.
10
11## Preview releases
12
13LanceDB has full releases about every 2 weeks, but in between we make frequent
14preview releases. These are released as `0.x.y.betaN` versions. They receive the
15same level of testing as normal releases and let you get access to the latest
16features. However, we do not guarantee that preview releases will be available
17more than 6 months after they are released. We may delete the preview releases
18from the packaging index after a while. Once your application is stable, we
19recommend switching to full releases, which will never be removed from package
20indexes.
21
22## Making releases
23
24The release process uses a handful of GitHub actions to automate the process.
25
26```text
27 ┌─────────────────────┐
28 │Create Release Commit│
29 └─┬───────────────────┘
30 │ ┌────────────┐ ┌──►Python GH Release
31 ├──►(tag) python-vX.Y.Z ───►│PyPI Publish├─┤
32 │ └────────────┘ └──►Python Wheels
33 │
34 │ ┌───────────┐
35 └──►(tag) vX.Y.Z ───┬──────►│NPM Publish├──┬──►Rust/Node GH Release
36 │ └───────────┘ │
37 │ └──►NPM Packages
38 │ ┌─────────────┐
39 └──────►│Cargo Publish├───►Cargo Release
40 └─────────────┘
41```
42
43To start a release, trigger a `Create Release Commit` action from
44[the workflows page](https://github.com/lancedb/lancedb/actions/workflows/make-release-commit.yml)
45(Click on "Run workflow").
46
47* **For a preview release**, leave the default parameters.
48* **For a stable release**, set the `release_type` input to `stable`.
49
50> [!IMPORTANT]
51> If there was a breaking change since the last stable release, and we haven't
52> done so yet, we should increment the minor version. The CI will detect if this
53> is needed and fail the `Create Release Commit` job. To fix, select the
54> "bump minor version" option.
55
56## Breaking changes
57
58We try to avoid breaking changes, but sometimes they are necessary. When there
59are breaking changes, we will increment the minor version. (This is valid
60semantic versioning because we are still in `0.x` versions.)
61
62When a PR makes a breaking change, the PR author should mark the PR using the
63conventional commit markers: either exclamation mark after the type
64(such as `feat!: change signature of func`) or have `BREAKING CHANGE` in the
65body of the PR. A CI job will add a `breaking-change` label to the PR, which is
66what will ultimately be used to CI to determine if the minor version should be
67incremented.
68
69> [!IMPORTANT]
70> Reviewers should check that PRs with breaking changes receive the `breaking-change`
71> label. If a PR is missing the label, please add it, even if after it was merged.
72> This label is used in the release process.
73
74Some things that are considered breaking changes:
75
76* Upgrading `lance` to a new minor version. Minor version bumps in Lance are
77 considered breaking changes during `0.x` releases. This can change behavior
78 in LanceDB.
79* Upgrading a dependency pin that is in the Rust API. In particular, upgrading
80 `DataFusion` and `Arrow` are breaking changes. Changing dependencies that are
81 not exposed in our public API are not considered breaking changes.
82* Changing the signature of a public function or method.
83* Removing a public function or method.
84
85We do make exceptions for APIs that are marked as experimental. These are APIs
86that are under active development and not in major use. These changes should not
87receive the `breaking-change` label.