Skip to content
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

feat(agw): AGW s1ap-tester containerization #11308

Closed
wants to merge 38 commits into from

Conversation

rmeleromira
Copy link
Contributor

@rmeleromira rmeleromira commented Jan 27, 2022

Signed-off-by: Ramon Melero ramonmelero@fb.com

Summary

This is the initial commit with both build steps working for the s1aptester on an ubuntu 20.04 container.

Additional Information

Signed-off-by: Ramon Melero <ramonmelero@fb.com>
@rmeleromira rmeleromira requested a review from a team January 27, 2022 22:10
@rmeleromira rmeleromira requested a review from a team as a code owner January 27, 2022 22:10
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines. label Jan 27, 2022
@github-actions
Copy link
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: ci All updates on CI (Jenkins/CircleCi/Github Action) label Jan 27, 2022
@rmeleromira rmeleromira marked this pull request as draft January 27, 2022 22:11
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2022

feg-workflow

    2 files  203 suites   39s ⏱️
374 tests 374 ✔️ 0 💤 0
388 runs  388 ✔️ 0 💤 0

Results for commit d8c6dc8.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2022

agw-workflow

615 tests   611 ✔️  4m 18s ⏱️
    2 suites      4 💤
    2 files        0

Results for commit d8c6dc8.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@arunuke arunuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Minor changes requested based LINT warnings.

lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: Ramon Melero <ramonmelero@fb.com>
@pull-request-size pull-request-size bot added size/L Denotes a Pull Request that changes 100-499 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Feb 7, 2022
Signed-off-by: Ramon Melero <ramonmelero@fb.com>
Copy link
Contributor

@Neudrino Neudrino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your effort, I am looking forward to see s1ap test being executed in docker environments instead of VMs! 🚀

I think we could greatly improve readability, if every shell step would get a separate line. Otherwise it is easy to miss something and hard to review in general, imho.
E.g.

RUN echo 'A very long and difficult command' > a \
 && echo '1' > b \
 && echo 'another long command which is difficult in itself' > c.txt \
 && ls doesnotexist \
 || ls a \
 ;  echo 'END'

is much more readable to me, and especially the bash logical operators are much more visible, compared to

RUN echo 'A very long and difficult command' > a && echo '1' > b && echo 'another long command which is difficult in itself' > c.txt && ls doesnotexist || ls a ; echo 'END'

lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
@stale stale bot added the wontfix This will not be worked on label Apr 2, 2022
@magma magma deleted a comment from stale bot Apr 4, 2022
@stale stale bot removed the wontfix This will not be worked on label Apr 4, 2022
Signed-off-by: Ramon Melero <ramonmelero@fb.com>
@github-actions github-actions bot added the component: agw Access gateway-related issue label Apr 12, 2022
Copy link
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build of the Dockerimages fails

lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/build-s1ap.sh Show resolved Hide resolved
Signed-off-by: Ramon Melero <ramonmelero@fb.com>
Signed-off-by: Ramon Melero <ramonmelero@fb.com>
Copy link
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still think there is a bug in the dockerfile

lte/gateway/docker/services/trfgen/Dockerfile Outdated Show resolved Hide resolved
lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: Ramon Melero <ramonmelero@fb.com>
Copy link
Contributor

@Neudrino Neudrino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some previous comments which seem not to be addressed or replied:

There have been a lot of changes to the code since the last review. Some new comments to those changed parts were made inline. Especially the robustness of the dockerfile is worth to be fixed imho.

lte/gateway/docker/services/s1aptester/Dockerfile Outdated Show resolved Hide resolved
Comment on lines 56 to 57
ENV SWAGGER_CODEGEN_JAR=/var/tmp/codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar
ENV SWAGGER_CODEGEN_DIR=/var/tmp/codegen/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could in principle still diverge, which would than lead to build failures. Flipping the variables and enforcing the respective dependency is safer. I.e.

ENV SWAGGER_CODEGEN_DIR=/var/tmp/codegen/
ENV SWAGGER_CODEGEN_JAR=${SWAGGER_CODEGEN_DIR}modules/swagger-codegen-cli/target/swagger-codegen-cli.jar

Copy link
Contributor

@Neudrino Neudrino Jun 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional PS:
I just see, if the only usage is in line 100 one might as well do something like

ENV SWAGGER_CODEGEN_DIR=/var/tmp/codegen/modules/swagger-codegen-cli/target/
ENV SWAGGER_CODEGEN_JAR=${SWAGGER_CODEGEN_DIR}swagger-codegen-cli.jar

which would simplify line 100 to

mkdir -p ${SWAGGER_CODEGEN_DIR} && \

The additional advantage would be that the variable names are also semantically more fitting, as the DIR would really have the directory stored.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Contributor

@Neudrino Neudrino Jul 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite. See new inline comment please.

-----END CERTIFICATE-----" > /var/opt/magma/certs/rootCA.pem'

# Run bootstrap script and reboot
sudo bash agw_install_docker.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional: Calling bash explicitly here might still be unnecessary given that the script defines the interpreter in line 1.
However, it is probably not hurting either, other than increased complexity.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Added a chmod +x so that the script is directly callable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite. See new inline comment please.

Comment on lines 132 to 133
RUN sed -i 's/magtivate_cmd + " && " + //g' $MAGMA_ROOT/lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py && \
sed -i 's/"vagrant"/"ubuntu"/g' $MAGMA_ROOT/lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not addressed, afaiks.

lte/gateway/docker/services/trfgen/Dockerfile Outdated Show resolved Hide resolved
Comment on lines 48 to 49
RUN cp $MAGMA_ROOT/lte/gateway/deploy/roles/trfserver/files/traffic_server.py /usr/local/bin/traffic_server.py
RUN cp $MAGMA_ROOT/lte/gateway/deploy/roles/trfserver/files/util/traffic_messages.py /usr/lib/python3.8/util/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment was not addressed, afaiks.

Copy link
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sed command is broken and does no longer disable the magtivate_cmd.

$MAGMA_ROOT/lte/gateway/deploy/roles/magma_test/files/build_s1_tester.sh && \
pip3 install --cache-dir $PIP_CACHE_HOME pyparsing && \
python3 $MAGMA_ROOT/lte/gateway/deploy/roles/magma_test/files/c_parser.py && \
sed -i 's/magtivate_cmd + " && " + //g' $MAGMA_ROOT/lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @Neudrino mentioned, this is fragile and should be fixed. And in this specific case it broke with a commit three months ago: f70afcd#diff-6571bbc4f34804dcabb03702090a753fe91cdabb3b453d7228f4c09e2615f958R861

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

markdownlint

lte/gateway/docker/s1ap/readme.md|43 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|44 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|44 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|45 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|46 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|50 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|51 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|52 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|53 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|53 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|54 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|54 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|55 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|55 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|56 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|57 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|57 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|58 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|58 col 1| MD007/ul-indent Unordered list indentation [Expected: 8; Actual: 4]
lte/gateway/docker/s1ap/readme.md|59 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|59 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|60 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|60 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|61 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|62 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|66 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|67 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|68 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|69 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|69 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|70 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|70 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|71 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|71 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|72 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|73 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|73 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|74 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|74 col 1| MD007/ul-indent Unordered list indentation [Expected: 8; Actual: 4]
lte/gateway/docker/s1ap/readme.md|75 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|75 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|76 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|76 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|77 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|78 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|82| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [lte/gateway/docker/s1ap/readme.md|92|](http://github.com/magma/magma/blob/7c6c58d230154e371ff05a824e0c86dc2a5f96d5/lte/gateway/docker/s1ap/readme.md#L92) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
lte/gateway/docker/s1ap/readme.md|111| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [lte/gateway/docker/s1ap/readme.md|119|](http://github.com/magma/magma/blob/7c6c58d230154e371ff05a824e0c86dc2a5f96d5/lte/gateway/docker/s1ap/readme.md#L119) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
lte/gateway/docker/s1ap/readme.md|134| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [lte/gateway/docker/s1ap/readme.md|140|](http://github.com/magma/magma/blob/7c6c58d230154e371ff05a824e0c86dc2a5f96d5/lte/gateway/docker/s1ap/readme.md#L140) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
lte/gateway/docker/s1ap/readme.md|148| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [lte/gateway/docker/s1ap/readme.md|153|](http://github.com/magma/magma/blob/7c6c58d230154e371ff05a824e0c86dc2a5f96d5/lte/gateway/docker/s1ap/readme.md#L153) MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: ""]
lte/gateway/docker/s1ap/readme.md|154| MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "#### You could also exec the test running command from the AGW instance"]
lte/gateway/docker/s1ap/readme.md|155| MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: ""] [lte/gateway/docker/s1ap/readme.md|155|](http://github.com/magma/magma/blob/7c6c58d230154e371ff05a824e0c86dc2a5f96d5/lte/gateway/docker/s1ap/readme.md#L155) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]

lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
s1ap/build-s1ap.sh
```

2. Publish images to your registry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1]

lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
s1ap/publish-s1ap.sh yourregistry.com/yourrepo/
```

# Deploy containerized S1APTester
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "# Deploy containerized S1APTes..."]

lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

markdownlint

lte/gateway/docker/s1ap/readme.md|70 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|70 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|71 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|71 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|72 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|73 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|73 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|74 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|74 col 1| MD007/ul-indent Unordered list indentation [Expected: 8; Actual: 4]
lte/gateway/docker/s1ap/readme.md|75 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|75 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|76 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|76 col 1| MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
lte/gateway/docker/s1ap/readme.md|77 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|78 col 1| MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]
lte/gateway/docker/s1ap/readme.md|82| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [lte/gateway/docker/s1ap/readme.md|92|](http://github.com/magma/magma/blob/b2b253743d202a9a3d5a3007b08af4a5131c8cb4/lte/gateway/docker/s1ap/readme.md#L92) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
lte/gateway/docker/s1ap/readme.md|111| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [lte/gateway/docker/s1ap/readme.md|119|](http://github.com/magma/magma/blob/b2b253743d202a9a3d5a3007b08af4a5131c8cb4/lte/gateway/docker/s1ap/readme.md#L119) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
lte/gateway/docker/s1ap/readme.md|134| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [lte/gateway/docker/s1ap/readme.md|140|](http://github.com/magma/magma/blob/b2b253743d202a9a3d5a3007b08af4a5131c8cb4/lte/gateway/docker/s1ap/readme.md#L140) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
lte/gateway/docker/s1ap/readme.md|148| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [lte/gateway/docker/s1ap/readme.md|153|](http://github.com/magma/magma/blob/b2b253743d202a9a3d5a3007b08af4a5131c8cb4/lte/gateway/docker/s1ap/readme.md#L153) MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: ""]
lte/gateway/docker/s1ap/readme.md|154| MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "#### You could also exec the test running command from the AGW instance"]
lte/gateway/docker/s1ap/readme.md|155| MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: ""] [lte/gateway/docker/s1ap/readme.md|155|](http://github.com/magma/magma/blob/b2b253743d202a9a3d5a3007b08af4a5131c8cb4/lte/gateway/docker/s1ap/readme.md#L155) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]

lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Outdated Show resolved Hide resolved
lte/gateway/docker/README.md Show resolved Hide resolved
lte/gateway/docker/README.md Show resolved Hide resolved
lte/gateway/docker/README.md Show resolved Hide resolved
lte/gateway/docker/README.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/README.md Show resolved Hide resolved
lte/gateway/docker/README.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
lte/gateway/docker/s1ap/readme.md Show resolved Hide resolved
trfgen:
build:
context: ${BUILD_CONTEXT}
dockerfile: lte/gateway/docker/services/trfgen/Dockerfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[yamllint] reported by reviewdog 🐶
[error] no new line character at the end of file (new-line-at-end-of-file)

-----END CERTIFICATE-----" > /var/opt/magma/certs/rootCA.pem'

# Run bootstrap script and reboot
sudo agw_install_docker.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be sudo ./agw_install_docker.sh to work.

/magma/third_party/build/bin/aioeventlet_build.sh ${DIRECTORY} && \
dpkg -i ${DIRECTORY}/python3-aioeventlet* && \
rm -rf ${DIRECTORY} && \
mkdir -p ${SWAGGER_CODEGEN_DIR}modules/swagger-codegen-cli/target/ && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a look at this comment again please.
The second change needs to be implemented here, after the first one was implemented above.

Comment on lines 56 to 57
ENV SWAGGER_CODEGEN_JAR=/var/tmp/codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar
ENV SWAGGER_CODEGEN_DIR=/var/tmp/codegen/
Copy link
Contributor

@Neudrino Neudrino Jul 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite. See new inline comment please.

Copy link
Contributor

@Neudrino Neudrino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The linter warnings should actually be resolved and not only be marked resolved.
    This can mostly be done by a command line one-liner:
    markdownlint --fix --config ./docs/readmes/.markdownlint.yaml ${YOUR_FILE_TO_FIX}

  • I tried to run magma/lte/gateway/docker/s1ap$ build-s1ap.sh.
    This fails for me with

    => ERROR [agw_s1aptester 5/9] RUN DIRECTORY="/tmp/aioeventlet" &&   mkdir -p ${DIRECTORY} &&   /magma/third_party/build/bin/aioeventlet_build.sh ${DIRECTORY} &&   dpkg -i ${DIRECTORY}/python3-aioeventlet* &&   rm -rf ${DIR  0.8s 
    ------                                                                                                                                                                                                                                
     > [agw_s1aptester 5/9] RUN DIRECTORY="/tmp/aioeventlet" &&   mkdir -p ${DIRECTORY} &&   /magma/third_party/build/bin/aioeventlet_build.sh ${DIRECTORY} &&   dpkg -i ${DIRECTORY}/python3-aioeventlet* &&   rm -rf ${DIRECTORY} &&   mkdir -p /var/tmp/codegen/modules/swagger-codegen-cli/target/ &&   wget -q https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar -O /var/tmp/codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar:                                                                                                                                                                                                                 
    #0 0.270 Cloning into 'deb-python-aioeventlet'...                                                                                                                                                                                     
    #0 0.742 error: unrecognized input
    ------
    failed to solve: executor failed running [/bin/sh -c DIRECTORY="/tmp/aioeventlet" &&   mkdir -p ${DIRECTORY} &&   /magma/third_party/build/bin/aioeventlet_build.sh ${DIRECTORY} &&   dpkg -i ${DIRECTORY}/python3-aioeventlet* &&   rm -rf ${DIRECTORY} &&   mkdir -p ${SWAGGER_CODEGEN_DIR} &&   wget -q https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/${CODEGEN_VERSION}/swagger-codegen-cli-${CODEGEN_VERSION}.jar -O ${SWAGGER_CODEGEN_JAR}]: exit code: 128
    
  • Somehow my inline comments did not group well. Also see above please.

ARG PYTHON3_PIP_VERSION=20.0.2-5ubuntu1.6
ARG PYTHON3_VENV_VERSION=3.8.2-0ubuntu2
ARG VIRTUALENV_VERSION=20.0.17-1ubuntu0.4
ARG PYTHON_VERSION=3.8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previously alphabetically sorted list becomes now unsorted by this addition. I think we should add it to the correct position.

@maxhbr
Copy link
Member

maxhbr commented Sep 12, 2022

@rmeleromira , this looks to be stale and not much moves. Can we close it?

@maxhbr maxhbr added wontfix This will not be worked on DONOTLAND Please don't merge this labels Sep 12, 2022
@stale
Copy link

stale bot commented Sep 26, 2022

This issue or pull request has exceeded its lifecylce and was automatically closed. Should you wish to continue working on this, please reopen it.

@stale stale bot closed this Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue component: ci All updates on CI (Jenkins/CircleCi/Github Action) DONOTLAND Please don't merge this size/XL Denotes a Pull Request that changes 500-999 lines. wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants