This plugin restricts the initial number of prow jobs that normally runs on pull request, since /ok-to-test
can't be applied on trusted member's pull request in prow CI.
To rescue that we have a plugin that can run only specific jobs on your draft pull request and not entire test suites.
Prow is integrated with the external plugin which is exposed as server that will receive GitHub events of user PR activity, accordingly plugin will handle the job execution as per requirements. In our case,
- Draft PR: Run only specific jobs on every commit and not other jobs
- PR: Once Draft PR is ready for review, then prow will execute all required jobs to validate new changes.
- Draft Pull Request
- First always raise Draft Pull Request if you are still working on it, and created for review only.
- If developer is working for any particular test job, then they should manually trigger that prow jobs using comment such as
/test trigger-name
on their PR. To run such tests, there is no hard requirement to move the Draft PR to PR. - By default, only specific jobs will be running in Draft Pull Request.
- Pull Request
- If there is any InProgress work on the Pull Request, we suggest moving that to Draft Pull Request
- Ideally all WIP Pull Request should be Draft Pull Request
Normally there are following use-cases:
- Developer will be going to create fresh Draft Pull Request
- Developer will create first Draft PR instead of Normal Pull Request on GitHub console.
- You can observe grey icon for Draft Pull Request and your matched jobs will be triggered automatically.
- To run any jobs maually just comment
/test trigger-name
- If you are not sure about the trigger-name then you can comment
/test ?
and prow bot will print list all possible jobs bot can trigger for you. - Once yours all changes are done with local testing, you can move Draft Pull Request to Ready For Review.
- Developer can observe all required jobs are in execution once PR is raised.
- Developer already has a Pull Request, that needs to be moved in Draft Pull Request
Facing any issues? Do raise it on GitHub, we will more than happy to help you out!