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(agw): activate mypy code scanning for lte integ tests #13188

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

ajahl
Copy link
Contributor

@ajahl ajahl commented Jul 5, 2022

Signed-off-by: Alex Jahl alexander.jahl@tngtech.com

Summary

The PR activates MyPy scanning for integ_tests in lte and fixes all MyPy related errors.
MyPy version 0.971 is used.

Test Plan

vagrant@magma$ cd $MAGMA_ROOT/lte/gateway
vagrant@magma$ mypy --ignore-missing-imports python/magma/
vagrant@magma$ bazel test //lte/gateway/python:all

@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines. label Jul 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2022

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: agw Access gateway-related issue label Jul 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2022

feg-workflow

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

Results for commit 5e38090.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2022

dp-workflow

14 tests   14 ✔️  2m 16s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 5e38090.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2022

agw-workflow

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

Results for commit 5e38090.

♻️ This comment has been updated with latest results.

@ajahl ajahl marked this pull request as ready for review July 5, 2022 12:16
@ajahl ajahl requested a review from a team July 5, 2022 12:16
@ajahl ajahl requested a review from a team as a code owner July 5, 2022 12:16
@ajahl ajahl requested review from rsarwad and ardzoht July 5, 2022 12:16
Copy link
Contributor

@sebathomas sebathomas left a comment

Choose a reason for hiding this comment

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

For the test plan, it would probably be good to run the integration tests either locally or on your fork. (Enable Github Actions, then run "LTE integ test" on the PR's branch.)

lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py Outdated Show resolved Hide resolved
lte/gateway/python/integ_tests/common/service303_utils.py Outdated Show resolved Hide resolved
@ajahl ajahl marked this pull request as draft July 5, 2022 15:36
@ajahl ajahl force-pushed the activate_mypy_lte_integ_tests branch 4 times, most recently from b5d5cd6 to 4c334e3 Compare July 11, 2022 14:46
@ajahl ajahl force-pushed the activate_mypy_lte_integ_tests branch from 4c334e3 to bdffc86 Compare July 18, 2022 14:11
@ajahl ajahl marked this pull request as ready for review July 18, 2022 21:10
@ajahl ajahl requested review from a team and koolzz July 18, 2022 21:10
Copy link
Contributor

@nstng nstng left a comment

Choose a reason for hiding this comment

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

pipelined changes LGTM

@ajahl ajahl force-pushed the activate_mypy_lte_integ_tests branch from bdffc86 to 6e74059 Compare July 25, 2022 08:43
@ajahl
Copy link
Contributor Author

ajahl commented Jul 25, 2022

For the test plan, it would probably be good to run the integration tests either locally or on your fork. (Enable Github Actions, then run "LTE integ test" on the PR's branch.)

Integ tests have passed https://github.com/ajahl/magma/runs/7496395475?check_suite_focus=true

@ajahl
Copy link
Contributor Author

ajahl commented Jul 25, 2022

@magma/approvers-agw-integtests, can someone take a look at this PR? Thanks!

@Neudrino Neudrino self-requested a review July 26, 2022 10:37
@ajahl ajahl force-pushed the activate_mypy_lte_integ_tests branch 2 times, most recently from e1e7ee7 to cab7f87 Compare July 28, 2022 07:05
Copy link
Member

@VinashakAnkitAman VinashakAnkitAman left a comment

Choose a reason for hiding this comment

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

Left a comment

@ajahl ajahl force-pushed the activate_mypy_lte_integ_tests branch from cab7f87 to de37795 Compare August 29, 2022 10:30
@ajahl ajahl enabled auto-merge (squash) September 2, 2022 09:25
@ajahl
Copy link
Contributor Author

ajahl commented Sep 5, 2022

Hi @magma/approvers-agw-integtests, can someone take a look at this PR? Thanks!

Copy link
Member

@VinashakAnkitAman VinashakAnkitAman left a comment

Choose a reason for hiding this comment

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

LGTM. Please rebase the code. One mandatory check is failing: dp-workflow / Domain proxy integration tests with orc8r (pull_request)

# Default maximum wait time is 60 sec (1 min)
MAX_RESP_WAIT_TIME = 60
_msg: Queue = Queue()
# Default maximum wait time is 180 sec (3 min)
Copy link
Member

Choose a reason for hiding this comment

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

@ajahl Do we need this change or is any testcase failing because of the old max response timeout value of 60 seconds?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it makes the tests more stable.

Signed-off-by: Alex Jahl <alexander.jahl@tngtech.com>
@ajahl ajahl force-pushed the activate_mypy_lte_integ_tests branch from de37795 to 5e38090 Compare October 11, 2022 11:00
@ajahl ajahl merged commit 28163f4 into magma:master Oct 11, 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 size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants