Skip to content

Instantly share code, notes, and snippets.

@zonggen
Last active September 30, 2021 06:29
Show Gist options
  • Save zonggen/294764c8e440c10cc84172ccd39449c2 to your computer and use it in GitHub Desktop.
Save zonggen/294764c8e440c10cc84172ccd39449c2 to your computer and use it in GitHub Desktop.
How to Run OpenShift Helm Certification Test Workflow from Your Fork

How to Run OpenShift Helm Certification Test Workflow from Your Fork

Prerequisites

  1. Have a running test cluster in order for chart-verifier to run checks
  2. Have a Personal Access Token (PAT) that has write access to the sandbox repository: https://github.com/openshift-helm-charts/sandbox
  3. Your Github ID is under "approvers" list in "OWNERS" file on "main" branch of your fork in order to run tests (defined here: https://github.com/openshift-helm-charts/development/blob/main/scripts/src/workflowtesting/checkprforci.py#L52)

Steps

Auto testing for PRs

  1. Fork https://github.com/openshift-helm-charts/development

  2. Set repository secrets in your fork. Use openshift-helm-charts-bot (https://github.com/openshift-helm-charts-bot) and its PAT for production but technically any PAT with write access to sandbox repository works.

    • BOT_NAME: ${GitHub ID}
    • BOT_TOKEN: ${GitHub PAT}
  3. Create a Pull Request (PR) with script modifications (as defined in https://github.com/openshift-helm-charts/development/blob/main/scripts/src/workflowtesting/checkprforci.py#L20) from test branch of your fork to main branch of your fork. An example zonggen/development#1.

  4. Auto tests roll out and test result reported back to Test Workflow: https://github.com/zonggen/development/runs/3748236393?check_suite_focus=true#step:7:18

Manual testing for Software Updates

  1. Same as previous section.

  2. Same as previous section.

  3. Go to your fork > Actions > Test Workflow > Run Workflow.

  4. Fill in the information (Warning: set "Run tests but do not create issues {true,false}" to "true" almost always unless you want to notify the chart owners about the test result). Here's what I set for test run:

    Run tests but do not create issues {true,false}: true
    Vendor type {all,partner,redhat,community}: redhat
    Software Name: chart-verifier
    Software Version: 1.2.0
    (Optional) Issue notification {github id}: ""
  5. Click "Run Workflow"

  6. Manual tests roll out and test result reported back to Test Workflow: https://github.com/zonggen/development/runs/3748636019?check_suite_focus=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment