Skip to content

Commit

Permalink
skip python 3.13t since conda doesn't support it yet (#2757)
Browse files Browse the repository at this point in the history
Summary:

# context
* there are failures in torchrec binary validation {F1975312017}
* because conda can't support python 3.13t
```
$ conda create -n test python=3.13t
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python=3.13t

Current channels:

  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

```

Differential Revision: D69962038
  • Loading branch information
TroyGarden authored and facebook-github-bot committed Feb 21, 2025
1 parent 455d976 commit 5c6809d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/validate_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
export PYTORCH_CUDA_PKG=""
export CONDA_ENV="build_binary"

if [[ ${MATRIX_PYTHON_VERSION} = '3.13t' ]]; then
echo "Conda doesn't support 3.13t yet, you can just try \`conda create -n test python=3.13t\`"
exit 0
fi

conda create -y -n "${CONDA_ENV}" python="${MATRIX_PYTHON_VERSION}"

conda run -n build_binary python --version
Expand Down
39 changes: 12 additions & 27 deletions .github/workflows/validate-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,18 @@
name: Validate binaries

on:
workflow_call:
inputs:
channel:
description: "Channel to use (nightly, release)"
required: false
type: string
default: release
ref:
description: 'Reference to checkout, defaults to empty'
default: ""
required: false
type: string
workflow_dispatch:
inputs:
channel:
description: "Channel to use (nightly, release, test, pypi)"
required: true
type: choice
options:
- release
- nightly
- test
ref:
description: 'Reference to checkout, defaults to empty'
default: ""
required: false
type: string
push:
branches:
- main
paths:
- .github/workflows/validate-nightly-binaries.yml
- .github/workflows/validate-binaries.yml
- .github/scripts/validate-binaries.sh
pull_request:
paths:
- .github/workflows/validate-nightly-binaries.yml
- .github/workflows/validate-binaries.yml
- .github/scripts/validate-binaries.sh

jobs:
validate-binaries:
Expand Down

0 comments on commit 5c6809d

Please sign in to comment.