Configuring Test Repository - dogtagpki/pki GitHub Wiki

Overview

By default the CI will perform the tests using @pki/master repository. Sometimes it’s necessary to perform the tests using a different repository (e.g. to test dependency changes).

In PKI 11.4 or later the repository can be configured by creating a GitHub variable called COPR_REPO to store the repository name. To reset the test repository simply remove the variable.

Prior to PKI 11.4 the repository can be configured by creating a GitHub secret called BASE64_REPO to store the base64-encoded value of the test repository name. To reset the test repository simply remove the secret.

Configuring Test Repository

Configuring test repository for PKI 11.4 or newer

To test using edewata/pki repository, create an Action variable:

  • Go to Settings β†’ Secrets and variables β†’ Actions β†’ Variables.

  • Click New repository variable.

  • Enter COPR_REPO as the variable name.

  • Enter edewata/pki as the variable value.

  • Click Add variable.

  • Alternatively, use this command:

    $ gh variable set COPR_REPO --body edewata/pki --repo <owner>/<project>

Configuring test repository for older PKI versions

To test using edewata/pki repository, create an Action variable:

  • base-64 encode the repository name with the following command:

    $ echo "edewata/pki" | base64
    ZWRld2F0YS9wa2kK
  • Go to Settings β†’ Secrets and variables β†’ Actions β†’ Secrets.

  • Click New repository secret.

  • Enter BASE64_REPO as the secret name.

  • Enter the base64-encoded value as the secret value.

  • Click Add secret.

Before Testing

Sometimes old versions of packages in COPR can get selected instead of the test packages, so it is a good idea to delete any non-relevant builds from your test repo before starting.

Resetting Test Repository

Resetting test repository for PKI 11.4 or newer

To reset the test repository, remove the variable:

  • Go to Settings β†’ Secrets and variables β†’ Actions β†’ Variables.

  • Click Remove next to COPR_REPO.

  • Click Yes, remove this variable.

  • Alternatively, use the following command:

    $ gh variable delete COPR_REPO --repo <owner>/<project>

Resetting test repository for older PKI versions

To reset the test repository, remove the secret:

  • Go to Settings β†’ Secrets and variables β†’ Actions β†’ Secrets.

  • Click Remove next to BASE64_REPO.

  • Click Yes, remove this secret.

⚠️ **GitHub.com Fallback** ⚠️