-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix problem of Configuration becomes ready prematurely #6096
Conversation
@taragu: GitHub didn't allow me to request PR reviews from the following users: navidshaikh. Note that only knative members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
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.
@taragu: 2 warnings.
In response to this:
/lint
Fixes #6060
Proposed Changes
There is currently a bug documented by knative/client#500 (comment) and #6060. The problem occurs because the Configuration is set to Ready prematurely, before the latest created revision becomes ready. This PR sets Configuration Ready status to True only if the latest created revision is ready.
Release Note
NONE
/cc mattmoor
/cc @navidshaikh
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.
f5feda4
to
ee20b3f
Compare
The following jobs failed:
Failed non-flaky tests preventing automatic retry of pull-knative-serving-unit-tests:
and 5 more. |
} | ||
|
||
// MarkConfigurationReady sets the Ready state of a configuration to True | ||
func (cs *ConfigurationStatus) MarkConfigurationReady() { | ||
confCondSet.Manage(cs).MarkTrue(ConfigurationConditionReady) |
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 seems like a huge change. Why can't we just guard this in a check that LatestCreated == LatestReady
?
This reverts commit 2a07865.
The following is the coverage report on the affected files.
|
/retest |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattmoor, taragu 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 |
/lint
Fixes #6060
Proposed Changes
There is currently a bug documented by knative/client#500 (comment) and #6060. The problem occurs because the Configuration is set to Ready prematurely, before the latest created revision becomes ready. This PR sets Configuration Ready status to True only if the latest created revision is ready.
Release Note
/cc mattmoor
/cc @navidshaikh