[WIP] OCPBUGS-78576: fix vgs tests flaky#30892
Conversation
Signed-off-by: Penghao <pewang@redhat.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@Phaow: This pull request references Jira Issue OCPBUGS-78576, which is valid. 3 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughUpdates Kubernetes module dependencies in go.mod by replacing the kubernetes module mapping and adding new k8s sample component directives. Reorders test names in a retry handler slice. Updates container image references and adds new hostpathplugin image tags in a generated configuration file. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.3)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment Tip CodeRabbit can generate a title for your PR based on the changes.Add |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Phaow The full list of commands accepted by this bot can be found 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@go.mod`:
- Line 447: The go.mod replace for module k8s.io/kubernetes was changed to
github.com/Phaow/kubernetes v1.23.0-alpha..., causing a mismatch with the
OpenShift-curated Kubernetes modules; revert the replace for k8s.io/kubernetes
back to the OpenShift-managed version (the same target used by other k8s
modules, e.g., v0.0.0-20251017123720-96593f323733) or remove the replace
entirely so the dependency graph uses the openshift/staging imports, and if this
change is intentionally temporary add a brief inline comment in go.mod
explaining the reason and a rollback timeline referencing the replace of
k8s.io/kubernetes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a373feea-30a7-4f4d-a2d1-71abe4df9931
⛔ Files ignored due to path filters (6)
go.sumis excluded by!**/*.sumvendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-snapshotter/volume-group-snapshots/csi-hostpath-plugin.yamlis excluded by!vendor/**,!**/vendor/**vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-plugin.yamlis excluded by!vendor/**,!**/vendor/**vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver.yamlis excluded by!vendor/**,!**/vendor/**vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-proxy.yamlis excluded by!vendor/**,!**/vendor/**vendor/modules.txtis excluded by!vendor/**,!**/vendor/**
📒 Files selected for processing (3)
go.modpkg/test/ginkgo/retries.gotest/extended/util/image/zz_generated.txt
| k8s.io/kubectl => github.com/openshift/kubernetes/staging/src/k8s.io/kubectl v0.0.0-20251017123720-96593f323733 | ||
| k8s.io/kubelet => github.com/openshift/kubernetes/staging/src/k8s.io/kubelet v0.0.0-20251017123720-96593f323733 | ||
| k8s.io/kubernetes => github.com/openshift/kubernetes v1.30.1-0.20251017123720-96593f323733 | ||
| k8s.io/kubernetes => github.com/Phaow/kubernetes v1.23.0-alpha.0.0.20260317065438-4b78b14a34da |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== k8s-related replace directives =="
awk '/^replace \(/,/^\)/ {print NR ":" $0}' go.mod | rg -n 'k8s\.io/(kubernetes|api|apimachinery|apiserver|client-go|sample-apiserver|sample-cli-plugin|sample-controller)'
echo
echo "== direct k8s module requirements =="
rg -n '^\s*k8s\.io/(api|apimachinery|apiserver|client-go|kubernetes)\s+v' go.modRepository: openshift/origin
Length of output: 1444
Replace k8s.io/kubernetes mapping back to the OpenShift-managed version.
Line 447 replaces k8s.io/kubernetes with github.com/Phaow/kubernetes v1.23.0-alpha..., which is isolated from the rest of the Kubernetes module stack. All other k8s modules (api, apimachinery, apiserver, client-go, etc.) point to github.com/openshift/kubernetes/staging/ with version v0.0.0-20251017123720-96593f323733. The outlier also introduces a version regression: v1.23.0-alpha vs. the direct requirement v1.34.1 for k8s.io/kubernetes (11+ minor versions behind).
This divergence from the curated OpenShift ecosystem creates supply-chain and compatibility risk. If temporary for flake mitigation, document the exception with a clear rollback timeline.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@go.mod` at line 447, The go.mod replace for module k8s.io/kubernetes was
changed to github.com/Phaow/kubernetes v1.23.0-alpha..., causing a mismatch with
the OpenShift-curated Kubernetes modules; revert the replace for
k8s.io/kubernetes back to the OpenShift-managed version (the same target used by
other k8s modules, e.g., v0.0.0-20251017123720-96593f323733) or remove the
replace entirely so the dependency graph uses the openshift/staging imports, and
if this change is intentionally temporary add a brief inline comment in go.mod
explaining the reason and a rollback timeline referencing the replace of
k8s.io/kubernetes.
|
@Phaow: The following test failed, say
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. |
test/extended/util/image/zz_generated.txtand remove the invalid vgs test from retryTestNames(revert NO-JIRA: Allow group snapshot tests to be re-tried #30607).