Skip to content
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

Clean up deep copy needed for UpdateStatefulSet #106616

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

mattcary
Copy link
Contributor

@mattcary mattcary commented Nov 23, 2021

/kind failing-test
/assign @liggitt
/sig apps

xref #106615

None

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. sig/apps Categorizes an issue or PR as relevant to SIG Apps. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 23, 2021
@k8s-ci-robot
Copy link
Contributor

@mattcary: This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-priority Indicates a PR lacks a `priority/foo` label and requires one. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 23, 2021
@mattcary
Copy link
Contributor Author

I wasn't able to reproduce the race locally, but I'm optimistic this is the problem.

Change-Id: Id732358183d682d1a945cfee56f83bcaac0d7c31
@mattcary
Copy link
Contributor Author

/retest

@liggitt
Copy link
Member

liggitt commented Nov 23, 2021

/lgtm
/approve

this fix looks fine, but doesn't resolve all the flakes in the AutoDeletePVC unit test (I got a flake in the first ~25 runs running on this branch using stress):

go test -race -c ./pkg/controller/statefulset/
stress ./statefulset.test 
...
--- FAIL: TestStatefulSetControl (15.48s)
    --- FAIL: TestStatefulSetControl/CreatesPods/Monotonic/Retain/StatefulSetAutoDeletePVCEnabled (0.01s)
        stateful_set_control_test.go:196: Failed to turn up StatefulSet : claim for Pod foo-0 was not created
        stateful_set_control_test.go:204: Failed to scale statefulset to 3 replicas
        stateful_set_control_test.go:207: Failed to set ReadyReplicas correctly
        stateful_set_control_test.go:210: Failed to set UpdatedReplicas correctly

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 23, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt, mattcary

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 23, 2021
@liggitt liggitt added area/deflake Issues or PRs related to deflaking kubernetes tests priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. labels Nov 23, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-priority Indicates a PR lacks a `priority/foo` label and requires one. label Nov 23, 2021
@liggitt liggitt added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Nov 23, 2021
@liggitt liggitt added this to the v1.23 milestone Nov 23, 2021
@liggitt
Copy link
Member

liggitt commented Nov 23, 2021

tagging into milestone to fix CI regression

@k8s-ci-robot k8s-ci-robot merged commit a5622f3 into kubernetes:master Nov 23, 2021
@mattcary
Copy link
Contributor Author

/lgtm /approve

this fix looks fine, but doesn't resolve all the flakes in the AutoDeletePVC unit test (I got a flake in the first ~25 runs running on this branch using stress):

go test -race -c ./pkg/controller/statefulset/
stress ./statefulset.test 
...
--- FAIL: TestStatefulSetControl (15.48s)
    --- FAIL: TestStatefulSetControl/CreatesPods/Monotonic/Retain/StatefulSetAutoDeletePVCEnabled (0.01s)
        stateful_set_control_test.go:196: Failed to turn up StatefulSet : claim for Pod foo-0 was not created
        stateful_set_control_test.go:204: Failed to scale statefulset to 3 replicas
        stateful_set_control_test.go:207: Failed to set ReadyReplicas correctly
        stateful_set_control_test.go:210: Failed to set UpdatedReplicas correctly

Cool, I didn't know about stress!

These look like different flakes--not a mutation detector race---so probably better to fix in another PR anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/deflake Issues or PRs related to deflaking kubernetes tests cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note-none Denotes a PR that doesn't merit a release note. sig/apps Categorizes an issue or PR as relevant to SIG Apps. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants