For the validation of the Packit Service we run a validation script every night.
The script verifies that Copr builds and Testing farm runs are processed correctly for pull requests in packit/hello-world repo:
- comment trigger (each PR with title beginning
Basic test case:is taken and commented with/packit build) - commit (push) trigger - PR with title
Basic test case - commit triggeris taken and a new empty commit is pushed - opened PR trigger - new PR is created, the branch
test_case_opened_pris used as a source branch, after running the test the PR is closed
The image is build via a GitHub workflow and pushed to a Quay.io repository.
There is a Helm Chart
and a CI/CD in Gitlab repo
(internal because PSI is also internal) which installs/upgrades the chart to the
cyborg project in PSI on every push.
You just have to update the image tag
in production.yaml
and/or staging.yaml.
If you want to run the script on your own:
- Set a
GITHUB_TOKENenvironment variable holding a personal access token with public_repo scope. - Set a
GITLAB_TOKENenvironment variable holding a personal access token with api scope. - Optionally, set a
SENTRY_SECRETenvironment variable if you want to send the validation failures to Sentry.