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

fix(agw): fix always-true-asserts in s1ap integ tests #14091

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

wolfseb
Copy link
Contributor

@wolfseb wolfseb commented Oct 5, 2022

Signed-off-by: Sebastian Wolf sebastian.wolf@tngtech.com

Summary

After #14012 , some asserts were using an incorrect syntax that always yields true: assert(condition, "description"). This PR changes these to function as intended: assert condition, "description"

Example warning:
image

Affected tests:

  • test_agw_offload_idle_active_ue
  • test_attach_detach_multiple_rar_tcp_data
  • test_attach_detach_rar_tcp_data
  • test_attach_detach_rar_tcp_he
  • test_attach_detach_setsessionrules_tcp_data
  • test_attach_detach_with_ovs

Test Plan

Run the affected tests and see that the warnings disappear.

Additional Information

  • This change is backwards-breaking

@wolfseb wolfseb requested review from a team and mpfirrmann October 5, 2022 22:39
@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines. label Oct 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 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 Oct 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

Oops! Looks like you failed the Python Format Check.

Howto

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

feg-workflow

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

Results for commit 2d4f89a.

♻️ This comment has been updated with latest results.

@wolfseb wolfseb changed the title fix(agw): fix always true asserts in s1ap integ tests fix(agw): fix always-true-asserts in s1ap integ tests Oct 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

dp-workflow

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

Results for commit 2d4f89a.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

agw-workflow

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

Results for commit 2d4f89a.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@mpfirrmann mpfirrmann left a comment

Choose a reason for hiding this comment

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

Grepping for assert ( gives one more assert statements with parentheses and a comma inside to double check, please:
test_agw_offload_mixed_idle_active_multiue.py
BTW, there is a proposal to adapt the currently wrong syntax as allowed, LINK.
And check the python linter, please.

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>
@wolfseb wolfseb added the ready2merge This PR is ready to be merged (is approved and passes all required checks) label Oct 6, 2022
@mpfirrmann mpfirrmann merged commit d2f5aed into magma:master Oct 7, 2022
pruthvihebbani pushed a commit to pruthvihebbani/magma that referenced this pull request Oct 10, 2022
Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>
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 ready2merge This PR is ready to be merged (is approved and passes all required checks) size/L Denotes a Pull Request that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants