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(agw): Upgrade ASN library to the new version #15369
base: master
Are you sure you want to change the base?
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
|
Bazel unit-test results --config=production 1 files ± 0 86 suites - 43 3m 14s ⏱️ -4s Results for commit edd79c7. ± Comparison against base commit 81a6d4a. This pull request removes 193 tests.
♻️ This comment has been updated with latest results. |
Bazel unit-test results --config=asan 1 files ± 0 86 suites - 43 3m 17s ⏱️ -10s Results for commit edd79c7. ± Comparison against base commit 81a6d4a. This pull request removes 193 tests.
♻️ This comment has been updated with latest results. |
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.
looks good to me.
could you please also patch these 2 files?
diff --git a/lte/gateway/docker/mme/Dockerfile.rhel8 b/lte/gateway/docker/mme/Dockerfile.rhel8
index 1903b2f412..709b918fb6 100644
--- a/lte/gateway/docker/mme/Dockerfile.rhel8
+++ b/lte/gateway/docker/mme/Dockerfile.rhel8
@@ -150,7 +150,7 @@ RUN git clone --recurse-submodules -b v1.15.0 https://github.com/grpc/grpc && \
wget https://www.gnupg.org/ftp/gcrypt/gnutls/v3.1/gnutls-3.1.23.tar.xz && \
git clone https://liblfds.org/git/liblfds && \
git clone https://gitea.osmocom.org/cellular-infrastructure/libgtpnl && \
- git clone https://github.com/OPENAIRINTERFACE/asn1c.git && \
+ git clone https://github.com/mouse07410/asn1c.git && \
git clone https://github.com/OPENAIRINTERFACE/opencord.org.freeDiameter.git freediameter && \
git clone https://github.com/nlohmann/json.git
@@ -275,8 +275,8 @@ RUN cd libgtpnl && \
##### asn1c
RUN cd asn1c && \
- # Moved git clone https://github.com/OPENAIRINTERFACE/asn1c.git && \
- git checkout f12568d617dbf48497588f8e227d70388fa217c9 && \
+ # Moved git clone https://github.com/mouse07410/asn1c.git && \
+ git checkout ebed802 && \
autoreconf -iv && \
./configure && \
make -j`nproc` && \
diff --git a/lte/gateway/docker/mme/Dockerfile.ubuntu18.04 b/lte/gateway/docker/mme/Dockerfile.ubuntu18.04
index 8f93634753..3c52a74f01 100644
--- a/lte/gateway/docker/mme/Dockerfile.ubuntu18.04
+++ b/lte/gateway/docker/mme/Dockerfile.ubuntu18.04
@@ -84,7 +84,7 @@ RUN git clone --recurse-submodules -b v1.15.0 https://github.com/grpc/grpc && \
wget https://www.gnupg.org/ftp/gcrypt/gnutls/v3.1/gnutls-3.1.23.tar.xz && \
git clone https://liblfds.org/git/liblfds && \
git clone https://gitea.osmocom.org/cellular-infrastructure/libgtpnl && \
- git clone https://github.com/OPENAIRINTERFACE/asn1c.git && \
+ git clone https://github.com/mouse07410/asn1c.git && \
git clone https://github.com/OPENAIRINTERFACE/opencord.org.freeDiameter.git freediameter && \
git clone https://github.com/nlohmann/json.git
@@ -207,8 +207,8 @@ RUN cd libgtpnl && \
##### asn1c
RUN cd asn1c && \
- # Moved git clone https://github.com/OPENAIRINTERFACE/asn1c.git && \
- git checkout f12568d617dbf48497588f8e227d70388fa217c9 && \
+ # Moved git clone https://github.com/mouse07410/asn1c.git && \
+ git checkout ebed802 && \
autoreconf -iv && \
./configure && \
make -j`nproc` && \
I've built and tested manually with these 2 modifications.
@rdefosse , Thanks |
Signed-off-by: Ganesh Gedela <ganesh.gedela@veltris.com>
Signed-off-by: Ganesh Gedela <ganesh.gedela@veltris.com>
@ganeshg87 , Can you please give an example which can help us confirm that generated files are using new ASN library ? |
Summary
Upgrade the ASN library to the new version
Test Plan
upgrading asn1 compiler
Step 1: Apply Patch to Magma Repo
Step 2: Build and Install ASN.1 Compiler (asn1c) from mouse07410
Step 3: Build Magma Code Base
# Navigate back to the Magma repository if you're not already there
cd path/to/magma
Additional Information
Security Considerations