Elffuss BraidHub

kikocis/lancedb public

main · 4.5 KiBRenderedRawPermalink
1# Release process
2
3There are five total packages we release. Four are the `lancedb` packages
4for Python, Rust, Java, and Node.js. The other one is the legacy `vectordb`
5package node.js.
6
7The Python package is versioned and released separately from the Rust, Java, and Node.js
8ones. For 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 └──────►│Maven Publish├───►Java Maven Repo Release
43 └─────────────┘
44```
45
46To start a release, trigger a `Create Release Commit` action from
47[the workflows page](https://github.com/lancedb/lancedb/actions/workflows/make-release-commit.yml)
48(Click on "Run workflow").
49
50* **For a preview release**, leave the default parameters.
51* **For a stable release**, set the `release_type` input to `stable`.
52
53> [!IMPORTANT]
54> If there was a breaking change since the last stable release, and we haven't
55> done so yet, we should increment the minor version. The CI will detect if this
56> is needed and fail the `Create Release Commit` job. To fix, select the
57> "bump minor version" option.
58
59## Breaking changes
60
61We try to avoid breaking changes, but sometimes they are necessary. When there
62are breaking changes, we will increment the minor version. (This is valid
63semantic versioning because we are still in `0.x` versions.)
64
65When a PR makes a breaking change, the PR author should mark the PR using the
66conventional commit markers: either exclamation mark after the type
67(such as `feat!: change signature of func`) or have `BREAKING CHANGE` in the
68body of the PR. A CI job will add a `breaking-change` label to the PR, which is
69what will ultimately be used to CI to determine if the minor version should be
70incremented.
71
72> [!IMPORTANT]
73> Reviewers should check that PRs with breaking changes receive the `breaking-change`
74> label. If a PR is missing the label, please add it, even if after it was merged.
75> This label is used in the release process.
76
77Some things that are considered breaking changes:
78
79* Upgrading `lance` to a new minor version. Minor version bumps in Lance are
80 considered breaking changes during `0.x` releases. This can change behavior
81 in LanceDB.
82* Upgrading a dependency pin that is in the Rust API. In particular, upgrading
83 `DataFusion` and `Arrow` are breaking changes. Changing dependencies that are
84 not exposed in our public API are not considered breaking changes.
85* Changing the signature of a public function or method.
86* Removing a public function or method.
87
88We do make exceptions for APIs that are marked as experimental. These are APIs
89that are under active development and not in major use. These changes should not
90receive the `breaking-change` label.