Moved the script to generate prowjobs from GDocs to github#79873
Moved the script to generate prowjobs from GDocs to github#79873hector-vido wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughNew Bash script ChangesProwJobs manifest generation script
Sequence Diagram(s)sequenceDiagram
participant User as CLI
participant Script as hack/make-pjs.sh
participant Git as git
participant Podman
participant MKPJ as mkpj_container
participant YQJQ as yq/jq
participant FS as OutputDir
User->>Script: invoke with env vars
Script->>Git: git ls-remote ORG/REPO BRANCH
Script->>Podman: run mkpj_container render <test>
Podman->>MKPJ: render job YAML
MKPJ-->>YQJQ: raw manifest
YQJQ-->>FS: set .status/.spec -> write per-test YAML
Script-->>User: exit (files written)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@hack/make-pjs.sh`:
- Around line 39-45: The bug is that the refs variable retains its value across
iterations, corrupting periodic tests; inside the loop that iterates over tests
in hack/make-pjs.sh (the block that references the test variable), ensure refs
is initialized/reset at the start of each iteration (e.g., set refs to an empty
string or unset refs) before the conditional that assigns it for non-periodic
tests so that periodic tests do not inherit a previous .spec.refs.pulls
modification.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 2755277f-9fa4-4413-95da-2367e82fd93d
📒 Files selected for processing (1)
hack/make-pjs.sh
4ea1745 to
994f6ac
Compare
|
@hector-vido, Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
994f6ac to
ab0e709
Compare
|
[REHEARSALNOTIFIER] Note: If this PR includes changes to step registry files ( Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danilo-gemoli, droslean, hector-vido The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@hector-vido: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary by CodeRabbit
This PR adds hack/make-pjs.sh, a new Bash helper to generate ProwJob manifests from the openshift/release repository for running tests on CI/build clusters. It targets maintainers/operators who need to quickly produce triggered, cluster-targeted ProwJob YAMLs (for rehearsals or manual injection) from existing ci-operator/job and ci-operator/config sources.
What changed (practical terms)
Defaults, requirements and failure modes
Notable implementation details
Impact