All Prow config files for running Prow jobs for Knative projects are under prow/.
-
Install Knative Prow GitHub App to the organization.
-
Create a team called Knative Prow Robots, and make it an Admin of the org (or repo).
-
Invite at least knative-prow-robot for your org. Add it to the robots team you created. For automated releases you'll need to also add knative-prow-releaser-robot.
-
Create the appropriate
OWNERS
and optionalOWNERS_ALIASES
files (at least for the root dir). -
Make sure that Knative Prow Robots team is an Admin of the repo.
-
Add the new repo to jobs_config, the meta config file for generating Prow config and Prow job config. Check the config files for other repos for blueprints for what to add. Then run
./hack/generate-configs.sh
to regenerate prow/jobs/generated, otherwise the presubmit test in test-infra will fail. Create a PR with the changes. Once it's merged the configs will be automatically updated by a postsubmit job. -
Wait a few minutes, check that Prow is working by entering
/woof
as a comment in any PR in the new repo.
-
Have the test infrastructure in place (usually this means having at least
//test/presubmit-tests.sh
working, and optionally//hack/release.sh
working for automated nightly releases). -
Update jobs_config (usually, copy and update the existing configuration from another repository). Run
./hack/generate-configs.sh
to regenerate prow/jobs/config.yaml, otherwise the presubmit test will fail. Create a pull request with the changes. Once it's merged the configs will be automatically updated by a postsubmit job. -
Wait a few minutes, enter
/test [prow_job_name]
or/test all
or/retest
as a comment in any PR in the repo and ensure the test jobs are executed.