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

Refactor conda upload job to a separate job running on GH ephemeral runner #4886

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

huydhn
Copy link
Contributor

@huydhn huydhn commented Jan 16, 2024

Similar to #4877, this moves conda upload into a separate job on GH ephemeral runner:

  • I need a new _binary_conda_upload reusable workflow because conda upload uses anaconda client to upload to conda, not awscli to upload to S3.
  • The build job doesn't have access to pytorchbot-env anymore, thus it has no access to CONDA_PYTORCHBOT_TOKEN and CONDA_PYTORCHBOT_TOKEN_TEST secrets. Only the upload job has this access.

@huydhn huydhn requested a review from atalman January 16, 2024 00:06
@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 Jan 16, 2024
Copy link

vercel bot commented Jan 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
torchci ⬜️ Ignored (Inspect) Jan 16, 2024 0:06am

@huydhn huydhn requested a review from malfet January 16, 2024 00:11
@huydhn huydhn marked this pull request as ready for review January 16, 2024 00:11
@malfet malfet merged commit 17020d8 into main Jan 16, 2024
52 checks passed
huydhn added a commit that referenced this pull request Jan 17, 2024
I tested #4886 with vision
nightly and found out that I need to set the path to anaconda on GH
ephemeral runner used by the upload job.
It would fail otherwise, i.e.
https://github.com/pytorch/vision/actions/runs/7550404642/job/20556529100#step:7:121

### Testing


https://github.com/pytorch/test-infra/actions/runs/7550720719/job/20557072841?pr=4891#step:7:117
shows that conda can find anaconda client version correctly.
huydhn added a commit that referenced this pull request Feb 12, 2024
…unner (#4886)

Similar to #4877, this moves
conda upload into a separate job on GH ephemeral runner:

* I need a new `_binary_conda_upload` reusable workflow because conda
upload uses anaconda client to upload to conda, not awscli to upload to
S3.
* The build job doesn't have access to `pytorchbot-env` anymore, thus it
has no access to `CONDA_PYTORCHBOT_TOKEN` and
`CONDA_PYTORCHBOT_TOKEN_TEST` secrets. Only the upload job has this
access.
huydhn added a commit that referenced this pull request Feb 12, 2024
I tested #4886 with vision
nightly and found out that I need to set the path to anaconda on GH
ephemeral runner used by the upload job.
It would fail otherwise, i.e.
https://github.com/pytorch/vision/actions/runs/7550404642/job/20556529100#step:7:121

### Testing


https://github.com/pytorch/test-infra/actions/runs/7550720719/job/20557072841?pr=4891#step:7:117
shows that conda can find anaconda client version correctly.
huydhn added a commit that referenced this pull request Feb 12, 2024
The list includes:

* #4870
* #4877
* #4882
* #4886
* #4891
* #4893
* #4894
* #4901

---------

Co-authored-by: Andrey Talman <[email protected]>
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