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

Revert "test/extended/util: allow tests to be skipped based on platform" #23299

Merged
merged 1 commit into from Jun 28, 2019

Conversation

smarterclayton
Copy link
Contributor

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.)

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 28, 2019
@openshift-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2019
if e2e.TestContext.Provider != "" {
excludedTests = append(excludedTests, fmt.Sprintf(`\[Skipped:%s\]`, e2e.TestContext.Provider))
}
excludedTestsFilter := regexp.MustCompile(strings.Join(excludedTests, `|`))
Copy link
Contributor Author

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.

@smarterclayton
Copy link
Contributor Author

@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)

@smarterclayton
Copy link
Contributor Author

/retest

@smarterclayton
Copy link
Contributor Author

Force merging to relieve the CI env of the CPU overload.

@smarterclayton smarterclayton merged commit bba922f into master Jun 28, 2019
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 28, 2019

@smarterclayton: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws-serial 14410aa link /test e2e-aws-serial
ci/prow/e2e-aws-upgrade 14410aa link /test e2e-aws-upgrade

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants