-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Skipped Integration Tests #6079
Comments
Good point! I also encounter this before but didn't think this as a bug. I think one option is: those tests need feature flags not set by the script could set them in the test itself like: pipeline/test/trusted_resources_test.go Lines 435 to 437 in ea358a6
And reset the config after the test is done. This is based on the tests are not running in parallel |
Yes, I agree. That's what needs to happen. I needed to do that for larger results. However, after the test is complete, we also need to unset those feature flags and set them back to what they were. Otherwise, tests that follow will get the feature flags that you set in the tests and it can break them. This is because the feature flags are applied to the namespace But as you can see, it is easy to miss and prone to errors. I was wondering if we should rethink the strategy where instead of having Again, just a thought. It might cause more issues than what I foresee at the surface level. |
I think we are talking about the same solution. 😅 Set the flag and reset when that test is done. |
One other thing I found is that in order to fix the broken tests, I had to remove |
yeah, I also mentioned that in my previous comment. I think this is important.
|
I wanted to add that while this is doable for e2e tests, we cannot do this for example tests since all example tests will have the same feature flags for all. I guess, my main point is if we think it's ok for this process to be as is or if we think it should be improved. At the very least, we should document this process in the developer documentation. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lifecycle frozen |
While working on PR #6072, I noticed that 5
alpha
integration tests were skipped.Of the five, two were because they require
embedded-status: full
andenable-provenance-in-status: true
. However, the kind-e2e tests set the feature flags to specific values for all integration tests. Therefore, these tests are skipped as a result and could potentially lead us to merge broken code.I think this is surfacing now because we have many independent feature flags like
results-from, embedded-status, enable-provenance-in-status
etc. and some alpha features require one set of values while other alpha features could require a different value.I think we require some restructuring of our integration tests.
WDYT?
/kind bug
The text was updated successfully, but these errors were encountered: