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): Fixed cleanup for successful integ test #13332

Conversation

VinashakAnkitAman
Copy link
Member

@VinashakAnkitAman VinashakAnkitAman commented Jul 18, 2022

Title

fix(agw): Fixed cleanup for successful integ test

Summary

The TFW cleanup was added for the failing integ testcases as part of flaky retry support, but it was not done for successful test cases. While verifying flaky retry along with pytest, it as been observed that for some successful scenario also, while terminating the S1APTester these cleanups are needed for the next test case to run properly. This PR (a) adds the cleanup for successful test scenarios before closing (b) some minor formatting with pytest (c) adding one test case to validate cleanup by explicitely re-running the test case with flaky plugin for successful scenario (d) adding the test case as part of defs.mk file to run the test case as part of CI.

Test plan

Verified with sanity and in CI
Successful CI execution log:
https://github.com/VinashakAnkitAman/magma/runs/7397702222?check_suite_focus=true
Successful CI execution log after adding flow rule verification:
https://github.com/VinashakAnkitAman/magma/actions/runs/2736832846

Signed-off-by: VinashakAnkitAman ankit.aman@radisys.com

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines. label Jul 18, 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 the component: agw Access gateway-related issue label Jul 18, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 18, 2022

feg-workflow

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

Results for commit f7b28ee.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 18, 2022

dp-workflow

14 tests   14 ✔️  3m 42s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit f7b28ee.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 18, 2022

agw-workflow

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

Results for commit f7b28ee.

♻️ This comment has been updated with latest results.

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
@VinashakAnkitAman VinashakAnkitAman marked this pull request as ready for review July 20, 2022 08:45
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
@pull-request-size pull-request-size bot added size/L Denotes a Pull Request that changes 100-499 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Jul 25, 2022
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Copy link
Contributor

@pruthvihebbani pruthvihebbani left a comment

Choose a reason for hiding this comment

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

LGTM

@ardzoht ardzoht merged commit 99cce40 into magma:master Aug 10, 2022
MagmaCIBot pushed a commit that referenced this pull request Aug 24, 2022
* fix(agw): Fixed cleanup for successful integ test

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>

* Addressed flow rule verification for testcase

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
(cherry picked from commit 99cce40)
@MagmaCIBot
Copy link

💚 All backports created successfully

Status Branch Result
v1.8

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

tmdzk pushed a commit that referenced this pull request Aug 24, 2022
* fix(agw): Fixed cleanup for successful integ test

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>

* Addressed flow rule verification for testcase

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
(cherry picked from commit 99cce40)

Co-authored-by: Ankit Kumar Aman <50101753+VinashakAnkitAman@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-v1.8 component: agw Access gateway-related issue 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

6 participants