🐛 fix: replace broken engineerd/setup-kind action in e2e workflow - #124
Conversation
Signed-off-by: Mike Ng <ming@redhat.com>
|
/assign @tesshuflower @dhaiducek @rokej |
WalkthroughThe e2e GitHub Actions workflow's kind cluster setup step is changed from using the engineerd/setup-kind action to an inline ChangesE2E Workflow Kind Setup
Estimated code review effort: 1 (Trivial) | ~3 minutes Related PRs: None found. Suggested labels: ci, e2e Suggested reviewers: None found. 🤖 A poem for the change:
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhaiducek, mikeshng 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/e2e.yml (1)
34-35: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winPin the kind version/node image for reproducibility.
The previous
engineerd/setup-kindaction configured an explicit kind version; the inline command drops any version pinning. Another workflow in this repo (test.yml) explicitly pinsversion: v0.27.0andnode_image: kindest/node:v1.31.9when creating its kind cluster. Leaving this unpinned risks inconsistent Kubernetes versions between e2e runs and drift relative to the other workflow's tested configuration.♻️ Suggested fix: pin kind/node versions
- - name: Setup kind - run: kind create cluster --wait 300s + - name: Setup kind + run: kind create cluster --image kindest/node:v1.31.9 --wait 300sAs per the relevant code snippet from
.github/workflows/test.yml(lines 140-147), the sibling workflow pins both the kind version and the node image when creating its cluster.🤖 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 @.github/workflows/e2e.yml around lines 34 - 35, The Setup kind step in the e2e workflow is missing explicit version pinning, unlike the kind setup used in test.yml. Update the kind create cluster invocation in the e2e workflow to match the pinned configuration by specifying the same kind version and node image used for reproducible clusters. Keep the change localized to the Setup kind step so the cluster creation behavior stays aligned with the existing tested setup.
🤖 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 @.github/workflows/e2e.yml:
- Around line 34-35: The Setup kind step in the e2e workflow is missing explicit
version pinning, unlike the kind setup used in test.yml. Update the kind create
cluster invocation in the e2e workflow to match the pinned configuration by
specifying the same kind version and node image used for reproducible clusters.
Keep the change localized to the Setup kind step so the cluster creation
behavior stays aligned with the existing tested setup.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4dadd93a-a3aa-40db-8fac-de6385d76044
📒 Files selected for processing (1)
.github/workflows/e2e.yml
5dbbb2f
into
open-cluster-management-io:main
| with: | ||
| version: v0.31.0 | ||
| skipClusterLogsExport: "true" | ||
| run: kind create cluster --wait 300s |
There was a problem hiding this comment.
Not strictly necessary, but in other places we specify the K8S version to be used by kind, to preserve the version being tested against (v0.31.0 in this case):
Without this you just get whatever is the default in the kind version that is packaged in the gh actions runner img.
Summary
fix: replace broken engineerd/setup-kind action in e2e workflow
Related issue(s)
#122
#123
Summary by CodeRabbit