mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Fix some stale hash updates https://github.com/pytorch/pytorch/pulls/pytorchupdatebot reported by @izaitsevfb * XLA and ExecuTorch now wait for all jobs in pull instead of hardcoding the job names which are not correct anymore and the bot waits forever there * Trion commit hash hasn't been updated automatically since 2023 and people have been updating the pin manually with their testings from time to time, so I doubt that it would be an useful thing to keep. The vision update failures looks more complex though and I would need to take a closer look. So, I will keep it in another PR Pull Request resolved: https://github.com/pytorch/pytorch/pull/145314 Approved by: https://github.com/izaitsevfb
63 lines
2.1 KiB
YAML
63 lines
2.1 KiB
YAML
name: weekly
|
|
|
|
on:
|
|
schedule:
|
|
# Mondays at 7:37am UTC = 12:27am PST
|
|
# Choose a random time near midnight PST because it may be delayed if there are high loads
|
|
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
|
|
- cron: 37 7 * * 1
|
|
workflow_dispatch:
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
update-commit-hash:
|
|
if: github.repository_owner == 'pytorch'
|
|
runs-on: ubuntu-latest
|
|
environment: update-commit-hash
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: update-xla-commit-hash
|
|
continue-on-error: true
|
|
uses: pytorch/test-infra/.github/actions/update-commit-hash@main
|
|
with:
|
|
repo-name: xla
|
|
branch: master
|
|
pin-folder: .github/ci_commit_pins
|
|
test-infra-ref: main
|
|
updatebot-token: ${{ secrets.UPDATEBOT_TOKEN }}
|
|
pytorchbot-token: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
|
|
|
|
update-slow-tests:
|
|
if: github.repository_owner == 'pytorch'
|
|
runs-on: ubuntu-latest
|
|
environment: update-commit-hash
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.UPDATEBOT_TOKEN }}
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.9'
|
|
- name: Install requirements
|
|
shell: bash
|
|
run: |
|
|
pip install requests==2.32.2 clickhouse-connect==0.8.14
|
|
- name: Update slow test file
|
|
shell: bash
|
|
env:
|
|
PYTORCHBOT_TOKEN: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
|
|
UPDATEBOT_TOKEN: ${{ secrets.UPDATEBOT_TOKEN }}
|
|
CLICKHOUSE_ENDPOINT: ${{ secrets.CLICKHOUSE_ENDPOINT }}
|
|
CLICKHOUSE_USERNAME: ${{ secrets.CLICKHOUSE_READONLY_USERNAME }}
|
|
CLICKHOUSE_PASSWORD: ${{ secrets.CLICKHOUSE_READONLY_PASSWORD }}
|
|
run: |
|
|
git config --global user.name "PyTorch UpdateBot"
|
|
git config --global user.email "pytorchupdatebot@users.noreply.github.com"
|
|
python tools/testing/update_slow_tests.py
|