-
Notifications
You must be signed in to change notification settings - Fork 101
Debug CRI runners
shyamjesal edited this page Jul 22, 2021
·
6 revisions
You can a kind cluster to run CRI tests for your forked repo.
# Set up the host (the same script as for the self-hosted GitHub CI runner)
./scripts/github_runner/setup_runner_host.sh
# If the $HOSTNAME contains characters which are not allowed in Github runner name, change it to something concise.
export HOSTNAME=cloudlab
# start the runner and connect it to github
# More than 1 runners per machine do not work currently
/scripts/github_runner/start_runners.sh 1 https://github.com/<OWNER>/<REPO> <Github Access key> criYou can SSH into the container using:
# find out the container name using
docker ps
# open a terminal inside the container
docker exec -it <container name> bashIf something goes wrong and you want to re-spawn the runner:
/scripts/github_runner/start_runners.sh 1 https://github.com/<OWNER>/<REPO> <Github Access key> cri restartYou should be able to see the runner listed on your repo after a few minutes and should be able to run your tests there. If you want to setup the vHive cluster manually inside a kind container, refer this.