[release-4.21] OCPBUGS-74418: Add KMS test scenarios#844
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@gangwgr: This pull request references Jira Issue OCPBUGS-74418, which is valid. 7 validation(s) were run on this bug
Requesting review from QA contact: 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. |
|
@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: gangwgr. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. 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 kubernetes-sigs/prow repository. |
573e9c0 to
35e6e8e
Compare
|
@gangwgr these need to be fixed; I think you may need to run |
35e6e8e to
e03203f
Compare
|
/retest |
e03203f to
e0cd1a5
Compare
go.mod
Outdated
| ) | ||
|
|
||
| // PR 2131: OCPBUGS-74418 add KMS test helpers (release-4.21) | ||
| replace github.com/openshift/library-go => github.com/gangwgr/library-go v0.0.0-20260225055023-b41850fe248b |
There was a problem hiding this comment.
this needs to be updated.
/hold
|
/approve We don't need an SBAR for the TP backport. This PR matches openshift/cluster-kube-apiserver-operator#2054 and openshift/cluster-openshift-apiserver-operator#656 /assign @liouk |
|
|
||
| tests := *realPtrToTests | ||
|
|
||
| rand.Seed(time.Now().UnixNano()) |
There was a problem hiding this comment.
nit: rand.Seed() is a no-op on 1.24, which is the current go version unless I'm mistaken -- we could drop this.
There was a problem hiding this comment.
see my previous comment.
| ) | ||
|
|
||
| func TestMain(m *testing.M) { | ||
| randomizeTestOrder(m) |
There was a problem hiding this comment.
Instead of randomizing manually, I wonder whether we could leverage go's -test.shuffle -- then we wouldn't have to resort to such hacks, as they're quite fragile. Has this been considered?
There was a problem hiding this comment.
It looks like this could be replaced.
This change would not only apply specifically to the KMS tests but to all encryption tests.
Here is my proposal since this is a backport PR, let's merge it as it is, and then apply your suggestions to the master branch for all encryption tests across all repositories that use encryption.
|
|
||
| // TestKMSEncryptionOnOff tests KMS encryption on/off cycle. | ||
| // This test: | ||
| // 2. Creates a test OAuth access token (TokenOfLife) |
e0cd1a5 to
d44ddaf
Compare
d44ddaf to
e1f994b
Compare
|
/retest |
| github.com/openshift/build-machinery-go v0.0.0-20250530140348-dc5b2804eeee | ||
| github.com/openshift/client-go v0.0.0-20251015124057-db0dee36e235 | ||
| github.com/openshift/library-go v0.0.0-20251107090138-0de9712313a5 | ||
| github.com/openshift/library-go v0.0.0-20260303081410-9c30edf843c6 |
There was a problem hiding this comment.
this matches the latest commit from https://github.com/openshift/library-go/commits/release-4.21/
e1f994b to
56600da
Compare
|
/approve |
|
/hold cancel |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gangwgr, liouk, p0lyn0mial 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 |
|
@gangwgr: The following tests 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. |
|
/verified by @gangwgr |
|
@gangwgr: This PR has been marked as verified by 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. |
c9d8d3e
into
openshift:release-4.21
|
@gangwgr: Jira Issue OCPBUGS-74418: Some pull requests linked via external trackers have merged: The following pull request, linked via external tracker, has not merged:
All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-74418 has not been moved to the MODIFIED state. This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload. 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. |
|
Fix included in accepted release 4.21.0-0.nightly-2026-03-11-185944 |
Backport kms test cases to 4.21