-
Notifications
You must be signed in to change notification settings - Fork 592
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: new integ tests are bazelified #13623
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
size = "small", | ||
srcs = ["test_enable_ipv6_iface.py"], | ||
imports = [LTE_ROOT], | ||
tags = TAG_PRECOMMIT_TEST, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add new tags to the file bazel/test_constants.bzl
:
TAG_IPV6_TEST_ENABLE = ["ipv6_enable"] + TAG_MANUAL
TAG_IPV6_TEST_DISABLE = ["ipv6_disable"] + TAG_MANUAL
And tag the tests with these labels.
Even if it does not seem to break something, we should not run them out of order with the other precommit tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed offline - remove from BUILD.bazel and add to check again.
- these "tests" are for setup and do not test something currently
- we will ask the owner if this can be included in specific setup/teardown steps in tests (the two steps seem to be sufficiently fast)
a69f2f7
to
ef1bd11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com>
Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com>
Signed-off-by: Nils Semmelrock <nils.semmelrock@tngtech.com>
ef1bd11
to
1b65ccc
Compare
Summary
Main target here was to do #13588. But it came up that one python file -
gpp_types.py
- was not yet bazelified (this is used in integ tests, but somehow bazel has access on magma_test) and that there are three new integ tests that need to be bazelified.Note that two of the integ tests seem to be setup and tear down "tests" for not yet activated ipv6 tests. But imho it is a good idea to bazelify them for now so that this logic is tested as well.The basilification of those tests was removed after a review discussion. This will be re-added when respective tests for these setup and teardown "tests" are added. Or they are included in the respective tests directly.Test Plan
new tests
./bazel/scripts/run_integ_tests.sh lte/gateway/python/integ_tests/s1aptests:test_attach_detach_flaky_retry_success
gpp_types
On a vm
!= magma_test
check ifbazel run
produces ModuleNotFound exceptions (the tests will fail! but the ModuleNotFound exception should come before the test failure). E.g., useupdated py files check
In
bazel/scripts/check_py_bazel.sh
remove line 56-81and check that the output corresponds to the removed lines. Note that some files are covered by excluding complete directories.Additional Information