Skip to content

Bug 1748150: Modify scheduler preemption tests (fixup #23645)#23719

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
damemi:fixup-23645
Sep 5, 2019
Merged

Bug 1748150: Modify scheduler preemption tests (fixup #23645)#23719
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
damemi:fixup-23645

Conversation

@damemi
Copy link
Copy Markdown
Contributor

@damemi damemi commented Sep 3, 2019

This fixes a bug introduced in #23645 by initializing the pod array with a length of 0 and a capacity of 4, due to the fact that some nodes may be unschedulable and thus we can't assume that len(pods) will always have 4 pods

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Sep 3, 2019
@openshift-ci-robot
Copy link
Copy Markdown

@damemi: This pull request references Bugzilla bug 1748150, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Bug 1748150: Modify scheduler preemption tests (fixup #23645)

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.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 3, 2019
Copy link
Copy Markdown
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 3, 2019
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Sep 3, 2019

/retest

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 3, 2019
@mfojtik
Copy link
Copy Markdown
Contributor

mfojtik commented Sep 3, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 3, 2019
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

10 similar comments
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@soltysh
Copy link
Copy Markdown
Contributor

soltysh commented Sep 4, 2019

/hold
it looks like there's a another problem, in line 336 of this file, see:

	/usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/scheduling.glob..func4.5()
	/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/scheduling/preemption.go:336 +0x15f2

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 4, 2019
@soltysh
Copy link
Copy Markdown
Contributor

soltysh commented Sep 4, 2019

@damemi stupid me, when you create a slice like this make([]*v1.Pod, 0, numPods) you're actually creating an empty slice with given capacity, this means you need to use append to add pods into it.

Copy link
Copy Markdown
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm cancel

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 4, 2019
…#23645)

This fixes a bug introduced in openshift#23645 by initializing the pod array with a length of 0 and a capacity of 4
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 4, 2019
@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Sep 4, 2019

@soltysh good catch, could you /lgtm this again?

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Sep 4, 2019
Copy link
Copy Markdown
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/hold cancel

@openshift-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: damemi, mfojtik, soltysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Sep 4, 2019

/retest

1 similar comment
@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Sep 5, 2019

/retest

@openshift-merge-robot openshift-merge-robot merged commit ab0a4e4 into openshift:master Sep 5, 2019
@openshift-ci-robot
Copy link
Copy Markdown

@damemi: All pull requests linked via external trackers have merged. Bugzilla bug 1748150 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1748150: Modify scheduler preemption tests (fixup #23645)

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.

damemi added a commit to damemi/origin that referenced this pull request Sep 10, 2019
This test was marked as flaky but has had a number of fixes applied to it (pr openshift#23645 and openshift#23719) tht have adjusted the node utilization calculations and structure of the test to hopefully make it more stable. In order to address the comments in the BZ for this test's flakiness (https://bugzilla.redhat.com/show_bug.cgi?id=1731263#c9) we should remove the [flaky] tag to re-enable the tests.
damemi added a commit to damemi/origin that referenced this pull request Sep 10, 2019
…-enable it

This test was marked as flaky but has had a number of fixes applied to it (pr openshift#23645 and openshift#23719) tht have adjusted the node utilization calculations and structure of the test to hopefully make it more stable. In order to address the comments in the BZ for this test's flakiness (https://bugzilla.redhat.com/show_bug.cgi?id=1731263#c9) we should remove the [flaky] tag to re-enable the tests.
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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. 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.

6 participants