Skip to content

Update condition type in spec and do not assert against reason - #903

Merged
google-prow-robot merged 1 commit into
knative:masterfrom
bobcatfish:conformance_reason
May 30, 2018
Merged

google-prow-robot merged 1 commit into
knative:masterfrom
bobcatfish:conformance_reason

Conversation

@bobcatfish

Copy link
Copy Markdown
Contributor

Also reorganized some of errors.md to make it easier to identify,
by field, what requirements are.

Proposed Changes

  • Use Ready instead of RolloutComplete in all spec docs
  • Additions to errors.md re. purpose of reason field
NONE

@bobcatfish
bobcatfish requested review from a team May 17, 2018 00:20
@google-prow-robot google-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 17, 2018
@adrcunha

Copy link
Copy Markdown
Contributor

/approve
/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label May 17, 2018

@evankanderson evankanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems reasonable, but I'd prefer to leave the general definition of Conditions to reference the kubernetes docs, rather than repeating them in different wording. (I'm concerned that users might think that we're using Condition differently than k8s, rather than that we've standardized our usage of the existing k8s Condition.)

Comment thread docs/spec/errors.md Outdated
Type. If a resource has a "happy state" type, it will surface the
`Reason` and `Message` from the first failing sub Condition.
should follow the patterns described in this section. Conditions contain
the fields:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we reference the k8s docs for the fields?

@evankanderson

Copy link
Copy Markdown
Member

/assign evankanderson

@bobcatfish

Copy link
Copy Markdown
Contributor Author

This seems reasonable, but I'd prefer to leave the general definition of Conditions to reference the kubernetes docs, rather than repeating them in different wording. (I'm concerned that users might think that we're using Condition differently than k8s, rather than that we've standardized our usage of the existing k8s Condition.)

kk that sounds great!

This is the best kubernetes doc I could find to link to, @evankanderson do you know of any others?

That doc seems like it has what we need but I'm wondering if I've missed some other official docs.

@bobcatfish
bobcatfish force-pushed the conformance_reason branch from f8fa8bc to bedeab1 Compare May 17, 2018 22:46
@google-prow-robot google-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label May 17, 2018
@bobcatfish
bobcatfish force-pushed the conformance_reason branch from bedeab1 to f87a3db Compare May 17, 2018 22:47
@bobcatfish

Copy link
Copy Markdown
Contributor Author

PTAL @evankanderson, I linked to the API conventions doc and removed some of the content I added on the fields in condition. Let me know if you want me to remove/replace more the content with links elsewhere.

@bobcatfish
bobcatfish force-pushed the conformance_reason branch 2 times, most recently from c55b026 to f850edb Compare May 18, 2018 16:20

@evankanderson evankanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few minor nits, but overall LGTM! Thanks for doing this.

Comment thread docs/spec/errors.md
* [Resource exhausted while creating a revision](#resource-exhausted-while-creating-a-revision)
* [Container image not present in repository](#container-image-not-present-in-repository)
* [Container image fails at startup on Revision](#container-image-fails-at-startup-on-revision)
* [Deployment progressing slowly/stuck](#deployment-progressing-slowly-stuck)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was this indent change made automatically?

I'm fine running auto-format tools on our docs, but we should probably make sure that they end up with consistent indentation, etc, or we'll be forever seeing these sorts of spacing diffs.

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.

This came from a markdown plugin I have in vscode which complained:

[markdownlint] MD005/list-indent: Inconsistent indentation for list items at the same level [Expected: 4; Actual: 2]

Comment thread docs/spec/errors.md Outdated
* [Traffic shift progressing slowly/stuck](#traffic-shift-progressing-slowly-stuck)

# Deployment-Related Failures
### Deployment-Related Failures

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you promote these and the following headers one level up?

Looking at https://github.com/bobcatfish/elafros/blob/conformance_reason/docs/spec/errors.md, the font size on the "Build Failed" header is the same size as the body text -- it would be nice for it to be at least one size bigger.

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.

This is kind of a weird thing b/c of the way the headers work:

# - Reserved for the title
## - The minimum level for any subheadings, which in this case is Example scenarios
### - Subheading of Example scenarios

But since you want the headers to be bigger I'll make it so that Example scenarios is at the same level as Deployment-Related Failures :D It's not the worst evil I've ever done

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 agree it looks better now!

image

@evankanderson

Copy link
Copy Markdown
Member

/approve
/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label May 22, 2018
@google-prow-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrcunha, bobcatfish, evankanderson

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

@google-prow-robot google-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 22, 2018
@adrcunha

Copy link
Copy Markdown
Contributor

/test pull-elafros-elafros-test

@bobcatfish

Copy link
Copy Markdown
Contributor Author

/hold

@google-prow-robot google-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 22, 2018
@adrcunha

Copy link
Copy Markdown
Contributor

/test pull-elafros-elafros-test

* Some spec docs were using `RolloutComplete` for the condition type,
  however as errors.md documents and as discussed in #351, the type
  should actually be `Ready`
* The conformance tests were asserting against the condition `Reason`
  but as per #351 and errors.md, values in this field are for the
  user to consume and should be transpart to client applications.
* errors.md didn't make the latter as clear as mattmoor@'s comment
  in #351 so I copied some of his comment into the doc

Also reorganized some of errors.md to make it easier to identify,
by field, what requirements are.
@bobcatfish
bobcatfish force-pushed the conformance_reason branch from f850edb to 711dacf Compare May 30, 2018 00:02
@google-prow-robot google-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label May 30, 2018
@bobcatfish

Copy link
Copy Markdown
Contributor Author

/hold cancel

@google-prow-robot google-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 30, 2018
@bobcatfish

Copy link
Copy Markdown
Contributor Author

PTAL @evankanderson and sorry for the delay on this one

@evankanderson

Copy link
Copy Markdown
Member

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label May 30, 2018
@bobcatfish

Copy link
Copy Markdown
Contributor Author

wat
/test pull-elafros-elafros-integration-tests

@google-prow-robot
google-prow-robot merged commit 2c26c4e into knative:master May 30, 2018
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. 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.

4 participants