-
Notifications
You must be signed in to change notification settings - Fork 374
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
Add Extended Tests for ANNP E2E #5486
base: main
Are you sure you want to change the base?
Conversation
My take on this: I feel like a cron github action for extended set of policy e2e tests sounds like a good and extensible approach. Even though there are only a few tests that currently in the extended set introduced by this PR, in the future we could also 1. parametrize current e2e tests so that the extended tests run on different combinations of protocol/ports or even workloads 2. with a lot of discretion, move a small portion of the current test suite into extended if they appear a bit repetitive. Thoughts? @tnqn @antoninbas |
Can someone clarify why these are added as "extended" tests and not enabled by default? Do they take a long time to run or overlap significantly with other tests? |
I think the motivation in general is that we want to improve the e2e test coverage while speed up test execution time for individual PR updates as much as possible. For now I don't think the the network policy e2e testcases individually takes a long time to run, but they do add up. On the other hand, for the majority of testcases that we have, only TCP traffic is validated, leaving the enforcement of other protocols vulnerable. So the 'extened set of test' idea is proposed by @salv-orlando and me, as we are looking to see if we can conclude a set of essential testcases for ACNP/ANNP, and have an extended set of tests run periodically for different variations of the same test, which does not run every single time. The testcases currently in the PR probably does not reflect it well @qiyueyao, but this was the overarching idea |
In general, I recommend only adding an e2e test to the "extended" set if it takes a while to run or if it provides little benefit. Tests which are not run for every PR can easily become broken or start failing. When running a test suite as a periodical job, it is pretty common for failures to go unnoticed for a while, with no one checking up on it or investigating. |
ci/kind/test-e2e-kind.sh
Outdated
@@ -131,6 +131,10 @@ case $key in | |||
skiplist="$2" | |||
shift 2 | |||
;; | |||
--extended) |
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.
did you mean to keep the changes in this file?
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.
Oops not intended, and will continue to add some tests, not finished yet, thanks!
cdf0e87
to
d0eb2ef
Compare
This PR is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days |
Add extended e2e test cases for ANNP run in encap mode only. Signed-off-by: Qiyue Yao <[email protected]>
d0eb2ef
to
a12754d
Compare
This PR is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days |
I think this wouldn't add much test burden if the extended tests run only in one kind job and if you will move some repetitive existing tests to it. So adding this still looks good to me. I just missed the PR. If you decide to update it, I think I can prioritize it after 2.1 is released. |
This PR is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days |
mode-irrelevant
to run intest-e2e-encap
.Doc for tracking example tests, current tests, and proposed tests.
Open for discussion on running scenario:
--extended
to the current test-e2e-encap-all-features-enabled kind test on Github for each PRCurrent plan to use
mode-irrelevant
so the tests only run fortest-e2e-encap
.2. Create a new kind test workflow on Github for each PR
/test-e2e-extended