Skip to content

Migrate spec to Media WG - #150

Merged
tidoust merged 6 commits into
mainfrom
migrate
Mar 30, 2021
Merged

tidoust merged 6 commits into
mainfrom
migrate

Conversation

@tidoust

@tidoust tidoust commented Mar 15, 2021 •

Copy link
Copy Markdown
Member

To be merged only once repo transition has happened!

This update adjusts the metadata of the spec as it gets adopted by the Media
Working Group, and makes the following changes:

  • Update CONTRIBUTING.md to match that used in W3C
  • Update LICENSE.md to drop the CLA part
  • Update links in README.md and to mention Media WG
  • Update w3c.json
  • Update status, group, and links that currently target the WICG repo in the
    spec itself

Also note the switch to Level: None in the metadata of the spec as I suspect
that the group will publish the API without any level, at least initially.

Linked to #130.


Preview | Diff

This update adjusts the metadata of the spec as it gets adopted by the Media
Working Group, and makes the following changes:

- Update CONTRIBUTING.md to match that used in W3C
- Update LICENSE.md to drop the CLA part
- Update links in README.md and to mention Media WG
- Update w3c.json
- Update status, group, and links that currently target the WICG repo in the
spec itself

Also note the switch to `Level: None` in the metadata of the spec as I suspect
that the group will publish the API without any level, at least initially.

Linked to #130.
@tidoust
tidoust requested a review from chcunningham March 15, 2021 14:53
tidoust added 2 commits March 25, 2021 10:47
This update drops the hyphen as discussed in:
#149 (comment)

It also updates the new registry files following rebase.
@tidoust

tidoust commented Mar 25, 2021

Copy link
Copy Markdown
Member Author

Actually, spec status is wrong for registry as Bikeshed believes that the specs will be published as W3C Recommendations and not as informative Notes. I'll try to fix that.

The default boilerplate for the Status of This Document section of the Media WG
asserts that the specs are intended to be published as W3C Recommendations. The
text needs to be adjusted for drafts that are intended to be published as W3C
Working Group Notes.

There is no specific way to flag the targeted spec status in Bikeshed. The idea
is thus to add a `Text macro: NOTE yes` macro definition in the spec metadata
and conditionals in the boilerplate files to issue the right text.

The updates to the boilerplate files are at:
speced/bikeshed#1999

This update also makes the jobs that run Bikeshed die on fatal errors and not
on warnings because Bikeshed issues a warning about the lack of a Security and
Privacy section in the registry specs. This warning can be ignored (these
registry specs will probably not get such sections). There are no way to tell
Bikeshed to ignore specific warnings, so all of them have to be.
@tidoust

tidoust commented Mar 26, 2021

Copy link
Copy Markdown
Member Author

To make things work for registry files:

  • Bikeshed warnings have to be ignored for registry files for build to pass, because Bikeshed warns about the lack of a "secury and privacy" section when it parses a W3C spec, and these specs likely won't ever have one. I don't think there exists a mechanism to tell Bikeshed to just ignore that warning but still fail on other warnings.
  • Registry files will need to have Text macro: NOTE yes in their metadata to tell Bikeshed to create the right text in the Status of This Document section ("intended to become a W3C Working Group Note" instead of "intended to become a W3C Recommendation"). This is conditional on Adjust boilerplates for Media WG to account for Notes speced/bikeshed#1999 (not merged yet).

@chcunningham

chcunningham commented Mar 26, 2021 •

Copy link
Copy Markdown
Collaborator

Bikeshed warnings have to be ignored for registry files for build to pass, because Bikeshed warns about the lack of a "secury and privacy" section when it parses a W3C spec, and these specs likely won't ever have one. I don't think there exists a mechanism to tell Bikeshed to just ignore that warning but still fail on other warnings.

Hm, allowing warnings makes me sad. My vote would be to add an exception in bikeshed for "notes". My second choice would be to add boilerplate privacy/security sections that say something like "Please see (link to main spec section)".

I think option 1 could be as simple as adding a check for doc.md.status is not "WG-NOTE" in bikeshed/headings.py:25. Of course, the status would have to be WG-NOTE (or NOTE) as opposed to ED.

Registry files will need to have Text macro: NOTE yes in their metadata to tell Bikeshed to create the right text in the Status of This Document section ("intended to become a W3C Working Group Note" instead of "intended to become a W3C Recommendation"). This is conditional on speced/bikeshed#1999 (not merged yet).

Are we not able to set status to WG-NOTE as part of the transition? Alternatively, we could just continue to use NOTE? Not sure what effect this has on the generated "intended to become" text.

Comment thread CONTRIBUTING.md Resolved
Comment thread README.md Resolved
@chcunningham

Copy link
Copy Markdown
Collaborator

FYI, looks like w3c/spec-prod#31 is now fixed to allow multiple specs

@tidoust

tidoust commented Mar 28, 2021

Copy link
Copy Markdown
Member Author

Hm, allowing warnings makes me sad. My vote would be to add an exception in bikeshed for "notes". My second choice would be to add boilerplate privacy/security sections that say something like "Please see (link to main spec section)".

First option probably goes a bit too far. These particular notes do not need a dedicated section because the main spec will most likely contain all relevant considerations, but I think that people in privacy and security groups would argue that notes need such a section otherwise.

So second option could be good. I haven't tried it, but if text is going to be the same for all registry files, we can probably achieve that with a file-based include as well. Want me to give it a try?

Are we not able to set status to WG-NOTE as part of the transition? Alternatively, we could just continue to use NOTE? Not sure what effect this has on the generated "intended to become" text.

The rule of thumb is that documents in a GitHub repository are all "Editor's Drafts" (or "Community Group Drafts" for Community Group deliverables). The other statuses such as "Working Group Note", "Recommendation", "Working Draft", etc. are for the versions of these documents published under "/TR/".

Having a WG-NOTE status would make Bikeshed use the status-WG-NOTE.include (which is also part of the PR I prepared).

tidoust added 2 commits March 29, 2021 10:20
There remained a few places that still targeted `wicg.github.io`. This update
also uses uppercase characters consistently for all references to WebCodecs.
This adds a Privacy and Security Consideration section to registry notes that
targets the relevants sections in the main WebCodecs spec.

Bikeshed no longer issue any warning as a result and this update also makes the
build die on warnings again.
@tidoust

tidoust commented Mar 29, 2021

Copy link
Copy Markdown
Member Author

So second option could be good. I haven't tried it, but if text is going to be the same for all registry files, we can probably achieve that with a file-based include as well. Want me to give it a try?

I added a Privacy and Security section to registry files that links to the relevant sections in the WebCodecs spec. This can be turned into a file-based include if you prefer through code such as

<pre class=include>
path: privacy-security-include.md
</pre>

... and with an privacy-security-include.md that contains the current text.

@chcunningham chcunningham left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, LGTM!

@chcunningham

Copy link
Copy Markdown
Collaborator

To be merged only once repo transition has happened!

LMK how you'd like to coordinate the merge

@tidoust

tidoust commented Mar 29, 2021

Copy link
Copy Markdown
Member Author

LMK how you'd like to coordinate the merge

Good! I'll transition the repo tomorrow and will take the liberty to merge this PR once that is done.

The repo transition should not break anything as far as repo links are concerned (issues and PR will automatically be redirected to github.com/w3c/webcodecs). Direct links to the spec may break while redirection from wicg.github.io to w3c.github.io gets put in place (see WICG/wicg.github.io#12).

@chcunningham

Copy link
Copy Markdown
Collaborator

Good! I'll transition the repo tomorrow and will take the liberty to merge this PR once that is done.

Sounds good. Thanks again.

@tidoust
tidoust merged commit 4b76877 into main Mar 30, 2021
@chcunningham
chcunningham deleted the migrate branch June 2, 2021 03:45
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.

2 participants