-
Notifications
You must be signed in to change notification settings - Fork 24.4k
DOC: release documentation version should be major.minor #72706
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
Conversation
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 3aa0595 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
@@ -326,14 +326,11 @@ | |||
# Customized html_title here. | |||
# Default is " ".join(project, release, "documentation") if not set | |||
if RELEASE: | |||
# remove hash (start with 'a') from version number if any | |||
version_end = torch_version.find('a') | |||
if version_end == -1: |
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.
What was the case where this would not find the hash? Is it guaranteed that the version here is well formed as X.Y...
?
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.
What was the case where this would not find the hash?
When building the release documentation from a non-tag, the __version__
is something like 1.10.0a0+git2aa19f3
. So the old code would change that to 1.10.0
. When building from a tag, the __version__
is already 1.10.0
.
Is it guaranteed that the version here is well formed as
X.Y...
?
I think if the __version__
is not of the form ..>don't care>, something is very wrong. The __version__
is generated by tools/generate_torch_version.py
, which will either read the version from version.txt
pytorch/tools/generate_torch_version.py
Line 16 in c9ccb85
version = open(pytorch_root / 'version.txt', 'r').read().strip() |
or from the PYTORCH_BUILD_VERSION
environment variable.
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.
Ok! Thanks for the details.
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.
SGTM
@@ -326,14 +326,11 @@ | |||
# Customized html_title here. | |||
# Default is " ".join(project, release, "documentation") if not set | |||
if RELEASE: | |||
# remove hash (start with 'a') from version number if any | |||
version_end = torch_version.find('a') | |||
if version_end == -1: |
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.
Ok! Thanks for the details.
@albanD has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: #72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1
Hey @mattip. |
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Summary: Fixes pytorch/pytorch.github.io#929 The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using `'.'.join(torch_version.split('.')[:2])` since we no longer care about trimming off the HASH: it automatically gets removed. holly1238, brianjo Pull Request resolved: pytorch/pytorch#72706 Reviewed By: samdow Differential Revision: D34215815 Pulled By: albanD fbshipit-source-id: 8437036cc6636674d9ab8b1666f37b561d0527e1 (cherry picked from commit d8caf988f958656f357a497372a782ff69829f9e)
Fixes pytorch/pytorch.github.io#929
The pytorch doc team would like to move to only major.minor documentation at https://pytorch.org/docs/versions.html, not major.minor.patch. This has been done in the CI scripts, but the generated documentation still has the patch version. Remove it when building RELEASE documentation. This allows simplifying the logic, using
'.'.join(torch_version.split('.')[:2])
since we no longer care about trimming off the HASH: it automatically gets removed.@holly1238, @brianjo