New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kms: use different context for server lifecycle and initial load #113955
Conversation
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Wed Nov 16 15:22:24 UTC 2022. |
} | ||
|
||
// make sure things still work at a "later" time | ||
time.Sleep(2 * time.Minute) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is going to add a big penalty 8 test-cases = 16 min, can't we do better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't intend to merge this as-is, I am trying to root cause an issue I am seeing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I was surprised , that explains it XD
6dfb548
to
c42145a
Compare
@@ -706,6 +710,20 @@ resources: | |||
if !bytes.HasPrefix(rawEnvelope, []byte(wantPrefix)) { | |||
t.Fatalf("expected secret to be prefixed with %s, but got %s", wantPrefix, rawEnvelope) | |||
} | |||
|
|||
// make sure things still work at a "later" time | |||
time.Sleep(20 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fails against master as expected:
kms_transformation_test.go:718: Failed to create test secret, error: error while writing secret: Internal error occurred: rpc error: code = Canceled desc = grpc: the client connection is closing
I1116 21:02:22.232689 2038072 controller.go:211] Shutting down kubernetes service endpoint reconciler
E1116 21:02:22.233190 2038072 controller.go:214] Unable to remove endpoints from kubernetes service: StorageError: key not found, Code: 1, Key: /b36cdd15-dfb9-493c-b494-58d6e2f9667e/registry/masterleases//127.0.0.1, ResourceVersion: 0, AdditionalErrorMsg:
I1116 21:02:22.234391 2038072 cluster_authentication_trust_controller.go:463] Shutting down cluster_authentication_trust_controller controller
I1116 21:02:22.233642 2038072 controller.go:86] Shutting down OpenAPI V3 AggregationController
--- FAIL: TestEncryptionConfigHotReloadFileWatch (101.85s)
--- FAIL: TestEncryptionConfigHotReloadFileWatch/truncate (25.35s)
--- FAIL: TestEncryptionConfigHotReloadFileWatch/deleteAndCreate (25.58s)
--- FAIL: TestEncryptionConfigHotReloadFileWatch/move (25.46s)
--- FAIL: TestEncryptionConfigHotReloadFileWatch/symLink (25.45s)
FAIL
FAIL k8s.io/kubernetes/test/integration/controlplane/transformation 102.041s
FAIL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we limit this delay/check to one of the loop iterations (maybe the first one or the last one) so we don't expand the test runtime by 20seconds*testcases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix looks good, one request on the test
@@ -706,6 +710,20 @@ resources: | |||
if !bytes.HasPrefix(rawEnvelope, []byte(wantPrefix)) { | |||
t.Fatalf("expected secret to be prefixed with %s, but got %s", wantPrefix, rawEnvelope) | |||
} | |||
|
|||
// make sure things still work at a "later" time | |||
time.Sleep(20 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we limit this delay/check to one of the loop iterations (maybe the first one or the last one) so we don't expand the test runtime by 20seconds*testcases?
/kind bug |
/triage accepted |
Signed-off-by: Monis Khan <mok@microsoft.com>
c42145a
to
cb3410e
Compare
/lgtm since this will show up as a diff between rc0 and rc1, please add a release note indicating what was fixed |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enj, liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Monis Khan mok@microsoft.com
/kind bug