mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Remove most references to rockset: * replace comments and docs with a generic "backend database" * Delete `upload_to_rockset`, so we no longer need to install the package. * Do not upload perf stats to rockset as well (we should be completely on DynamoDB now right @huydhn?) According to VSCode, it went from 41 -> 7 instances of "rockset" in the repo Pull Request resolved: https://github.com/pytorch/pytorch/pull/139922 Approved by: https://github.com/huydhn, https://github.com/ZainRizvi
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
name: Create a cherry pick from a PR
|
|
|
|
on:
|
|
repository_dispatch:
|
|
types: [try-cherry-pick]
|
|
|
|
jobs:
|
|
cherry-pick:
|
|
name: cherry-pick-pr-${{ github.event.client_payload.pr_num }}
|
|
runs-on: ubuntu-latest
|
|
environment: cherry-pick-bot
|
|
env:
|
|
GH_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
steps:
|
|
- name: Checkout repo
|
|
id: checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GH_PYTORCHBOT_CHERRY_PICK_TOKEN }}
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
cache: pip
|
|
|
|
# Not the direct dependencies but the script uses trymerge
|
|
- run: pip install pyyaml==6.0
|
|
|
|
- name: Setup committer id
|
|
run: |
|
|
git config --global user.name "PyTorch Bot"
|
|
git config --global user.email "pytorchbot@users.noreply.github.com"
|
|
|
|
- name: Cherry pick the PR
|
|
shell: bash
|
|
env:
|
|
PR_NUM: ${{ github.event.client_payload.pr_num }}
|
|
BRANCH: ${{ github.event.client_payload.branch }}
|
|
CLASSIFICATION: ${{ github.event.client_payload.classification }}
|
|
FIXES: ${{ github.event.client_payload.fixes || '' }}
|
|
ACTOR: ${{ github.actor }}
|
|
GITHUB_TOKEN: ${{ secrets.GH_PYTORCHBOT_CHERRY_PICK_TOKEN }}
|
|
run: |
|
|
set -ex
|
|
|
|
python .github/scripts/cherry_pick.py \
|
|
--onto-branch "${BRANCH}" \
|
|
--classification "${CLASSIFICATION}" \
|
|
--fixes "${FIXES}" \
|
|
--github-actor "${ACTOR}" \
|
|
"${PR_NUM}"
|
|
|
|
concurrency:
|
|
group: cherry-pick-pr-${{ github.event.client_payload.pr_num }}
|
|
cancel-in-progress: true
|