-
Notifications
You must be signed in to change notification settings - Fork 552
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
dt/deps: Use setuptools for confluent-kafka source build #16283
Conversation
/dt |
/ci-repeat 1 |
07220e3
to
14b37fd
Compare
/ci-repeat 1 |
/dt |
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/44304#018d422b-6319-4c9a-b594-72be7a199af4 |
tests/docker/Dockerfile
Outdated
python3 -m pip install --force --no-cache-dir -e /root/tests/ | ||
|
||
RUN python3 -m pip install --force-reinstall --no-cache-dir --no-binary :all: confluent-kafka==2.2.0 | ||
python3 -m pip install --force-reinstall --no-cache-dir --no-binary confluent-kafka -e /root/tests/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this will pick up the right version from the setup.py, right? Or will it always install the current version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand it, the "confluent-kafka" there in the command line is strictly an argument to the no-binary option, then the actual package specification is read from root/tests/setup.py as before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks, I had misunderstood was going on here the first time around in part due to the diff. Now that I get it, it looks even better.
@@ -248,9 +248,7 @@ RUN python3 -m pip install --force --no-cache-dir -r /opt/scripts/consumer_offs | |||
# passes --force so system pip packages can be updated | |||
COPY --chown=0:0 --chmod=0755 tests/setup.py /root/tests/ | |||
RUN python3 -m pip install --upgrade --force pip && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add a comment on what's going on here with confluetn kafka, perhaps just linking back to the issue this solves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, fine by me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of questoins.
e09c68a moved installation of the confluent-kafka package to the ducktape Dockerfile to avoid an unfortunate config in the prebuilt wheels from PyPi. Apparently, `--no-binary` works equally well to specify individual dependencies in a normal setuptools build. This has the added benefit that the dependency is picked up by dev environments outside docker. Fixes redpanda-data/core-internal#1019
14b37fd
to
f2e687a
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and much thanks!
new failures in https://buildkite.com/redpanda/redpanda/builds/44355#018d46ba-2f3c-4d67-9552-d3021c0a7214:
new failures in https://buildkite.com/redpanda/redpanda/builds/44355#018d46cb-8b2d-41c8-9c4c-1b0c881946dc:
new failures in https://buildkite.com/redpanda/redpanda/builds/44355#018d46cb-8b27-4ec3-9f3e-663280271d8a:
|
CI Failures:
|
e09c68a moved installation of the confluent-kafka package to the ducktape Dockerfile to avoid an unfortunate config in the prebuilt wheels from PyPi.
Apparently,
--no-binary
works equally well to specify individualdependencies in a normal setuptools build. This has the added benefit
that the dependency is picked up by dev environments outside docker.
Fixes https://github.com/redpanda-data/core-internal/issues/1019
Backports Required
Release Notes