Skip to content

consistency and style fix#811

Merged
mrunalp merged 1 commit intoopencontainers:masterfrom
Mashimiao:style-consistent-fix
Jun 1, 2017
Merged

consistency and style fix#811
mrunalp merged 1 commit intoopencontainers:masterfrom
Mashimiao:style-consistent-fix

Conversation

@Mashimiao
Copy link

replace file sytem with filesystem for consistent in context
keep one sentence per line

Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com

@Mashimiao Mashimiao force-pushed the style-consistent-fix branch from a36389c to 265c768 Compare May 12, 2017 13:00
config.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you want deeper indenting here to show that this is part of the * Linux: … entry. For an example with a two-space indent, see here, although that's getting cleaned up to use four-space indents (which Pandoc likes better) in #724.

config.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

capabilities is already using four-space indents (in the list below). Can we use them here while we're touching the lines?

config.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Also want deeper indents here to make it clearly part of the hard list entry.

config.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think readers are likely to forget which property we're talking about ;). Can we shorten this line? Maybe:

Values should be, and runtimes SHOULD understand, valid [`GOOS`][go-environment] values.

config.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just use “Runtimes”?

$ git describe --always
v1.0.0-rc5-148-g45c3fd4
$ git grep -i runtime.implementations *.md | wc -l
2
$ git grep -i runtimes *.md | wc -l
19

@Mashimiao Mashimiao force-pushed the style-consistent-fix branch from 265c768 to f035b58 Compare May 13, 2017 01:05
@Mashimiao
Copy link
Author

all comments have been updated. PTAL

config.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

When I asked for four-space indents here, I meant all the lines after * **capabilities** … (sorry for not clarifying). So it should be:

* **`capabilities`** (object, OPTIONAL) is an object containing arrays that specifies the sets of capabilities for the process(es) inside the container.
    Valid values are platform-specific.
    For example, valid values for Linux are defined in the [capabilities(7)][capabilities.7] man page, such as `CAP_CHOWN`.
    Any value which cannot be mapped to a relevant kernel interface MUST cause an error.
    `capabilities` contains the following properties:

Copy link
Author

Choose a reason for hiding this comment

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

updated, but there are a lot of sentences do not start with four-space indents, will not fix them in this PR.
I can submit a follow-PR to format all of them.

@Mashimiao Mashimiao force-pushed the style-consistent-fix branch from f035b58 to 7858d03 Compare May 13, 2017 10:31
config.md Outdated

Choose a reason for hiding this comment

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

Fwiw, I think "Runtime implementations" is better than 'Runtimes" and I'd change the three 'Runtimes' below to that too. My $.02, your call to make.

Copy link
Contributor

@wking wking May 15, 2017

Choose a reason for hiding this comment

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

... I'd change the three 'Runtimes' below to that too.

Would you update the other instances (beyond those already touched by this PR) too?

Can you put a finger on why you likw including "implementations" better? A bare "runtimes" is shorter, and I can't think of a non-implementation runtime.

config.md Outdated

Choose a reason for hiding this comment

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

Suggest 'reading or processing' here and below. I'm not a big fan of '/' over 'or'. Again, my $.02, your call.

@Mashimiao Mashimiao force-pushed the style-consistent-fix branch 4 times, most recently from 204bb77 to 9bc1ef8 Compare May 23, 2017 07:51
@Mashimiao
Copy link
Author

rebased. @opencontainers/runtime-spec-maintainers PTAL

replace file sytem with filesystem for consistent in context
keep one sentence per line

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
@Mashimiao Mashimiao force-pushed the style-consistent-fix branch from 9bc1ef8 to b92cf90 Compare June 1, 2017 16:31
@Mashimiao
Copy link
Author

rebased around #846

@crosbymichael
Copy link
Member

crosbymichael commented Jun 1, 2017

LGTM

Approved with PullApprove

1 similar comment
@mrunalp
Copy link
Contributor

mrunalp commented Jun 1, 2017

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit be3960a into opencontainers:master Jun 1, 2017
@vbatts vbatts mentioned this pull request Jul 5, 2017
wking added a commit to wking/opencontainer-runtime-spec that referenced this pull request Aug 31, 2017
Generating an error seems like one potential violation of the
requirement to ignore unknown properties.  Compliance testing for the
ignore requirement can cite the MUST I've written here for any
noticeable runtime activity around the unknown property without
needing a error-specific MUST.

We've had the two MUSTs since 27a05de (Add text about extensions,
2016-06-26, opencontainers#510), citing [1].  I'd asked for consolidated phrasing
then [2,3], but hadn't followed up after the commit landed.

I've left a line mentioning the error activity as non-normative
clarification, but am also happy to drop that line completely.

Also:

* Update the unknown annotation entry to reference the generic
  extensibility section, because there's nothing annotation-specific
  in how we want runtimes to handle unknown keys.

* Remove "reading or processing" language.  This initially landed in
  27a05de with a bump in b92cf90 (consistency and style fix,
  2017-05-12, opencontainers#811).  Some thought was put into this phrasing there
  [4,5] and earlier in opencontainers#510 [6], but we never got around to dropping
  this qualifier.  However, the purpose of this qualifier is unclear
  to me.  What is the point of compliance requirements for runtimes
  which don't read or process a configuration?

[1]: opencontainers/image-spec#164
[2]: opencontainers#510 (comment)
[3]: opencontainers#510 (comment)
[4]: opencontainers#811 (comment)
[5]: opencontainers#811 (comment)
[6]: opencontainers#510 (comment)

Signed-off-by: W. Trevor King <wking@tremily.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments