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
Revert "test/extended/util: allow tests to be skipped based on platform" #23299
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smarterclayton The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
if e2e.TestContext.Provider != "" { | ||
excludedTests = append(excludedTests, fmt.Sprintf(`\[Skipped:%s\]`, e2e.TestContext.Provider)) | ||
} | ||
excludedTestsFilter := regexp.MustCompile(strings.Join(excludedTests, `|`)) |
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.
This line specifically is inside of an O(N^2) loop.
@abhinavdahiya can you re-open the revert of the revert and move that line outside of the for loop - should fix your issue. Note that we use contains vs regex because of the perf cost (each sub shell process has to look at all tests for all skip lists) |
/retest |
Force merging to relieve the CI env of the CPU overload. |
@smarterclayton: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Reverts #23245
Appears to have caused a significant CPU spike, which is likely due to the new skip rules being treated as wildcards (there's an O(N^2) factor in skip rules if you're not careful.)