Skip to content

Bug 1731263: Re-enable preemption test with fixes#23645

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
damemi:ravig-fix-tests
Aug 29, 2019
Merged

Bug 1731263: Re-enable preemption test with fixes#23645
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
damemi:ravig-fix-tests

Conversation

@damemi
Copy link
Copy Markdown
Contributor

@damemi damemi commented Aug 21, 2019

Rebased changes from #23050

@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 Aug 21, 2019
@openshift-ci-robot
Copy link
Copy Markdown

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

Details

In response to this:

Bug 1731263: Re-enable preemption test with fixes

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/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 21, 2019
@soltysh
Copy link
Copy Markdown
Contributor

soltysh commented Aug 22, 2019

/retest
/assign

milliCPU = milliCPU * 10 / 100
memAllocatable, found := currentNode.Status.Allocatable["memory"]
// Just to be tolerant use 0.6 of resources available on the node
milliCPU = int64(float64(milliCPU-currentMemUsage) * float64(0.6))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@damemi it looks like this ends up being a negative number in the tests: Pod \"pod0-sched-preemption-medium-priority\" is invalid: spec.containers[0].resources.requests[cpu]: Invalid value: \"-912259020m\": must be greater than or equal to 0 maybe you'd need similar checks for utilization like in the other test?

@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Aug 26, 2019

/retest

1 similar comment
@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Aug 27, 2019

/retest

@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Aug 27, 2019

I think checking cpu is eliminating all 3 nodes... so maybe an error in the calculation there

@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Aug 28, 2019

/retest

@damemi
Copy link
Copy Markdown
Contributor Author

damemi commented Aug 28, 2019

@soltysh this is green now, think we can merge 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
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: damemi, 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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 29, 2019
@openshift-merge-robot openshift-merge-robot merged commit b2f2313 into openshift:master Aug 29, 2019
damemi added a commit to damemi/origin that referenced this pull request Sep 3, 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
damemi added a commit to damemi/origin that referenced this pull request Sep 3, 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
damemi added a commit to damemi/origin that referenced this pull request 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
continue
}
podRes[v1.ResourceCPU] = *resource.NewMilliQuantity(int64(milliCPU), resource.DecimalSI)
podRes[v1.ResourceMemory] = *resource.NewQuantity(int64(memory), resource.BinarySI)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm noticing this now and it seems weird, @ravisantoshgudimetla do you know why we wouldn't want to set the resourceMemory, especially after we calculated it above? Or could this have been an error?

continue
}
podRes[v1.ResourceCPU] = *resource.NewMilliQuantity(int64(milliCPU), resource.DecimalSI)
podRes[v1.ResourceMemory] = *resource.NewQuantity(int64(memory), resource.BinarySI)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ravisantoshgudimetla same question here

openshift-merge-robot added a commit that referenced this pull request Sep 5, 2019
Bug 1748150: Modify scheduler preemption tests (fixup #23645)
openshift-publish-robot pushed a commit to openshift/kubernetes that referenced this pull request Sep 5, 2019
…s#23645)

This fixes a bug introduced in openshift/origin#23645 by initializing the pod array with a length of 0 and a capacity of 4

Origin-commit: 5690efe3eeea7a54f5a30ae49cc37b0083fddcb5
deads2k pushed a commit to openshift/kubernetes that referenced this pull request Sep 6, 2019
…s#23645)

This fixes a bug introduced in openshift/origin#23645 by initializing the pod array with a length of 0 and a capacity of 4

Origin-commit: 5690efe3eeea7a54f5a30ae49cc37b0083fddcb5
@@ -90,45 +90,67 @@ var _ = SIGDescribe("SchedulerPreemption [Serial]", func() {
var podRes v1.ResourceList
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we please start using sensible commit messages? This one says nothing.

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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants