Skip to content

flake: TestWorkspaceController/add_a_shard_after_a_workspace_is_unschedulable,_expect_it_to_be_scheduled #3522

@ntnn

Description

@ntnn

Describe the bug

The test TestWorkspaceController/add_a_shard_after_a_workspace_is_unschedulable,_expect_it_to_be_scheduled has been flaking a bit recently:

    controller_test.go:171: Create a workspace without shards
    controller_test.go:171: Expect workspace to be unschedulable
    eventually.go:123: 
        	Error Trace:	/home/prow/go/src/github.com/kcp-dev/kcp/sdk/testing/helpers/eventually.go:123
        	            				/home/prow/go/src/github.com/kcp-dev/kcp/sdk/testing/helpers/eventually.go:43
        	            				/usr/local/go/src/runtime/asm_arm64.s:1223
        	Error:      	Received unexpected error:
        	            	the server is currently unable to handle the request (get workspaces.tenancy.kcp.io steve)
        	Test:       	TestWorkspaceController/add_a_shard_after_a_workspace_is_unschedulable,_expect_it_to_be_scheduled
        	Messages:   	Error fetching object
    controller_test.go:171: 
        	Error Trace:	/home/prow/go/src/github.com/kcp-dev/kcp/sdk/testing/helpers/eventually.go:40
        	            				/home/prow/go/src/github.com/kcp-dev/kcp/sdk/testing/helpers/eventually.go:121
        	            				/home/prow/go/src/github.com/kcp-dev/kcp/test/e2e/reconciler/workspace/controller_test.go:111
        	            				/home/prow/go/src/github.com/kcp-dev/kcp/test/e2e/reconciler/workspace/controller_test.go:171
        	Error:      	Condition never satisfied
        	Test:       	TestWorkspaceController/add_a_shard_after_a_workspace_is_unschedulable,_expect_it_to_be_scheduled
    fixture.go:525: 
        	Error Trace:	/home/prow/go/src/github.com/kcp-dev/kcp/sdk/testing/server/fixture.go:525
        	            				/usr/local/go/src/testing/testing.go:1211
        	            				/usr/local/go/src/testing/testing.go:1445
        	            				/usr/local/go/src/testing/testing.go:1786
        	            				/usr/local/go/src/runtime/panic.go:636
        	            				/usr/local/go/src/testing/testing.go:1041
        	            				/home/prow/go/src/github.com/kcp-dev/kcp/sdk/testing/helpers/eventually.go:40
        	            				/home/prow/go/src/github.com/kcp-dev/kcp/sdk/testing/helpers/eventually.go:121
        	            				/home/prow/go/src/github.com/kcp-dev/kcp/test/e2e/reconciler/workspace/controller_test.go:111
        	            				/home/prow/go/src/github.com/kcp-dev/kcp/test/e2e/reconciler/workspace/controller_test.go:171
        	Error:      	Received unexpected error:
        	            	the server is currently unable to handle the request (get workspaces.tenancy.kcp.io steve)
        	Test:       	TestWorkspaceController/add_a_shard_after_a_workspace_is_unschedulable,_expect_it_to_be_scheduled
        	Messages:   	error fetching artifact
    fixture.go:145: Gathering metrics from kcp servers...

Just from my recent issues:

I know I have seen this fail more often but didn't comment it so I can't find it now.

The test has been flaking before:

Steps To Reproduce

Expected Behaviour

Not flaking

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.kind/flakeCategorizes issue or PR as related to a flaky test.

    Type

    No type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions