Skip to content

Add docs re. keeping spec/implementation/conformance tests in sync - #781

Merged
bobcatfish merged 1 commit into
knative:masterfrom
bobcatfish:api_changes_conformance_updates
May 3, 2018
Merged

bobcatfish merged 1 commit into
knative:masterfrom
bobcatfish:api_changes_conformance_updates

Conversation

@bobcatfish

Copy link
Copy Markdown
Contributor

The API specification, implementation and conformance tests should
all be kept in sync. Folks who are changing the API should also be
responsible for updating the docs and making sure their changes
are covered by the conformance tests.

In #780 we will look at checking this in PRs so we don't have to hope
folks will see the docs.

Fixes #592.

Proposed Changes

  • Adds docs indicating docs/conformance tests should be updated when spec/implementation are updated.

Release Note

NONE

@bobcatfish
bobcatfish requested a review from a team April 29, 2018 22:42
@google-prow-robot google-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 29, 2018
@bobcatfish bobcatfish changed the title Add docs re. keeping spec/impelmentation/conformance tests in sync Add docs re. keeping spec/implementation/conformance tests in sync Apr 29, 2018
@bobcatfish
bobcatfish force-pushed the api_changes_conformance_updates branch from af3db5b to dd249e4 Compare April 29, 2018 23:59
Comment thread docs/spec/spec.md Outdated

**Updates to this spec should include a corresponding change to [the
API implementation](/pkg/apis/ela/v1alpha1) and [the conformance
tests](/test/conformance).** ([#780](https://github.com/elafros/elafros/issues/780))

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.

What about putting this into README.md, along with a ToC to the various sub-documents?

It's been bugging me since I split the doc into sub-sections for manageability that there's no nice overview.

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.

Great idea!

@bobcatfish
bobcatfish force-pushed the api_changes_conformance_updates branch from dd249e4 to bb8286b Compare April 30, 2018 22:53
@google-prow-robot google-prow-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 Apr 30, 2018
@bobcatfish
bobcatfish force-pushed the api_changes_conformance_updates branch from bb8286b to 22bd672 Compare April 30, 2018 22:54
@bobcatfish

Copy link
Copy Markdown
Contributor Author

I've added a README to docs/spec, let me know what you think @evankanderson :D

@bobcatfish

Copy link
Copy Markdown
Contributor Author

@bobcatfish: The following test failed

wut

/retest

Comment thread docs/spec/README.md Outdated
* [Resource type overview](overview.md)
* [Error conditions and reporting](errors.md)
* [Sample API usage](normative_examples.md)
* [Motivation and goals](motivation.md)

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.

Suggested order:

motivation
overview
spec
errors
normative_examples

@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 1, 2018
@google-prow-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 1, 2018
Created a README in docs/spec to list the docs in the dir and
indicate that changes to these docs should be kept in syn with
both the implementation and teh conformance tests. Folks who
are changing the API should also be responsible for updating
the docs and making sure their changes are covered by the
conformance tests.

In #780 we will look at checking this in PRs so we don't have to hope
folks will see the docs.

Fixes #592.
@bobcatfish
bobcatfish force-pushed the api_changes_conformance_updates branch from 22bd672 to fba5180 Compare May 2, 2018 14:13
@google-prow-robot google-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label May 2, 2018
@bobcatfish

Copy link
Copy Markdown
Contributor Author

I changed the link order @evankanderson ! (Needs a new /lgtm now)

@evankanderson

Copy link
Copy Markdown
Member

/lgtm

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

Copy link
Copy Markdown
Contributor Author

I think tide is blocked again, I'm just gonna merge this.

@bobcatfish
bobcatfish merged commit 22e6fd1 into knative:master May 3, 2018
ReToCode added a commit to ReToCode/serving that referenced this pull request Jul 31, 2024
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/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.

3 participants