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: Clean up the AGW Make targets after the Bazel switch-over #14857

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

LKreutzer
Copy link
Contributor

@LKreutzer LKreutzer commented Jan 18, 2023

Summary

  • Clean up the AGW Make targets after the Bazel switch-over
  • Remove fabric functions, AGW Make targets and CMakeLists files that are not needed anymore.
  • Note: The PR should be reviewed commit-by-commit to separate the different clean-up stages.

Test Plan

Link to workflow runs on this branch

Additional Information

@LKreutzer LKreutzer self-assigned this Jan 18, 2023
@pull-request-size pull-request-size bot added the size/XXL Denotes a Pull Request that changes 1000+ lines. label Jan 18, 2023
@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: agw Access gateway-related issue component: ci All updates on CI (Jenkins/CircleCi/Github Action) component: docs Documentation-related issue component: feg FEG-gateway related issues labels Jan 18, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2023

✔️ The Semantic PR check ended with status success. See instructions on formatting your commit and pull request titles.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2023

Oops! Looks like you failed the PR Check DCO. Be sure to sign all your commits.

Howto

♻️ Updated: ✅ The check is passing the PR Check DCO after the last commit.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2023

Oops! Looks like you failed the Docs Lint & Check Generated Files In Sync.

Howto

♻️ Updated: ✅ The check is passing the Docs Lint & Check Generated Files In Sync after the last commit.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2023

Oops! Looks like you failed the AGW Build & Format Python.

Howto

♻️ Updated: ✅ The check is passing the AGW Build & Format Python after the last commit.

@LKreutzer LKreutzer force-pushed the bazel-switchover branch 2 times, most recently from 6b52d91 to 12dbf89 Compare January 18, 2023 13:13
@LKreutzer LKreutzer changed the title POC - WIP Steps for Bazel switchover chore: POC - WIP Steps for Bazel switchover Jan 18, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

Sudo Python test results

145 tests  ±0   142 ✔️ +1   16m 15s ⏱️ -10s
  41 suites ±0       3 💤 ±0 
    1 files   ±0       0  - 1 

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

CWF integration test results

  1 files  ±  0  1 suites  ±0   44m 46s ⏱️ + 32m 53s
32 tests  -   8  6 ✔️  - 20  8 💤  - 3  18 +15 
32 runs   - 11  6 ✔️  - 23  8 💤  - 3  18 +15 

For more details on these failures, see this check.

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

This pull request removes 8 tests.
magma/cwf/gateway/integ_tests ‑ TestBasicEnforcementWithSessionDRestarts
magma/cwf/gateway/integ_tests ‑ TestGxDisabledOmnipresentRules
magma/cwf/gateway/integ_tests ‑ TestGyReAuth
magma/cwf/gateway/integ_tests ‑ TestGyWithPermanentErrorCode
magma/cwf/gateway/integ_tests ‑ TestIdleTimer
magma/cwf/gateway/integ_tests ‑ TestIpfixEnforcement
magma/cwf/gateway/integ_tests ‑ TestMultiSessionProxyMonitorAndUsageReportEnforcement
magma/cwf/gateway/integ_tests ‑ TestOmnipresentRules

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

LTE Debian integration test results

171 tests  ±0       0 ✔️ ±0   2h 12m 16s ⏱️ - 1m 56s
171 suites ±0       0 💤 ±0 
171 files   ±0   171 ±0 

For more details on these failures, see this check.

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

Bazel unit-test results --config=asan

    1 files  ±0  129 suites  ±0   3m 20s ⏱️ ±0s
598 tests ±0  598 ✔️ ±0  0 💤 ±0  0 ±0 
599 runs  ±0  599 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

Bazel unit-test results --config=production

    1 files  ±0  129 suites  ±0   3m 8s ⏱️ ±0s
598 tests ±0  598 ✔️ ±0  0 💤 ±0  0 ±0 
599 runs  ±0  599 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

Bazel unit-test results

    1 files  ±0  232 suites  ±0   3m 22s ⏱️ -2s
719 tests ±0  719 ✔️ ±0  0 💤 ±0  0 ±0 
720 runs  ±0  720 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

♻️ This comment has been updated with latest results.

@LKreutzer LKreutzer force-pushed the bazel-switchover branch 4 times, most recently from 7957e69 to bedb877 Compare January 30, 2023 08:39
@LKreutzer LKreutzer force-pushed the bazel-switchover branch 4 times, most recently from 62aa53a to ec6b9c8 Compare February 2, 2023 09:12
@LKreutzer LKreutzer linked an issue Feb 10, 2023 that may be closed by this pull request
@LKreutzer LKreutzer force-pushed the bazel-switchover branch 2 times, most recently from b994124 to 980e8c0 Compare February 13, 2023 13:34
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2023

FEG integration test results

31 tests   - 1   28 ✔️  - 4   35m 12s ⏱️ + 17m 22s
31 suites  - 1     0 💤 ±0 
31 files    - 1     3 +3 

For more details on these failures, see this check.

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

This pull request removes 1 test.
s1aptests.test_no_security_mode_complete.TestNoSecurityModeComplete ‑ test_no_security_mode_complete

♻️ This comment has been updated with latest results.

@LKreutzer LKreutzer force-pushed the bazel-switchover branch 3 times, most recently from f2669bb to 123246c Compare February 20, 2023 13:45
@github-actions github-actions bot added the component: orc8r Orchestrator-related issue label Feb 20, 2023
@github-actions github-actions bot removed the component: orc8r Orchestrator-related issue label Feb 24, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2023

LTE containerizes integ test results - extended_tests_long

6 tests  ±0   6 ✔️ ±0   46m 27s ⏱️ +27s
6 suites ±0   0 💤 ±0 
6 files   ±0   0 ±0 

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2023

LTE containerizes integ test results - extended_tests

45 tests   - 1   45 ✔️  - 1   55m 38s ⏱️ - 4m 9s
45 suites  - 1     0 💤 ±0 
45 files    - 1     0 ±0 

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

This pull request removes 1 test.
s1aptests.test_attach_detach_with_non_nat_dhcp_multi_ue_looped.TestAttachDetachWithNonNatDhcpMultiUeLooped ‑ test_attach_detach_with_non_nat_dhcp_multi_ue_looped

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2023

LTE containerizes integ test results - precommit

121 tests  ±0   120 ✔️ ±0   1h 57m 6s ⏱️ - 36m 15s
121 suites ±0       1 💤 ±0 
121 files   ±0       0 ±0 

Results for commit c605a1f. ± Comparison against base commit 79c60d2.

♻️ This comment has been updated with latest results.

@LKreutzer LKreutzer changed the title chore: POC - WIP Steps for Bazel switchover chore: Remove duplicated Make workflows for the Bazel switch-over and clean up Make targets Mar 7, 2023
@LKreutzer LKreutzer force-pushed the bazel-switchover branch 2 times, most recently from f1ad4f6 to 0ccea2c Compare March 9, 2023 12:54
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
@github-actions github-actions bot removed the component: ci All updates on CI (Jenkins/CircleCi/Github Action) label Mar 13, 2023
@LKreutzer LKreutzer changed the title chore: Remove duplicated Make workflows for the Bazel switch-over and clean up Make targets chore: Clean up the AGW Make targets after the Bazel switch-over Mar 13, 2023
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.

LGTM

@LKreutzer LKreutzer added the bazel-cleanup BE fixups that came out of the Bazelification effort label Mar 13, 2023
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be removed from sidebars.json too?

@@ -301,47 +188,6 @@ def _setup_gateway(
return gateway_connection, gateway_ip


@task
def integ_test(
Copy link
Contributor

Choose a reason for hiding this comment

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

Please migrate the relevant content from here to the docstring of integ_test_containerized, since its docstring refers to this function on line 242

c_gw.run('cp ' + exec_path + ' ' + dest_path, warn=True)


def _build_magma(c_gw):
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this is still referred to on line 275, i.e. in _build_and_start_magma

@@ -15,13 +15,6 @@

from fabric import Connection

# Local changes are only allowed in files specified in the EXCLUDE_FILE_LIST
EXCLUDE_FILE_LIST = [
os.path.realpath(x) for x in [
Copy link
Contributor

Choose a reason for hiding this comment

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

There is now an unused import of os at the top of the file. Could you please remove it?

@LKreutzer LKreutzer removed their assignment Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel-cleanup BE fixups that came out of the Bazelification effort component: agw Access gateway-related issue component: docs Documentation-related issue component: feg FEG-gateway related issues size/XXL Denotes a Pull Request that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make to Bazel switchover for the AGW
3 participants