@@ -109,7 +109,7 @@ jobs:
109109 steps :
110110 - name : Setup SSH (Click me for login details)
111111 uses : pytorch/test-infra/.github/actions/setup-ssh@main
112- if : inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
112+ if : inputs.build-environment != 'linux-s390x-binary-manywheel'
113113 with :
114114 github-secret : ${{ secrets.GITHUB_TOKEN }}
115115
@@ -119,17 +119,16 @@ jobs:
119119 # checkout. In other cases you should prefer a local checkout.
120120 - name : Checkout PyTorch
121121 uses : pytorch/pytorch/.github/actions/checkout-pytorch@main
122- if : inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
123122 with :
124123 no-sudo : true
125124
126125 - name : Setup Linux
127126 uses : ./.github/actions/setup-linux
128- if : inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
127+ if : inputs.build-environment != 'linux-s390x-binary-manywheel'
129128
130129 - name : configure aws credentials
131130 uses : aws-actions/configure-aws-credentials@v3
132- if : ${{ inputs.aws-role-to-assume != '' && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9' }}
131+ if : ${{ inputs.aws-role-to-assume != '' && inputs.build-environment != 'linux-s390x-binary-manywheel' }}
133132 with :
134133 role-to-assume : ${{ inputs.aws-role-to-assume }}
135134 role-session-name : gha-linux-build
@@ -138,13 +137,13 @@ jobs:
138137 - name : Calculate docker image
139138 id : calculate-docker-image
140139 uses : pytorch/test-infra/.github/actions/calculate-docker-image@main
141- if : inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
140+ if : inputs.build-environment != 'linux-s390x-binary-manywheel'
142141 with :
143142 docker-image-name : ${{ inputs.docker-image-name }}
144143
145144 - name : Use following to pull public copy of the image
146145 id : print-ghcr-mirror
147- if : inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
146+ if : inputs.build-environment != 'linux-s390x-binary-manywheel'
148147 env :
149148 ECR_DOCKER_IMAGE : ${{ steps.calculate-docker-image.outputs.docker-image }}
150149 shell : bash
@@ -154,26 +153,24 @@ jobs:
154153
155154 - name : Pull docker image
156155 uses : pytorch/test-infra/.github/actions/pull-docker-image@main
157- if : inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
156+ if : inputs.build-environment != 'linux-s390x-binary-manywheel'
158157 with :
159158 docker-image : ${{ steps.calculate-docker-image.outputs.docker-image }}
160159
161160 - name : Parse ref
162161 id : parse-ref
163- if : inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
164162 run : .github/scripts/parse_ref.py
165163
166164 - name : Get workflow job id
167165 id : get-job-id
168166 uses : ./.github/actions/get-workflow-job-id
169- if : always() && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
167+ if : always()
170168 with :
171169 github-token : ${{ secrets.GITHUB_TOKEN }}
172170
173171 # Apply the filter logic to the build step too if the test-config label is already there
174172 - name : Select all requested test configurations (if the test matrix is available)
175173 id : filter
176- if : inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
177174 uses : ./.github/actions/filter-test-configs
178175 with :
179176 github-token : ${{ secrets.GITHUB_TOKEN }}
@@ -184,14 +181,14 @@ jobs:
184181 - name : Download pytest cache
185182 uses : ./.github/actions/pytest-cache-download
186183 continue-on-error : true
187- if : inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
184+ if : inputs.build-environment != 'linux-s390x-binary-manywheel'
188185 with :
189186 cache_dir : .pytest_cache
190187 job_identifier : ${{ github.workflow }}_${{ inputs.build-environment }}
191188 s3_bucket : ${{ inputs.s3-bucket }}
192189
193190 - name : Build
194- if : ( steps.filter.outputs.is-test-matrix-empty == 'False' || inputs.test-matrix == '') && (inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9')
191+ if : steps.filter.outputs.is-test-matrix-empty == 'False' || inputs.test-matrix == ''
195192 id : build
196193 env :
197194 BUILD_ENVIRONMENT : ${{ inputs.build-environment }}
@@ -278,24 +275,14 @@ jobs:
278275 END_TIME=$(date +%s)
279276 echo "build_time=$((END_TIME - START_TIME))" >> "$GITHUB_OUTPUT"
280277
281- - name : Execute Build and Tests inside ppc64le Docker Container
282- if : inputs.build-environment == 'linux-ppc64le-binary-manywheel-ubi9'
283- run : |
284- CONTAINER_NAME="temp_builder_${RUN_ID}"
285- docker run -d --name "$CONTAINER_NAME" pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
286- docker wait "$CONTAINER_NAME"
287- docker logs "$CONTAINER_NAME"
288- docker cp "$CONTAINER_NAME":/workspace/pytorch/dist/. dist/
289- docker rm "$CONTAINER_NAME"
290-
291278 - name : Archive artifacts into zip
292279 if : inputs.build-generates-artifacts && steps.build.outcome != 'skipped'
293280 run : |
294281 zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .additional_ci_files
295282
296283 - name : Store PyTorch Build Artifacts on S3
297284 uses : seemethere/upload-artifact-s3@v5
298- if : inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && !inputs.use_split_build && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
285+ if : inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && !inputs.use_split_build && inputs.build-environment != 'linux-s390x-binary-manywheel'
299286 with :
300287 name : ${{ inputs.build-environment }}
301288 retention-days : 14
@@ -305,7 +292,7 @@ jobs:
305292
306293 - name : Store PyTorch Build Artifacts on S3 for split build
307294 uses : seemethere/upload-artifact-s3@v5
308- if : inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && inputs.use_split_build && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
295+ if : inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && inputs.use_split_build && inputs.build-environment != 'linux-s390x-binary-manywheel'
309296 with :
310297 name : ${{ inputs.build-environment }}-experimental-split-build
311298 retention-days : 14
@@ -331,35 +318,16 @@ jobs:
331318 if-no-files-found : error
332319 path : artifacts.zip
333320
334- - name : Archive ppc64le artifacts into zip
335- if : inputs.build-environment == 'linux-ppc64le-binary-manywheel-ubi9'
336- run : |
337- zip -1 -r artifacts.zip dist/
338-
339-
340- - name : Store PyTorch Build Artifacts for ppc64le
341- uses : actions/upload-artifact@v4
342- if : inputs.build-environment == 'linux-ppc64le-binary-manywheel-ubi9'
343- with :
344- name : ${{ inputs.build-environment }}-ubi9
345- retention-days : 14
346- if-no-files-found : error
347- path : artifacts.zip
348-
349- - name : Cleanup dangling Docker images for ppc64le
350- if : always() && inputs.build-environment == 'linux-ppc64le-binary-manywheel-ubi9'
351- run : docker image prune -f
352-
353321 - name : Upload sccache stats
354- if : steps.build.outcome != 'skipped' && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9'
322+ if : steps.build.outcome != 'skipped' && inputs.build-environment != 'linux-s390x-binary-manywheel'
355323 uses : ./.github/actions/upload-sccache-stats
356324 with :
357325 github-token : ${{ secrets.GITHUB_TOKEN }}
358326 build-time : ${{ steps.build.outputs.build_time }}
359327
360328 - name : Teardown Linux
361329 uses : pytorch/test-infra/.github/actions/teardown-linux@main
362- if : always() && ( inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel-ubi9')
330+ if : always() && inputs.build-environment != 'linux-s390x-binary-manywheel'
363331
364332 - name : Cleanup docker
365333 if : always() && inputs.build-environment == 'linux-s390x-binary-manywheel'
0 commit comments