-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
PIP-209: Separate C++/Python clients to own repositories #17724
Comments
There're still several works to complete PIP-209. For example, dangling references, release processes, and doc gen processes. I will create issues for all of them and try to pick up some. |
@merlimat please add these issues to the description as a checklist so that we can properly track subtasks. |
The issue had no activity for 30 days, mark with Stale label. |
Closed as resolved. Doc updates is tracked by #17918. Ping once more @BewareMyPower :) |
Motivation
Pulsar C++ code base is in the same main repository for the Pulsar project.
While the decision was the right one at the time, there is a considerable overhead
in keeping the C++ client in its current position.
Issues with the current approach
The Pulsar repository has grown a lot in size and number of active developers.
The frequency of changes in various parts of the codebase has increased to a
point where the amount of resources dedicated to CI is very significant.
Every change in Java code will trigger the CI jobs for the C++ client and every
change in the C++ client will do the same.
During a CI job we are building the C++ client multiple times:
Pulsar functions)
The release process for Pulsar has become very complex and requires building a
large number of binaries for C++ and Python clients. This has become too much
of a burden during the course of a Pulsar release.
Goal
Decouple the development of C++ and Python client libraries from the development
of the core components of Pulsar in Java.
API Changes
No response
Implementation
Changes
Repositories
github.com/apache/pulsar-client-c++
github.com/apache/pulsar-client-python
The change will be done without losing any history, extracting a sub-directory into
a new Git repository.
Release process
The release process will be split in multiple parts:
and Java client library)
Versioning
Both C++ and Python clients will continue with their own individual versioning.
In order to not break anything or cause more confusion, we would need to use
a new version that is bigger than the current version (2.11.x).
The suggestion is to start the new releases for both C++ and Python from 3.0.0.
Existing branches
Existing branches of Pulsar, where the C++ client will still be in the same main
the repository and will be receiving bug fixes in their current location.
The different location of the new C++ code will make the cherry-picking process
slightly more painful in the short term, though it will even out in long term.
Projects dependencies
C++/Python --> Pulsar
Both C++ and Python unit/integration tests are designed to run against a standalone
instance of Pulsar broker. In the current form, they're using the
master
codethat is built to run the tests.
After the split, the unit tests will use a Docker image of Pulsar. We can use a few
different images to test for compatibility
Pulsar --> Python
To create a Pulsar image, we are now building the Python client wheel file and then
installing it at build time.
Instead, we are going to include a wheel file for a version of the Python client
that has been already released.
Python --> C++
The Python client library is just a wrapper on top of the C++ client. Today these
are built together, with Python wrapper code residing in a sub-directory of C++ client
code, and compiled using the same CMake build script.
By separating the Python client into a different repository, we are going to
depend on an already released version of the C++ client.
Automated documentation in the website
On the Pulsar website we are auto-generating C++ documentation with the Doxygen
tool and the Python one with Pdoc.
Instead of just fetching the main repo code, the website build job should be
also fetching the new repos to run the tooling.
Alternatives
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: