Skip to content

Fix race condition in TestMinScale that causes occasional flakes#5255

Merged
knative-prow-robot merged 1 commit intoknative:masterfrom
tanzeeb:fix-minscale-flake
Aug 23, 2019
Merged

Fix race condition in TestMinScale that causes occasional flakes#5255
knative-prow-robot merged 1 commit intoknative:masterfrom
tanzeeb:fix-minscale-flake

Conversation

@tanzeeb
Copy link
Copy Markdown
Contributor

@tanzeeb tanzeeb commented Aug 23, 2019

There is a race condition in TestMinScale where a deployment can reach
minScale and then scale down before the test has a chance to observe
that it has reached that minScale.

This commit changes the test to observe the desired replicas of the
deployment instead of the actual replicas.

There is a race condition in `TestMinScale` where a deployment can reach
`minScale` and then scale down before the test has a chance to observe
that it has reached that `minScale`.

This commit changes the test to observe the desired replicas of the
deployment instead of the actual replicas.
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 23, 2019
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/test-and-release It flags unit/e2e/conformance/perf test issues for product features labels Aug 23, 2019
Copy link
Copy Markdown
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@tanzeeb: 0 warnings.

Details

In response to this:

There is a race condition in TestMinScale where a deployment can reach
minScale and then scale down before the test has a chance to observe
that it has reached that minScale.

This commit changes the test to observe the desired replicas of the
deployment instead of the actual replicas.

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.

@tanzeeb
Copy link
Copy Markdown
Contributor Author

tanzeeb commented Aug 23, 2019

/assign @mattmoor

Copy link
Copy Markdown
Member

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

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 23, 2019
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, tanzeeb

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 23, 2019
@knative-prow-robot knative-prow-robot merged commit 9ffe8d0 into knative:master Aug 23, 2019
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. area/test-and-release It flags unit/e2e/conformance/perf test issues for product features cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants