Skip to content

Conversation

@rsarwad
Copy link
Owner

@rsarwad rsarwad commented Sep 12, 2022

Summary

Test Plan

Additional Information

  • This change is backwards-breaking

@github-actions
Copy link

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
Copy link

❌ The Semantic PR check ended with status failure. See instructions on formatting your commit and pull request titles.

if (p1->sgw_s11_teid == teid) {
LIST_REMOVE(p1, entries);
free_wrapper((void**)&p1);
free_cpp_wrapper((void**)&p1);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<void**>(...) instead [readability/casting] [4]

p2 = LIST_NEXT(p1, entries);
LIST_REMOVE(p1, entries);
free_wrapper((void**)&p1);
free_cpp_wrapper((void**)&p1);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<void**>(...) instead [readability/casting] [4]

if (p1->sgw_s11_teid == teid) {
LIST_REMOVE(p1, entries);
free_wrapper((void**)&p1);
free_cpp_wrapper((void**)&p1);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<void**>(...) instead [readability/casting] [4]

EXPECT_TRUE(!memcmp(&want_sgw.last_known_cell_Id,
&got_sgw.last_known_cell_Id,
sizeof(want_sgw.last_known_cell_Id)));
sgw_free_ue_context((void**)&final_ctx);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<void**>(...) instead [readability/casting] [4]

@rsarwad rsarwad force-pushed the 11190_spgw_ue_context_ht branch from 0fbc0f5 to 62bec19 Compare September 12, 2022 14:26
orion-belt and others added 17 commits September 13, 2022 13:29
Signed-off-by: Cameron Voisey <[email protected]>

Signed-off-by: Cameron Voisey <[email protected]>
…ent (magma#13878)

The current setup does not require duplication of defined flags. This is not only manual effort in maintenance, but also discouraged within the documentation. Also see https://docs.codecov.com/docs/flags#step-2-flag-management-in-yaml.

Signed-off-by: Fritz Lehnert <[email protected]>
…mands (magma#13874)

* chore(agw): Create convenient aliases in magma-dev VM for service commands

Co-authored-by: Lars Kreutzer [email protected]
Co-authored-by: Krisztián Varga [email protected]
Signed-off-by: Lars Kreutzer <[email protected]>

* chore(agw): Remove service make targets

Co-authored-by: Lars Kreutzer [email protected]
Co-authored-by: Krisztián Varga [email protected]

Signed-off-by: Lars Kreutzer <[email protected]>

Signed-off-by: Lars Kreutzer <[email protected]>
…agma#13865)

Co-authored-by: Lars Kreutzer [email protected]
Co-authored-by: Krisztián Varga [email protected]
Signed-off-by: Lars Kreutzer <[email protected]>

Signed-off-by: Lars Kreutzer <[email protected]>
* chore(dp): New AmcManager CreateRequest func

Signed-off-by: Jarosław Jaszczuk <[email protected]>

* imports

Signed-off-by: Jarosław Jaszczuk <[email protected]>

* fix TestWithinTx tests

Signed-off-by: Jarosław Jaszczuk <[email protected]>

Signed-off-by: Jarosław Jaszczuk <[email protected]>
Signed-off-by: Jarosław Jaszczuk <[email protected]>

Signed-off-by: Jarosław Jaszczuk <[email protected]>
Signed-off-by: Wojciech Sadowy <[email protected]>

Signed-off-by: Wojciech Sadowy <[email protected]>
Co-authored-by: Wojciech Sadowy <[email protected]>
Signed-off-by: Jarosław Jaszczuk <[email protected]>

Signed-off-by: Jarosław Jaszczuk <[email protected]>
* chore: sctpd bazel build is cleaned-up

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: skeleton for bazel magma deb build is added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: service definitions are added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: ebpf files are added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: c binaries are added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: configuration files are added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: misc configuration files are added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: python runfiles can be expanded for packaging

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: python scripts and dependencies are added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: go binary (envoy_controller) is added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: python services are added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: magma system dependencies are added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: post install script is added

Signed-off-by: Nils Semmelrock <[email protected]>

* chore: cpp debug symbols are only created for magma code (size of artifacts is decreased)

Signed-off-by: Nils Semmelrock <[email protected]>

Signed-off-by: Nils Semmelrock <[email protected]>
Signed-off-by: Lars Kreutzer <[email protected]>
Co-authored-by: Jan Heidbrink <[email protected]>
Co-authored-by: Nils Semmelrock <[email protected]>
Co-authored-by: Lars Kreutzer <[email protected]>

Signed-off-by: Lars Kreutzer <[email protected]>
Co-authored-by: Jan Heidbrink <[email protected]>
Co-authored-by: Nils Semmelrock <[email protected]>
* feat(agw): envoy controller is dockerized

Signed-off-by: Christian Krämer <[email protected]>

* feat(agw): envoy namespace is now configured by the envoy service

Signed-off-by: Christian Krämer <[email protected]>

* feat(agw): install dhclient in pipelined container

Signed-off-by: Sebastian Wolf <[email protected]>

Signed-off-by: Christian Krämer <[email protected]>
Signed-off-by: Sebastian Wolf <[email protected]>
Co-authored-by: Christian Krämer <[email protected]>
Co-authored-by: Marco Pfirrmann <[email protected]>
)

* feat(agw): restart functions can now handle docker containers and systemd services

Signed-off-by: Marco Pfirrmann <[email protected]>

* feat(agw): handling of redis states is improved

Signed-off-by: Marco Pfirrmann <[email protected]>

* feat(agw): cleanup redis if not empty

Signed-off-by: Marco Pfirrmann <[email protected]>

* feat(agw): service restart is adapted to new syntax

Signed-off-by: Marco Pfirrmann <[email protected]>

Signed-off-by: Marco Pfirrmann <[email protected]>
Signed-off-by: Jarosław Jaszczuk <[email protected]>

Signed-off-by: Jarosław Jaszczuk <[email protected]>
crasu and others added 4 commits October 27, 2022 10:04
…e services not starting in integ tests. Add debug output to ntpdate as this seems to cause the failed integ tests. (magma#14238)


Signed-off-by: Christian Krämer <[email protected]>
Signed-off-by: Marco Pfirrmann <[email protected]>

Signed-off-by: Marco Pfirrmann <[email protected]>
Too much logic was deleted to fix the typing. This restores the
default path selection, which makes it possible to run load
tests again.

Signed-off-by: Sebastian Thomas <[email protected]>

Signed-off-by: Sebastian Thomas <[email protected]>
@rsarwad rsarwad force-pushed the 11190_spgw_ue_context_ht branch from 1a21c6c to 0f7be0e Compare October 27, 2022 09:39
LKreutzer and others added 10 commits October 27, 2022 11:37
…es (magma#14309)

Testing:
      - verified Registration Falure(Illegal UE)
      - verified Periodic Registration

Signed-off-by: ganeshg87 <[email protected]>

Signed-off-by: ganeshg87 <[email protected]>
…manager class (magma#14116)

fix(agw): Modified code at s1ap to remove dependency on common state manager class
Signed-off-by: Rashmi <[email protected]>
The test verb inherits settings for the build verb. Settings for the
build and test verb should largely be the same for better cache reuse.

Signed-off-by: Jan Heidbrink <[email protected]>
* fix(ci): ignore exit status from single test sets
* fix(ci): move the comment the correct place

Signed-off-by: Fritz Lehnert <[email protected]>
Signed-off-by: Krisztián Varga <[email protected]>

Signed-off-by: Krisztián Varga <[email protected]>
Signed-off-by: Cameron Voisey <[email protected]>

Signed-off-by: Cameron Voisey <[email protected]>
@rsarwad rsarwad force-pushed the 11190_spgw_ue_context_ht branch from 0754a91 to a35732f Compare October 28, 2022 13:22
crasu and others added 11 commits October 28, 2022 15:27
… handled by systemd-timesyncd. Eventd startup will fail when no ntp service is reachable. Ntp servers seem to be blocked regularly on github actions/azure due to ddos issues which makes test_services_are_running.py fail. (magma#14315)


Signed-off-by: Christian Krämer <[email protected]>
Signed-off-by: Lars Kreutzer <[email protected]>

Signed-off-by: Lars Kreutzer <[email protected]>
…dard #ci channel (magma#14330)

Signed-off-by: Lars Kreutzer <[email protected]>

Signed-off-by: Lars Kreutzer <[email protected]>
Pytest fails calling the constructor. But moving the magma_utils
initialization to setUp works.

Signed-off-by: Sebastian Thomas <[email protected]>
This ensures that Bazel recognizes the actions used for build and test
to be the same options, and thus reuse the built artifacts for testing.

Signed-off-by: Jan Heidbrink <[email protected]>
Signed-off-by: shashidhar-patil <[email protected]>

Signed-off-by: shashidhar-patil <[email protected]>
`pip-compile --upgrade-package --generate-hashes --output-file=requirements.txt requirements.in`

The changes are then automatically included in the next Bazel build process.

Copy link

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change

@rsarwad rsarwad force-pushed the 11190_spgw_ue_context_ht branch from cd8575e to a149ec6 Compare November 2, 2022 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.