Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.96 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.96 KB

Packit Service validation

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 trigger is taken and a new empty commit is pushed
  • opened PR trigger - new PR is created, the branch test_case_opened_pr is used as a source branch, after running the test the PR is closed

Deployment

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.

Running manually

If you want to run the script on your own:

  • Set a GITHUB_TOKEN environment variable holding a personal access token with public_repo scope.
  • Set a GITLAB_TOKEN environment variable holding a personal access token with api scope.
  • Optionally, set a SENTRY_SECRET environment variable if you want to send the validation failures to Sentry.