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

Re-land Use PyTorch RC release on release branch (#510) #514

Closed
wants to merge 1 commit into from

Conversation

ejguan
Copy link
Contributor

@ejguan ejguan commented Jun 10, 2022

Currently the CI tests on release branch use the nightly PyTorch release. This PR changes tests to use RC PyTorch release when the target branch of PR is the release branch or a commit is pushed to release branch.

Reverted PR: #510

See the CI result for when the PR is landed (nightly channel): https://github.com/pytorch/data/runs/6867662390?check_suite_focus=true#step:8:3
See the CI result of the PR for release branch (test channel): https://github.com/pytorch/data/runs/6867788289?check_suite_focus=true#step:8:3

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 10, 2022
Currently the CI on release branch uses nightly PyTorch release. This PR changes it to use RC PyTorch release.

See the CI result of the PR for release branch: https://github.com/pytorch/data/runs/6835571789?check_suite_focus=true#step:8:3
- name: Get PyTorch Channel
shell: bash
run: |
if [[ "${{ github.base_ref }}" == release/* ]] || [[ "${{ github.ref }}" == refs/heads/release/* ]] || [[ "${{ github.ref }}" == refs/tags/v* ]]; then
Copy link
Contributor Author

@ejguan ejguan Jun 13, 2022

Choose a reason for hiding this comment

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

Re-land due to undefined github.base_ref. Then, when it's not defined, the bash command will fail due to missing left operand for ==.
I need to wrap github.base_ref as an empty string to by-pass such scenario.

Copy link
Contributor

Choose a reason for hiding this comment

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

noob question: Does the last condition mean that if the branch has a tag that starts with 'v', it will choose torch_test as the channel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, the last condition refers to when a new tag that starts with v created. Not a branch.

Copy link
Contributor

Choose a reason for hiding this comment

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

Have we been manually creating those tags?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep. It's one step during release. I haven't created one for 0.4.0 yet because I will create the first rc at the end of today to incorporate the timeline of cherry-pick.
See all tags: https://github.com/pytorch/data/tags

@ejguan ejguan marked this pull request as ready for review June 13, 2022 18:58
@facebook-github-bot
Copy link
Contributor

@ejguan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@NivekT NivekT left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks! One question:

- name: Get PyTorch Channel
shell: bash
run: |
if [[ "${{ github.base_ref }}" == release/* ]] || [[ "${{ github.ref }}" == refs/heads/release/* ]] || [[ "${{ github.ref }}" == refs/tags/v* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

noob question: Does the last condition mean that if the branch has a tag that starts with 'v', it will choose torch_test as the channel?

ejguan added a commit to ejguan/data that referenced this pull request Jun 13, 2022
…ch#514)

Summary:
Currently the CI on release branch uses nightly PyTorch release. This PR changes it to use RC PyTorch release.

See the CI result for when the PR is landed (nightly channel): https://github.com/pytorch/data/runs/6867662390?check_suite_focus=true#step:8:3
See the CI result of the PR for release branch (test channel): https://github.com/pytorch/data/runs/6867788289?check_suite_focus=true#step:8:3

Pull Request resolved: pytorch#514

Reviewed By: NivekT

Differential Revision: D37116635

Pulled By: ejguan

fbshipit-source-id: 2dbe65da8121dfbd39690c83c2e1ca6cb70c0087
ejguan added a commit that referenced this pull request Jun 13, 2022
Summary:
Currently the CI on release branch uses nightly PyTorch release. This PR changes it to use RC PyTorch release.

See the CI result for when the PR is landed (nightly channel): https://github.com/pytorch/data/runs/6867662390?check_suite_focus=true#step:8:3
See the CI result of the PR for release branch (test channel): https://github.com/pytorch/data/runs/6867788289?check_suite_focus=true#step:8:3

Pull Request resolved: #514

Reviewed By: NivekT

Differential Revision: D37116635

Pulled By: ejguan

fbshipit-source-id: 2dbe65da8121dfbd39690c83c2e1ca6cb70c0087
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants