gate_pr_script
Generate a bash script that automates the PR gate workflow: rebase onto base branch, run pre-commit, execute sim Docker tests, squash commits, and force-push.
Instructions
Generate a bash script for the safe rebase->pre-commit->sim-Docker-tests->squash->push gate workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name, e.g. "pypto" | |
| skip_tests | No | Skip sim Docker tests | |
| test_paths | No | List of pytest test files/dirs (repo-relative), e.g. ["tests/st/distributed/collectives/test_allreduce.py"] | |
| base_branch | No | Branch to rebase onto | main |
| push_remote | No | Remote to force-push to | origin |
| extra_test_args | No | Extra pytest arguments appended after test paths, e.g. '-k allreduce -v' | |
| skip_pre_commit | No | Skip pre-commit checks |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||