-
Notifications
You must be signed in to change notification settings - Fork 64
Description
-
Purpose
We aim to introduce gating checks for the PyTorch build and release process by refactoring the current workflow to ensure that tests are executed and pass successfully before artifacts are uploaded to the release S3 bucket. -
Proposed Approach
The idea is to reuse the existing S3 bucket but omit a versioned or release-specific index during initial upload. This prevents direct exposure of unvalidated artifacts as release assets. Artifacts will only be promoted to the release path if all validation steps succeed.
Refer to the existing workflow:
build_portable_linux_pytorch_wheels.yml
- Current Workflow Design
Job 1: Checks out the PyTorch source repositories, builds the wheels, and uploads artifacts directly to the release S3 bucket.
Job 2: Dynamically determines the test targets to run.
Job 3: Executes PyTorch test suite on appropriate targets.
- Proposed Workflow Refactor
Job 1: Clone the PyTorch source repositories and build the wheels. Instead of uploading directly to the release path, the artifacts are temporarily stored in a staging directory within the same S3 bucket.
Job 2: Dynamically determine the appropriate test targets by running a configuration script.
Job 3: Execute tests against the generated wheels across the identified targets.
Job 4: Upon successful completion of all test jobs, promote the staged artifacts by copying them to the official release directory in the S3 bucket.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status