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

chore(orc8r): Switch Magma to proto V2 #12526

Closed
wants to merge 1 commit into from

Conversation

emakeev
Copy link
Contributor

@emakeev emakeev commented Apr 21, 2022

Signed-off-by: Evgeniy Makeev evgeniym@fb.com

Summary

Switch Magma to proto V2

There is an effort of upgrading Magma to Go 1.18 (#12151), it includes 3 significant changes to codebase:

  1. proto upgrade
  2. swagger upgrade
  3. Go 1.18 upgrade

Each of the mentioned above changes are very large, so - authors, mainteners and reviewers could benefit from compartmentalizing them in separate PRs. This PR is the implementation of #1 - proto upgrade.

The proto upgrade involves significant changes to some of magma core APIs as well as unit tests.
It makes sense to separate it, also - proto upgrade (or at least core of it) can be done independent of swagger & Go 1.18 upgrade.

The change provides proto V2 upgrade without over-reliance on relatively expensive proto clone calls.

The most significant required change is the modification of configurator APIs/interfaces which were erroneously designed to pass & return config structures by value, the rest of the changes are mostly related to unit tests.

Test Plan

fix & run unit tests

Additional Information

  • This change is backwards-breaking

@emakeev emakeev requested review from a team April 21, 2022 19:56
@emakeev emakeev requested a review from a team as a code owner April 21, 2022 19:56
@pull-request-size pull-request-size bot added the size/XXL Denotes a Pull Request that changes 1000+ lines. label Apr 21, 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 component: ci All updates on CI (Jenkins/CircleCi/Github Action) component: cwf component: feg FEG-gateway related issues component: orc8r Orchestrator-related issue labels Apr 21, 2022
feg/cloud/go/protos/s6a_proxy.pb.go Show resolved Hide resolved
feg/cloud/go/protos/s6a_proxy.pb.go Show resolved Hide resolved
lte/cloud/go/protos/oai/nas_state.pb.go Show resolved Hide resolved
lte/cloud/go/protos/oai/nas_state.pb.go Show resolved Hide resolved
lte/cloud/go/protos/oai/nas_state.pb.go Show resolved Hide resolved
lte/cloud/go/protos/oai/nas_state.pb.go Show resolved Hide resolved
@github-actions
Copy link
Contributor

github-actions bot commented Apr 21, 2022

feg-workflow

    2 files  202 suites   38s ⏱️
370 tests 370 ✔️ 0 💤 0
384 runs  384 ✔️ 0 💤 0

Results for commit 289c31c.

♻️ This comment has been updated with latest results.

@maxhbr maxhbr mentioned this pull request Apr 21, 2022
8 tasks
@github-actions
Copy link
Contributor

github-actions bot commented Apr 21, 2022

cloud-workflow

    7 files  357 suites   2m 26s ⏱️
975 tests 975 ✔️ 0 💤 0

Results for commit 289c31c.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 21, 2022

agw-workflow

     77 files     122 suites   7m 27s ⏱️
1 158 tests 1 149 ✔️ 9 💤 0
1 159 runs  1 150 ✔️ 9 💤 0

Results for commit 289c31c.

♻️ This comment has been updated with latest results.

@emakeev emakeev added the ready2merge This PR is ready to be merged (is approved and passes all required checks) label Apr 21, 2022
@github-actions github-actions bot removed the component: ci All updates on CI (Jenkins/CircleCi/Github Action) label Apr 22, 2022
@emakeev emakeev removed the request for review from a team April 22, 2022 00:33
@maxhbr
Copy link
Member

maxhbr commented Apr 22, 2022

Hey @emakeev ,

I fully agree with your push towards simplified and split PRs. But please allow the original authors of #12151 to do and commit that, so that the attribution for that effort stays with the community members that invested the huge amount of work around the go upgrade.

@emakeev emakeev removed the ready2merge This PR is ready to be merged (is approved and passes all required checks) label Apr 22, 2022
@emakeev
Copy link
Contributor Author

emakeev commented Apr 22, 2022

@maxhbr, NP - just trying to help, I suggested to split 12151 a while back (#12151 (comment)) & wasn't sure if there were issues with such approach.

@emakeev emakeev force-pushed the go_proto_api_v2 branch 2 times, most recently from e1691aa to 9819ba6 Compare April 22, 2022 15:27
Signed-off-by: Evgeniy Makeev <evgeniym@fb.com>
@Neudrino
Copy link
Contributor

Neudrino commented Apr 28, 2022

I think, this PR has now been superseded by #12546 and should be closed.

@Neudrino Neudrino added the wontfix This will not be worked on label Apr 28, 2022
@emakeev
Copy link
Contributor Author

emakeev commented Apr 28, 2022

closing since #12546 has been successfully merged

@emakeev emakeev closed this Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: cwf component: feg FEG-gateway related issues component: orc8r Orchestrator-related issue size/XXL Denotes a Pull Request that changes 1000+ lines. wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants