Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
WalkthroughThis PR adds a reusable "Shared Operator E2E" GitHub Actions workflow and integrates two new jobs, planner-copy-to-acr and deploy-test-operator-gpu0, into pr.yaml and post-merge-ci.yml, extending gating conditions and updating status-check/cleanup job dependency lists accordingly. ChangesOperator E2E Workflow Integration
Estimated code review effort: 3 (Moderate) | ~25 minutes Related PRs: None specified. Suggested labels: ci, github-actions, operator Suggested reviewers: None specified. Poem 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/post-merge-ci.yml (1)
788-788: 🔒 Security & Privacy | 🔵 Trivial | 💤 Low value
secrets: inheritflagged by zizmor (least-privilege).Both new reusable-workflow calls unconditionally inherit all caller secrets rather than passing only what's required (
AZURE_ACR_HOSTNAME,HF_TOKEN, etc. for the E2E workflow; cloud secrets for the copy workflow). This is a static-analysis-flagged posture gap rather than an active vulnerability, and appears consistent with other jobs likely already using this pattern in the file.Also applies to: 862-862
🤖 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/post-merge-ci.yml at line 788, The reusable workflow invocations are inheriting all caller secrets instead of only the specific ones needed, which triggers the least-privilege warning. Update the calls to the E2E and shared-copy reusable workflows so they explicitly pass only the required secrets (for example, the E2E workflow’s Azure/HF credentials and the copy workflow’s cloud secrets) rather than using blanket secret inheritance. Use the reusable-workflow call sites in the workflow file to keep the fix scoped to those entries.Source: Linters/SAST tools
🤖 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 @.github/workflows/shared-operator-e2e.yml:
- Around line 39-40: The Checkout code step in the shared operator E2E workflow
is missing the same credential-hardening used elsewhere. Update the
actions/checkout usage in this workflow to set persist-credentials to false,
since the job only reads code and runs local actions/kubectl and does not need
git write access; use the existing Checkout code step as the location to apply
the change.
---
Nitpick comments:
In @.github/workflows/post-merge-ci.yml:
- Line 788: The reusable workflow invocations are inheriting all caller secrets
instead of only the specific ones needed, which triggers the least-privilege
warning. Update the calls to the E2E and shared-copy reusable workflows so they
explicitly pass only the required secrets (for example, the E2E workflow’s
Azure/HF credentials and the copy workflow’s cloud secrets) rather than using
blanket secret inheritance. Use the reusable-workflow call sites in the workflow
file to keep the fix scoped to those entries.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 879d9c0a-1708-4b48-9d57-68d4c6b00267
📒 Files selected for processing (3)
.github/workflows/post-merge-ci.yml.github/workflows/pr.yaml.github/workflows/shared-operator-e2e.yml
|
/ok to test cd78132 |
|
/ok to test 1437bfc |
1437bfc to
8f624a9
Compare
|
/ok to test 8f624a9 |
|
/ok to test da92e5d |
da92e5d to
1c6bf97
Compare
|
/ok to test 1c6bf97 |
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
1c6bf97 to
e71eedd
Compare
|
/ok to test e71eedd |
| if: | | ||
| needs.changed-files.outputs.core == 'true' || | ||
| needs.changed-files.outputs.planner == 'true' || | ||
| needs.changed-files.outputs.operator == 'true' |
|
|
||
| - name: Self-bootstrap vCluster (rerun) | ||
| if: steps.vcluster-check.outputs.exists != 'true' | ||
| uses: ./.github/actions/setup-dynamo-operator |
There was a problem hiding this comment.
isn't this already done? I thought we install into an existing vcluster?
| verbs: ["get"] | ||
| - apiGroups: [""] | ||
| resources: ["nodes"] | ||
| verbs: ["get", "list", "watch"] |
There was a problem hiding this comment.
For the reviewer: this is directly related to enabling the live gpu_0 operator E2E coverage. The new lane exposed that the operator could not bind the profiling ClusterRole: it requested nodes get/list/watch, while the operator service account had only nodes/get with GPU discovery disabled, so Kubernetes rejected the RoleBinding as privilege escalation. The profiling job does not access nodes, so removing this stale permission is required for the E2E lane to pass.
| content: | ||
| apiGroups: [""] | ||
| resources: ["nodes"] | ||
| verbs: ["get", "list", "watch"] |
There was a problem hiding this comment.
For the reviewer: this is the regression coverage for the RBAC failure above. The stale nodes rule prevented the operator from creating the profiling RoleBinding, so this assertion ensures that the unnecessary cluster-scoped permission cannot be reintroduced and break the operator E2E lane again.
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
|
/ok to test 0642a5c |
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
|
/ok to test e8ed856 |
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
|
|
||
| jobs: | ||
| deploy-test-operator-e2e: | ||
| # TODO(sttts): Rework the GPU operator tests to run in CI too; today this lane only covers GPU-free specs. |
There was a problem hiding this comment.
das gehört dahin, wo wir gpu0 als filter setzen im test
|
/ok to test 1d27574 |
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
|
/ok to test e040c96 |
|
Superseded by #11946. We are moving the DGDR live-cluster coverage into the existing |
Overview
Run the GPU-free Dynamo operator deploy E2E suite in PR and post-merge CI by reusing the deploy vCluster. The lane exercises the installed Helm chart, Kubernetes RBAC, DGDR reconciliation, profiling jobs, and cleanup without allocating GPUs.
Summary
gpu_0specs, excluding the separately labeled H100 support matrixDetails
The first live CI run caught a real chart/operator integration defect: the operator dynamically binds the profiling-job ClusterRole, but that role included
nodes get/list/watchwhile the operator service account held onlynodes getwith GPU discovery disabled. Kubernetes rejected the RoleBinding as privilege escalation. The profiling job does not perform node discovery, so this PR removes that stale permission instead of broadening the operator's access.Where should reviewer start?
.github/workflows/shared-operator-e2e.ymlfor the test selection, vCluster reuse, and diagnostics.planner-copy-to-acranddeploy-test-operator-gpu0jobs in.github/workflows/pr.yamland.github/workflows/post-merge-ci.ymlfor gating and least-privilege secrets.deploy/helm/charts/platform/components/operator/templates/profiling-job-rbac.yamland its Helm regression test for the RBAC correction.Related Issues
Validation
yqgit diff --check