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(ci): refactor AGW integration test makefile to handle multiple manual tests correctly #14150

Merged

Conversation

Neudrino
Copy link
Contributor

@Neudrino Neudrino commented Oct 13, 2022

Summary

  • allow for multiple tests to be executed manually (space separated)! 🚀
    This was previously thought to be possible and also suggested by the naming, but actually not implemented.
  • clean up bloat

Test Plan

  • CI

@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines. label Oct 13, 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 Oct 13, 2022
@Neudrino Neudrino marked this pull request as ready for review October 13, 2022 07:33
@Neudrino Neudrino requested a review from a team October 13, 2022 07:33
@Neudrino Neudrino enabled auto-merge (squash) October 13, 2022 07:33
@Neudrino Neudrino force-pushed the ci/refactor-integration-test-makefile-MKI branch from d33f5dd to 9779cb2 Compare October 13, 2022 07:34
@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2022

feg-workflow

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

Results for commit 28117d4.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2022

dp-workflow

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

Results for commit 28117d4.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2022

agw-workflow

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

Results for commit 28117d4.

♻️ This comment has been updated with latest results.

@Neudrino Neudrino requested a review from a team October 13, 2022 10:09
@Neudrino Neudrino requested a review from a team as a code owner October 13, 2022 10:09
@Neudrino Neudrino requested a review from voisey October 13, 2022 10:09
@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines. and removed size/S Denotes a PR that changes 10-29 lines. labels Oct 13, 2022
@github-actions github-actions bot added the component: docs Documentation-related issue label Oct 13, 2022
@Neudrino Neudrino force-pushed the ci/refactor-integration-test-makefile-MKI branch from 229664f to a7a699b Compare October 13, 2022 10:32
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.

Two additional comments:

  1. Running make selected_test TESTS=... now loses the information, whether you run these tests in federated mode or not.
  2. The /lte/gateway/fabfile.py also uses the make integ_test TESTS=... and make fed_integ_test TESTS=... handles in several places, which would need to be adapted.

@Neudrino
Copy link
Contributor Author

Neudrino commented Oct 13, 2022

Two additional comments:

  1. Running make selected_test TESTS=... now loses the information, whether you run these tests in federated mode or not.

  2. The /lte/gateway/fabfile.py also uses the make integ_test TESTS=... and make fed_integ_test TESTS=... handles in several places, which would need to be adapted.

  1. I am aware, but we should go for it anyway, as this is currently not used in CI. This will be fixed, after the profound cleanup, especially after a change like this one, or similar, which dramatically decreases complexity and increases flexibility.
  2. Yes, mostly within the comments of run_integ_test function, which is completely useless and will be removed with chore(ci): remove duplication from fabfile for AGW integration tests #14154.

@Neudrino
Copy link
Contributor Author

Second thought: Let's do it the other way round than and get the fabfile change in first.

@Neudrino Neudrino force-pushed the ci/refactor-integration-test-makefile-MKI branch from a7a699b to aa6a573 Compare October 14, 2022 13:44
@Neudrino Neudrino marked this pull request as draft October 14, 2022 13:46
@Neudrino Neudrino force-pushed the ci/refactor-integration-test-makefile-MKI branch from aa6a573 to 0ab5b80 Compare October 14, 2022 14:30
@Neudrino Neudrino force-pushed the ci/refactor-integration-test-makefile-MKI branch from 0ab5b80 to c0b36fa Compare October 17, 2022 06:45
@Neudrino Neudrino force-pushed the ci/refactor-integration-test-makefile-MKI branch from c0b36fa to fde84cf Compare October 17, 2022 06:46
…manual tests correctly

Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.com>
@Neudrino Neudrino force-pushed the ci/refactor-integration-test-makefile-MKI branch from fde84cf to 68c77a4 Compare October 17, 2022 06:50
@Neudrino Neudrino marked this pull request as ready for review October 17, 2022 06:51
@Neudrino
Copy link
Contributor Author

One is now able to run selected integration tests in federated and non-federated mode.

@Neudrino Neudrino enabled auto-merge (squash) October 17, 2022 06:59
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.

Nice! Would probably be good to notify the dev channel when this is merged.

docs/readmes/feg/s1ap_federated_tests.md Outdated Show resolved Hide resolved
Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.com>
@Neudrino Neudrino force-pushed the ci/refactor-integration-test-makefile-MKI branch from 68c77a4 to 28117d4 Compare October 17, 2022 07:20
@Neudrino Neudrino merged commit f741f0f into magma:master Oct 17, 2022
@Neudrino Neudrino deleted the ci/refactor-integration-test-makefile-MKI branch October 17, 2022 08:38
@Neudrino Neudrino linked an issue Oct 17, 2022 that may be closed by this pull request
lucasgonze pushed a commit to lucasgonze/magma that referenced this pull request Feb 29, 2024
…manual tests correctly (magma#14150)

* chore(ci): refactor AGW integration test makefile to handle multiple manual tests correctly
* chore(ci): adopt documentation to single & multiple test execution

Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.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 component: docs Documentation-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.

CI support for dockerized agw enable stable s1ap tests
4 participants