forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate conda nightly builds (pytorch#141024)
Removing CD as per pytorch#138506 Pull Request resolved: pytorch#141024 Approved by: https://github.com/malfet
- Loading branch information
1 parent
2b21a65
commit 99a0321
Showing
8 changed files
with
0 additions
and
4,790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,126 +207,3 @@ jobs: | |
run: | | ||
set -ex | ||
bash .circleci/scripts/binary_upload.sh | ||
build-conda: | ||
name: "Build Triton Conda" | ||
needs: get-label-type | ||
runs-on: "${{ needs.get-label-type.outputs.label-type }}linux.2xlarge" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
py_vers: [ "3.9", "3.10", "3.11", "3.12" ] | ||
timeout-minutes: 40 | ||
env: | ||
DOCKER_IMAGE: pytorch/conda-builder:cpu | ||
PY_VERS: ${{ matrix.py_vers }} | ||
steps: | ||
- name: Setup SSH (Click me for login details) | ||
uses: pytorch/test-infra/.github/actions/setup-ssh@main | ||
with: | ||
github-secret: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout PyTorch | ||
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main | ||
with: | ||
submodules: false | ||
|
||
- name: Setup Linux | ||
uses: ./.github/actions/setup-linux | ||
|
||
- name: Pull Docker image | ||
uses: pytorch/test-infra/.github/actions/pull-docker-image@main | ||
with: | ||
docker-image: ${{ env.DOCKER_IMAGE }} | ||
|
||
- name: Build Triton conda package | ||
env: | ||
IS_RELEASE_TAG: ${{ startsWith(github.event.ref, 'refs/tags/v') }} | ||
run: | | ||
set -x | ||
mkdir -p "${RUNNER_TEMP}/artifacts/" | ||
container_name=$(docker run \ | ||
--tty \ | ||
--detach \ | ||
-v "${GITHUB_WORKSPACE}:/pytorch" \ | ||
-v "${RUNNER_TEMP}/artifacts:/artifacts" \ | ||
-w /artifacts/ \ | ||
"${DOCKER_IMAGE}" \ | ||
) | ||
RELEASE="" | ||
if [[ "${IS_RELEASE_TAG}" == true ]]; then | ||
RELEASE="--release" | ||
fi | ||
docker exec -t "${container_name}" yum install -y llvm11 llvm11-devel llvm11-static llvm11-libs zlib-devel | ||
docker exec -t "${container_name}" python /pytorch/.github/scripts/build_triton_wheel.py --build-conda --py-version="${PY_VERS}" $RELEASE | ||
docker exec -t "${container_name}" chown -R 1000.1000 /artifacts | ||
- uses: actions/[email protected] | ||
with: | ||
name: pytorch-triton-conda-${{ matrix.py_vers }} | ||
if-no-files-found: error | ||
path: ${{ runner.temp }}/artifacts/* | ||
|
||
- name: Teardown Linux | ||
uses: pytorch/test-infra/.github/actions/teardown-linux@main | ||
if: always() | ||
|
||
upload-conda: | ||
runs-on: ubuntu-22.04 | ||
needs: build-conda | ||
container: | ||
image: continuumio/miniconda3:4.12.0 | ||
environment: ${{ (github.event_name == 'push' && (github.event.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags/v'))) && 'conda-aws-upload' || '' }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download Build Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
# Download all available artifacts | ||
path: ${{ runner.temp }}/artifacts-all | ||
|
||
- name: Select Conda Artifacts | ||
shell: bash | ||
run: | | ||
set -x | ||
mkdir -p "${RUNNER_TEMP}/artifacts/" | ||
mv "${RUNNER_TEMP}"/artifacts-all/pytorch-triton-conda-*/* "${RUNNER_TEMP}/artifacts/" | ||
- name: Set DRY_RUN (only for tagged pushes) | ||
if: ${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags/v')) }} | ||
shell: bash | ||
run: | | ||
echo "DRY_RUN=disabled" >> "$GITHUB_ENV" | ||
- name: Set UPLOAD_CHANNEL (only for tagged pushes) | ||
if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') }} | ||
shell: bash | ||
run: | | ||
set -ex | ||
# reference ends with an RC suffix | ||
if [[ "${GITHUB_REF_NAME}" = *-rc[0-9]* ]]; then | ||
echo "UPLOAD_CHANNEL=test" >> "$GITHUB_ENV" | ||
fi | ||
# NB: This step is gated by DRY_RUN, which is enabled everywhere except nightly and release branches | ||
- name: Upload binaries to Anaconda | ||
env: | ||
PACKAGE_TYPE: conda | ||
PKG_DIR: ${{ runner.temp }}/artifacts | ||
# When running these on pull_request events these should be blank | ||
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }} | ||
CONDA_PYTORCHBOT_TOKEN_TEST: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }} | ||
shell: bash | ||
run: | | ||
set -ex | ||
if [[ "${UPLOAD_CHANNEL:-nightly}" == "nightly" ]]; then | ||
export ANACONDA_API_TOKEN="${CONDA_PYTORCHBOT_TOKEN}" | ||
else | ||
export ANACONDA_API_TOKEN="${CONDA_PYTORCHBOT_TOKEN_TEST}" | ||
fi | ||
bash .circleci/scripts/binary_upload.sh |
Oops, something went wrong.