Infra migration refactor - #169
Conversation
📝 WalkthroughWalkthroughAdds a co-scheduling annotation to the nightly pipeline, marks multiple run-tests* tasks as onError: continue, removes many step-level computeResources.limits, adjusts specific requests/timeouts, adds TZ for nightly-image-date, and reorganises kubeconfig placement in kubectl-login. ChangesTekton resource and runtime configuration updates
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tasks/test/run-tests.yaml (1)
43-43: ⚡ Quick winParameterise memory request for heavier test targets.
Hard-coding
1Gifor all runs risks flakiness/OOM on heavier targets; consider a task param (default1Gi) so nightly can raise memory formulticluster/disruptiveruns without editing the Task.As per coding guidelines, "Make target execution in test tasks must support the following targets:
kuadrant(Service Protection tests),authorino-standalone(Standalone Authorino tests),multicluster(Multi-cluster tests),dnstls(DNSPolicy and TLSPolicy tests), anddisruptive(Disruptive tests)".🤖 Prompt for 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. In `@tasks/test/run-tests.yaml` at line 43, The task currently hard-codes "memory: 1Gi"; add a Task param (e.g., name: memory, default: "1Gi") and replace the literal with the param reference (e.g., use $(params.memory)) so callers can override memory for heavy targets (multicluster/disruptive) without editing the Task; update the Task's params list and any documentation/comment to mention default "1Gi" and that nightly runs should override $(params.memory) for heavier targets like multicluster and disruptive.
🤖 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.
Nitpick comments:
In `@tasks/test/run-tests.yaml`:
- Line 43: The task currently hard-codes "memory: 1Gi"; add a Task param (e.g.,
name: memory, default: "1Gi") and replace the literal with the param reference
(e.g., use $(params.memory)) so callers can override memory for heavy targets
(multicluster/disruptive) without editing the Task; update the Task's params
list and any documentation/comment to mention default "1Gi" and that nightly
runs should override $(params.memory) for heavier targets like multicluster and
disruptive.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 41ebfd27-a4dc-449b-80b0-30155a8417b2
📒 Files selected for processing (35)
pipelines/test/nightly/pipeline.yamltasks/deploy/check-image-existence.yamltasks/deploy/nightly-image-date.yamltasks/infra/cluster-secret-cleanup.yamltasks/infra/delete-aro.yamltasks/infra/delete-ocp-aws.yamltasks/infra/delete-osd.yamltasks/infra/delete-rosa.yamltasks/infra/do-custom-updates.yamltasks/infra/get-cluster-id.yamltasks/infra/get-osd-credentials.yamltasks/infra/ocm-login.yamltasks/infra/operator-pod-restart.yamltasks/infra/parameter-sanity-check.yamltasks/infra/pause-pipeline.yamltasks/infra/prepare-for-rhcl-rc-install.yamltasks/infra/provision-aro.yamltasks/infra/provision-ocp-aws.yamltasks/infra/provision-osd-aws.yamltasks/infra/provision-osd-gcp.yamltasks/infra/provision-rosa.yamltasks/infra/rosa-login.yamltasks/infra/upgrade-to-latest.yamltasks/infra/wait-for-valid-certificates.yamltasks/infra/wait-till-osd-is-deleted.yamltasks/infra/wait-till-osd-is-ready.yamltasks/login/kubectl-login.yamltasks/misc/clone-rapidast-repo.yamltasks/misc/compose-config-file.yamltasks/misc/rapidast-cleanup.yamltasks/misc/rapidast-scan.yamltasks/misc/wait-for-job-to-complete.yamltasks/test/collect-info.yamltasks/test/rptool-upload.yamltasks/test/run-tests.yaml
💤 Files with no reviewable changes (8)
- tasks/infra/pause-pipeline.yaml
- tasks/misc/wait-for-job-to-complete.yaml
- tasks/deploy/check-image-existence.yaml
- tasks/deploy/nightly-image-date.yaml
- tasks/infra/do-custom-updates.yaml
- tasks/test/rptool-upload.yaml
- tasks/test/collect-info.yaml
- tasks/misc/clone-rapidast-repo.yaml
Signed-off-by: averevki <sandyverevkin@gmail.com>
Changes summary
pipelinesascode.tekton.dev/coschedule: workspacesannotation on nightly pipeline, hardcoding tasks coscheduling for nightly pipelines as it is not possible to configure globally on the new tenantonError: continueon nightly testing tasks, ensuring pipeline continue running even if one of the targets failLimitRangeCR on the new tenant, and on the existing ocp clusters before the migration happens:Summary by CodeRabbit
New Features
Bug Fixes
Chores