Skip to content
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

Use generic deploy.sh everywhere #11

Closed
6 tasks done
annevk opened this issue Jan 24, 2017 · 14 comments
Closed
6 tasks done

Use generic deploy.sh everywhere #11

annevk opened this issue Jan 24, 2017 · 14 comments

Comments

@annevk
Copy link
Member

annevk commented Jan 24, 2017

With the groundwork in #6 landed, we now need to make sure all standards start using it. We also need to further tweak the script for that to happy completely, since a couple standards have additional requirements.

These are left:

  • URL (needs extra resources for master)
  • XMLHttpRequest (needs extra resources everywhere)
  • Encoding (needs extra resources everywhere)
  • Streams (needs emu-algify step)
  • Console (needs extra resources everywhere)
  • Compatibility (needs extra resources everywhere)

(There's also Books, Figures, Loader, and HTML Differences.)

annevk added a commit to whatwg/fetch that referenced this issue Feb 2, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
annevk added a commit to whatwg/fetch that referenced this issue Feb 7, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
annevk added a commit to whatwg/infra that referenced this issue Feb 13, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
domenic pushed a commit to whatwg/infra that referenced this issue Feb 13, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
annevk added a commit to whatwg/storage that referenced this issue Feb 15, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
annevk added a commit to whatwg/notifications that referenced this issue Feb 15, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
annevk added a commit to whatwg/fullscreen that referenced this issue Feb 15, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
annevk added a commit to whatwg/mimesniff that referenced this issue Feb 15, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
annevk added a commit to whatwg/quirks that referenced this issue Feb 15, 2017
- Updates to the deduplicated deploy script; part of whatwg/meta#11
- As such, stops deploying commit snapshots for branches
- Fixes .travis.yml syntax; part of whatwg/meta#4
- Adds .gitattributes and .editorconfig; part of whatwg/meta#7
@annevk
Copy link
Member Author

annevk commented Feb 15, 2017

I updated OP with what is remaining. They all require changes to the deploy script.

annevk added a commit to whatwg/xhr that referenced this issue Feb 23, 2017
Now with the reduplicated deploy.sh script and no more commit snapshots
for commits not on master. See whatwg/meta#11.

Fixes #119.
annevk added a commit to whatwg/xhr that referenced this issue Feb 23, 2017
Now with the reduplicated deploy.sh script and no more commit snapshots
for commits not on master. See whatwg/meta#11.

Fixes #119.
@domenic
Copy link
Member

domenic commented Jul 18, 2017

I believe URL no longer has extra resources and so could be converted.

@annevk
Copy link
Member Author

annevk commented Jul 19, 2017

URL has .htaccess.

@foolip
Copy link
Member

foolip commented Aug 29, 2017

For encoding, in addition to the extra resources, there's also a script (visualize.py) that needs to run.

Perhaps rather than the EXTRA_FILES approach in whatwg/whatwg.org#68 we should let the shared deploy.sh invoke an optional per-repository post-build.sh that takes as an argument a directory and a mode (master/commit-snapshot/branch-snapshot) to perform extra steps?

To enable commit snapshots and shared deploy for books and figures, we could also look for a build.sh, which if present is used instead of https://api.csswg.org/bikeshed/.

How does that sound, is there anything that still couldn't share the common deploy script then?

@domenic
Copy link
Member

domenic commented Aug 29, 2017

optional per-repository post-build.sh that takes as an argument a directory and a mode

I think I like this, although the simplicity of EXTRA_FILES is also quite nice, and maybe should be left as a 90% case?

To enable commit snapshots and shared deploy for books and figures, we could also look for a build.sh, which if present is used instead of https://api.csswg.org/bikeshed/.

That seems OK, although I am not too concerned about Books and Figures.

is there anything that still couldn't share the common deploy script then?

We should check that the Node stuff in console/streams works here. I think a post-build.sh would do the trick, but I am unsure why I used index.intermediate.html instead of index.html. index.intermediate.html does not fit well in a post-build framework.

@foolip
Copy link
Member

foolip commented Aug 29, 2017

So, leaving non-Bikeshed specs (including HTML) to the side for the moment, perhaps instead of a file by a specific name, we have an EXTRA_BUILD_STEP that could either do something simple, or invoke a script for something more complicated. I'll give it a shot.

@foolip
Copy link
Member

foolip commented Aug 29, 2017

@annevk, for encoding the HTML checker bits are also a bit special, with a CHECKER_PARAMS in .travis.yml. Is there any behavior there that needs to be preserved, or is the shared checker logic OK?

@annevk
Copy link
Member Author

annevk commented Aug 30, 2017

@foolip that needs to be preserved. We added it to ensure we don't miss any actual errors.

@foolip
Copy link
Member

foolip commented Aug 30, 2017

Are these errors specific to encoding, or can it be moved to the common deploy script?

@annevk
Copy link
Member Author

annevk commented Aug 30, 2017

Specific warnings. We'd probably not want to allow those warnings elsewhere.

@foolip
Copy link
Member

foolip commented Aug 30, 2017

Is it also important that the checker runs on all changes and not just on master deploys as in the common build script? If there's too much to fix, I'll probably just set up double-deploy in encoding's deploy.sh instead :)

@annevk
Copy link
Member Author

annevk commented Aug 30, 2017

We should maybe fix the common script to run the checker on PRs as well. That's the point where you'd want to catch any validation errors.

foolip added a commit to whatwg/whatwg.org that referenced this issue Sep 1, 2017
Usage example for encoding: POST_BUILD_STEP="python visualize.py \$DIR/"

Part of whatwg/meta#11.
foolip added a commit to whatwg/whatwg.org that referenced this issue Sep 1, 2017
Usage example for encoding, in .travis.yml:
 - POST_BUILD_STEP="python visualize.py \"$DIR/\""

Part of whatwg/meta#11.
foolip added a commit to whatwg/whatwg.org that referenced this issue Sep 3, 2017
Usage example for encoding, in .travis.yml:
 - POST_BUILD_STEP="python visualize.py \"$DIR/\""

Part of whatwg/meta#11.
foolip added a commit to whatwg/whatwg.org that referenced this issue Sep 3, 2017
Usage example for encoding, in .travis.yml:
 - POST_BUILD_STEP="python visualize.py \"$DIR/\""

Part of whatwg/meta#11.
@foolip
Copy link
Member

foolip commented Sep 4, 2017

Updated the description about console, now only extra images are needed.

And I was wrong about the checker only running on master deploys, it runs for all Travis jobs that attempt to deploy.

@domenic
Copy link
Member

domenic commented Jan 5, 2018

This has been done, woohoo!

@domenic domenic closed this as completed Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants