| name | prow-ci |
| description | Access and analyze OpenShift Prow CI results for ocm-agent-operator |
| trigger | prow, prow-ci, /prow-ci, ci results, check ci |
Prow CI Access for OCM Agent Operator
This skill helps you access and analyze Prow CI results for the ocm-agent-operator repository.
Quick Start
/prow-ci
"Check CI results for PR 255"
"What Prow jobs are failing?"
"Show me the CI status"
Prow Resources
Main Dashboard: https://prow.ci.openshift.org/
CI Search: https://github.com/openshift/ci-search
Job History: https://prow.ci.openshift.org/?repo=openshift%2Focm-agent-operator
Common Use Cases
1. Check Recent CI Results
curl -s "https://prow.ci.openshift.org/?repo=openshift%2Focm-agent-operator&type=presubmit" | grep -E "pull-ci-openshift-ocm-agent-operator"
gh pr view PR_NUMBER --json statusCheckRollup --jq '.statusCheckRollup[] | select(.context | contains("prow"))'
2. Access Build Logs
Prow logs are stored at:
- Pull request jobs:
gs://test-platform-results/pr-logs/pull/openshift_ocm-agent-operator/[PR_NUMBER]/[JOB_NAME]/[JOB_ID]
- Periodic jobs:
gs://test-platform-results/logs/[JOB_NAME]/[JOB_ID]
Viewing logs via web:
https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_ocm-agent-operator/[PR_NUMBER]/[JOB_NAME]/[JOB_ID]
3. Analyze Test Failures
gh pr view PR_NUMBER --json statusCheckRollup
gh pr checks PR_NUMBER | grep -i "fail"
4. Common Job Names
Prow CI Jobs (configured in openshift/release):
pull-ci-openshift-ocm-agent-operator-master-e2e-binary-build-success - E2E binary build verification
pull-ci-openshift-ocm-agent-operator-master-coverage - Code coverage analysis (with Codecov)
pull-ci-openshift-ocm-agent-operator-master-lint - Linting checks
pull-ci-openshift-ocm-agent-operator-master-test - Unit tests
pull-ci-openshift-ocm-agent-operator-master-validate - Validation checks
Tekton Pipelines (configured in .tekton/):
ocm-agent-operator-pull-request - Main PR pipeline (docker build with OCI-TA)
ocm-agent-operator-e2e-pull-request - E2E testing pipeline
ocm-agent-operator-pko-pull-request - PKO (Package Operator) pipeline
- Corresponding
-push pipelines for merged commits
Debugging CI Failures
Step 1: Identify Failed Job
gh pr checks PR_NUMBER
Step 2: Access Prow UI
Open the Prow link from PR checks or construct manually:
https://prow.ci.openshift.org/?repo=openshift%2Focm-agent-operator&type=presubmit
Step 3: Review Logs
Click on failed job → "Build Log" tab
Step 4: Check Artifacts
Look for:
- Test failure logs
- Coverage reports
- Generated artifacts
Step 5: Reproduce Locally
Many Prow jobs can be reproduced with:
make go-test
make go-check
pre-commit run --all-files
make validate
make coverage
make e2e-binary-build
make docker-build
CI/Prow Integration in This Repo
This repo uses both Prow and Tekton for comprehensive CI:
Prow CI (openshift/release):
- Configuration:
ci-operator/config/openshift/ocm-agent-operator/openshift-ocm-agent-operator-master.yaml
- Runs: lint, test, validate, coverage, e2e-binary-build
- Uses Codecov for coverage reporting (secret:
ocm-agent-operator-codecov-token)
- Skip rules: Changes to
.tekton/, .github/, .md files, OWNERS, LICENSE don't trigger most jobs
Tekton Pipelines (.tekton/):
- Primary build pipeline using Pipelines as Code
- Three pipeline types: main, e2e, pko
- Builds container images to Quay (ocm-agent-operator-tenant)
- Pull request images expire after 5 days
- Uses boilerplate framework from
openshift/boilerplate (docker-build-oci-ta pipeline)
Quick Reference Commands
gh pr checks <PR_NUMBER>
gh pr view <PR_NUMBER> --json statusCheckRollup
gh pr checks <PR_NUMBER> | grep "pull-ci-openshift-ocm-agent-operator"
gh pr view <PR_NUMBER> --json statusCheckRollup --jq '.statusCheckRollup[] | select(.context | contains("Tekton"))'
Troubleshooting
Can't find job results?
- Check both Prow AND Tekton - this repo uses both systems
- Prow jobs:
pull-ci-openshift-ocm-agent-operator-master-*
- Tekton jobs: Usually show as "Tekton" or pipeline names in PR checks
- Verify repo name format in Prow:
openshift_ocm-agent-operator (underscore, not dash)
- Ensure PR has been opened and CI has run
Logs show permission denied?
- Prow logs are public for openshift org
- Use web UI (prow.ci.openshift.org) instead of gsutil
- Check if job ID is correct
Job still running?
- Check Prow dashboard for in-progress jobs
- Look for "Pending" or "Running" status
- Wait for completion before accessing artifacts
Tekton pipeline failures?
Advanced: CI Search
For historical job searches:
git clone https://github.com/openshift/ci-search.git
References
CI Configuration Files
Prow Configuration (in openshift/release repo):
- Location:
ci-operator/config/openshift/ocm-agent-operator/openshift-ocm-agent-operator-master.yaml
- Update process: Submit PR to openshift/release repository
- Auto-generated jobs in:
ci-operator/jobs/openshift/ocm-agent-operator/
Tekton Pipelines (in this repo):
- Location:
.tekton/ directory
- Files:
ocm-agent-operator-pull-request.yaml - Main PR pipeline
ocm-agent-operator-push.yaml - Post-merge pipeline
ocm-agent-operator-e2e-pull-request.yaml - E2E testing
ocm-agent-operator-pko-pull-request.yaml - PKO validation
- Triggered by: Pipelines as Code (via Tekton)
- Uses: Boilerplate docker-build-oci-ta pipeline from openshift/boilerplate
Coverage Reporting
This repository uses Codecov for coverage tracking:
- Secret:
ocm-agent-operator-codecov-token (stored in Prow)
- Generate coverage locally:
make coverage
- Coverage runs on PRs and post-merge (
publish-coverage)
- Dashboard: Check Codecov for ocm-agent-operator
Integration with Other Skills
- Use with test-agent to compare local test results with CI
- Use with ci-agent to validate CI configuration
- Use with lint-agent when investigating lint failures in CI
- Use with security-agent when investigating pre-commit hook failures