gate_pr_script
Generates a bash script that safely rebases, runs pre-commit and sim Docker tests, squashes commits, and force-pushes pull request branches.
Instructions
Generate a bash script for the safe rebase->pre-commit->sim-Docker-tests->squash->push gate workflow.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "gate_pr_script"
}
}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"]. If empty, derived from the branch diff: changed test files plus the pytest targets of the verify_ladder tasks | |
| 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 | |||