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

ci: Automate uploading to correct upload channel #2204

Merged

Conversation

seemethere
Copy link
Member

@seemethere seemethere commented May 11, 2020

Automate switch to the test channel on tag and swapping out our
BUILD_VERSION for the tag name on tag.

Swapping BUILD_VERSION doesn't work on windows, but that will come in a
follow up commit.

cc @peterjc123, could you point me in the direction where the version is defined for windows?

Signed-off-by: Eli Uriegas eliuriegas@fb.com

@peterjc123
Copy link
Contributor

cc @peterjc123, could you point me in the direction where the version is defined for windows?

You mean https://github.com/pytorch/vision/blob/master/packaging/windows/internal/nightly_defaults.bat#L147?

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Generally looks good, but I have a question regarding CIRCLE_TAG

command: |
our_upload_channel=nightly
# On tags upload to test instead
if [[ -n "${CIRCLE_TAG}" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

How does the CIRCLE_TAG works? Will we need to first make a release on GitHub (and commit the PR on the tag) so that the job running on the branch gets activated?
What if we need to run fixes on top of the tag, we will need to create new tags with the fixes?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it works exactly that way.

With the upstream pytorch/pytorch repository we've piloted this for the 1.5.0 release with pretty good success so I'm hoping to bring that same workflow to all of the downstream repositories.

@malfet
Copy link
Contributor

malfet commented May 12, 2020

Is there a way to automagically exclude autogenerated files from review?

@seemethere
Copy link
Member Author

Is there a way to automagically exclude autogenerated files from review?

There isn't really, sometimes though with the auto-generated files the diff will be too large and they'll exclude themselves

Automate switch to the test channel on tag and swapping out our
BUILD_VERSION for the tag name on tag.

Swapping BUILD_VERSION doesn't work on windows, but that will come in a
follow up commit.

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
@seemethere seemethere force-pushed the torch_release_cycle_improvements branch from b7caa89 to de949b3 Compare May 12, 2020 18:22
Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

None yet

4 participants