-
Notifications
You must be signed in to change notification settings - Fork 636
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
build docs and push to branch in CI #1006
Conversation
ping @brianjo |
hmm, I wanted to use the built wheel which should be in |
The script used in the preparation steps ( If the binary package is preferable, you can set up things like Lines 275 to 292 in b7c17f8
|
@seemethere Does the CI job executor have a push privilege? |
5b39c4e
to
39254ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, although I might be missing some detail. Let's see how things work out on nightly build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me, just one thing
012de9d
to
c79e3b0
Compare
@seemethere |
32d1a33
to
7d35caf
Compare
76934e9
to
3842ed2
Compare
OK, CI passes. There are warnings when building the docs, but that is not new: brianjo/audio#1. |
Looks good. Let's see how the build process goes. Thanks! |
only: | ||
- nightly | ||
tags: | ||
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for making comment after the merge, but this means that release documentation is only pushed on release tag, right?
How about changing this to release/*
branch so that even after the release, we can fix the documentation by pushing doc change to release/*
branch?
@seemethere @brianjo @mattip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way I see it is like this:
- gh-pages/master is built every night and documents the latest and greatest HEAD of the development
- gh-pages/0.8 and all the numbered directories document the latest release; what end users would download to their machines if they install from conda or pip and specified a version.
- stable points to the latest numbered directory, what users would get if they conda or pip install and do not specify a version.
Bugs in the release would indeed be committed to the release/* branch via PRs, these would trigger the build_docs
build and you could examine the artifacts*. But the new documentation would only become "official" when the release is tagged and the fix is available to the general public as a major/minor/patch release, so a tag event is when the contents of the numbered directory should change.
You could fix bugs in the documentation that are discovered after release by building documentation locally and pushing the built documentation to the correct directory (using the steps in .circleci/build_docs/commit_docs.sh
or calling the script to do it for you).
* I should improve the CI process and make the artifacts available for viewing after the build_docs
step.
* test ghstack [ghstack-poisoned] * Update base for Update on "[PT-D] Add an example for Megatron-LM style example" [ghstack-poisoned] * Update base for Update on "[PT-D] Add an example for Megatron-LM style example" [ghstack-poisoned] * Update base for Update on "[PT-D] Add an example for Megatron-LM style example" [ghstack-poisoned] * Update base for Update on "[PT-D] Add an example for Megatron-LM style example" [ghstack-poisoned] * [PT-D] Add an example for Megatron-LM style example (pytorch#1006) * [PT-D] Add an example for Megatron-LM style example [ghstack-poisoned] * Update on "[PT-D] Add an example for Megatron-LM style example" [ghstack-poisoned]
This creates a job to build docs and push them. The basic idea is to reuse the install part of the
unittestsmoke_test jobs, and then doThen a separate step commits the built documentation, checks out the gh-pages branch, copies the rendered documentation into the correct directory, commits it, and pushes the result to the branch.
Things I don't understand about the config.yml, I hope I did it right
- how do the unittest_linux_cpu jobs know not to run if the build job fails? There is norequires
clause