-
Notifications
You must be signed in to change notification settings - Fork 592
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
fix: bazel base uses same folly version as magma vm #13743
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
# setup magma artifactories and install magma dependencies | ||
RUN wget -qO - https://artifactory.magmacore.org:443/artifactory/api/gpg/key/public | apt-key add - && \ | ||
add-apt-repository 'deb https://artifactory.magmacore.org/artifactory/debian-test focal-ci main' && \ | ||
add-apt-repository 'deb https://artifactory.magmacore.org/artifactory/debian-test focal-1.7.0 main' && \ |
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.
This must have been forgotten - just does not make sense and is not needed.
apt-get update -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
bcc-tools \ | ||
libfolly-dev \ |
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.
This is the replacement for the manual fmt and folly build above.
Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com>
564215a
to
b88e31d
Compare
e39b24f
to
b88e31d
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.
Tested locally.
With the artifact from the old container I get a
/sessiond: error while loading shared libraries: libfolly.so.0.58.0-dev: cannot open shared object file: No such file or directory
And with the new container it is running.
bazel test ...
is passing in the new container.
)" This reverts commit d08d78f. Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com>
Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com> Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com>
)" (magma#13753) This reverts commit d08d78f. Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com> Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com>
Signed-off-by: Nils Semmelrock nils.semmelrock@tngtech.com
Summary
Note: this change was reverted in #13753 - this will be redone and needs a more sophisticated release strategy
This change makes the bazel base container use the same folly version as the magma vm. If this is not the case then sessiond builds can not run the respective other environment.
Also did small changes I will add as comments in the code here.
This change must not be merged until the updated folly debian file in #13741 is uploaded to focal-ci. [edit] done
Test Plan
docker build -f .devcontainer/bazel-base/Dockerfile -t bb:latest .
docker run -v ${MAGMA_ROOT}:/workspaces/magma/ -v ${MAGMA_ROOT}/lte/gateway/configs:/etc/magma/ -it bb:latest /bin/bash
bazel test ...
)Additional Information