mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
Autorevert can issue multiple dispatches without waiting for the last one to finish: https://github.com/pytorch/pytorch/actions/workflows/pull.yml?query=branch%3Atrunk%2Faadd016020d718ae862361d23d98f61a5e6e3903 (this is expected behavior in certain cases, e.g. the specific job was already finished, but not the whole workflow) But currently in pytorch workflows the concurrency policy cancels concurrent workflow runs, even if they are dispatches. This PR: 1. removes the limit for dispatches (for the workflows that are monitored by autorevert). Note: there is still a hard cap for the total number of dispatches on autorevert side. 2. adds logging, so in the future we can change the concurrency to apply only to autorevert dispatches (we'll know what correct `actor` value to use) 3. removes garbage from the key in linux-aarch64.yml wf ---- Testing: see my two manual concurrent dispatches here: https://github.com/pytorch/pytorch/actions/workflows/pull.yml?query=branch%3Aunlimited-dispatches++ (also notice that concurrency correctly cancels wf on PR update) new logging: https://github.com/pytorch/pytorch/actions/runs/20444849087/job/58745963215#step:2:20 Pull Request resolved: https://github.com/pytorch/pytorch/pull/171132 Approved by: https://github.com/clee2000, https://github.com/jeanschmidt
78 lines
2.9 KiB
YAML
78 lines
2.9 KiB
YAML
name: s390x-periodic
|
|
|
|
on:
|
|
schedule:
|
|
# We have several schedules so jobs can check github.event.schedule to activate only for a fraction of the runs.
|
|
# Also run less frequently on weekends.
|
|
- cron: 29 8 * * * # about 1:29am PDT, for mem leak check and rerun disabled tests
|
|
push:
|
|
tags:
|
|
- ciflow/periodic/*
|
|
- ciflow/s390/*
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' && github.run_id }}-${{ github.event_name == 'schedule' }}-${{ github.event.schedule }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
llm-td:
|
|
if: github.repository_owner == 'pytorch'
|
|
name: before-test
|
|
uses: ./.github/workflows/llm_td_retrieval.yml
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
target-determination:
|
|
name: before-test
|
|
uses: ./.github/workflows/target_determination.yml
|
|
needs: llm-td
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
linux-manylinux-2_28-py3-cpu-s390x-build:
|
|
if: github.repository_owner == 'pytorch'
|
|
name: linux-manylinux-2_28-py3-cpu-s390x
|
|
uses: ./.github/workflows/_linux-build.yml
|
|
with:
|
|
build-environment: linux-s390x-binary-manywheel
|
|
docker-image-name: pytorch/manylinuxs390x-builder:cpu-s390x
|
|
runner: linux.s390x
|
|
test-matrix: |
|
|
{ include: [
|
|
{ config: "default", shard: 1, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 2, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 3, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 4, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 5, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 6, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 7, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 8, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 9, num_shards: 10, runner: "linux.s390x" },
|
|
{ config: "default", shard: 10, num_shards: 10, runner: "linux.s390x" },
|
|
]}
|
|
secrets: inherit
|
|
|
|
linux-manylinux-2_28-py3-cpu-s390x-test:
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
name: linux-manylinux-2_28-py3-cpu-s390x
|
|
uses: ./.github/workflows/_linux-test.yml
|
|
needs:
|
|
- linux-manylinux-2_28-py3-cpu-s390x-build
|
|
- target-determination
|
|
with:
|
|
build-environment: ${{ needs.linux-manylinux-2_28-py3-cpu-s390x-build.outputs.build-environment }}
|
|
docker-image: pytorch/manylinuxs390x-builder:cpu-s390x
|
|
test-matrix: ${{ needs.linux-manylinux-2_28-py3-cpu-s390x-build.outputs.test-matrix }}
|
|
timeout-minutes: 600
|
|
use-gha: "yes"
|
|
secrets: inherit
|