Skip to content

sync_test.go is intermittently failing sometimes #1443

@rohanKanojia

Description

@rohanKanojia

Description

I've seen this intermittent failure multiple times in CI and locally as well.

=== RUN   TestMergeConfigLooksAtAllFields
    sync_test.go:443: 
        	Error Trace:	/home/rohan/go/src/github.com/devfile/devworkspace-operator/pkg/config/sync_test.go:443
        	Error:      	Not equal: 
        	            	expected: &v1alpha1.OperatorConfiguration{Routing:(*v1alpha1.RoutingConfig)(0xc0002e2c00), Workspace:(*v1alpha1.WorkspaceConfig)(0xc00013c400), Webhook:(*v1alpha1.WebhookConfig)(0xc0007d6ea0), EnableExperimentalFeatures:(*bool)(0xc0007ebbb0)}
        	            	actual  : &v1alpha1.OperatorConfiguration{Routing:(*v1alpha1.RoutingConfig)(0xc0007d6f60), Workspace:(*v1alpha1.WorkspaceConfig)(0xc00013d300), Webhook:(*v1alpha1.WebhookConfig)(0xc0007d6f30), EnableExperimentalFeatures:(*bool)(0xc0007ebbb0)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -5,3 +5,3 @@
        	            	   ProxyConfig: (*v1alpha1.Proxy)({
        	            	-   HttpProxy: (*string)(""),
        	            	+   HttpProxy: (*string)(<nil>),
        	            	    HttpsProxy: (*string)((len=10) "ó烦Ɣ^=q"),
        	Test:       	TestMergeConfigLooksAtAllFields
        	Messages:   	merging configs should merge all fields
--- FAIL: TestMergeConfigLooksAtAllFields (0.04s)

Expected :&v1alpha1.OperatorConfiguration{Routing:(*v1alpha1.RoutingConfig)(0xc0002e2c00), Workspace:(*v1alpha1.WorkspaceConfig)(0xc00013c400), Webhook:(*v1alpha1.WebhookConfig)(0xc0007d6ea0), EnableExperimentalFeatures:(*bool)(0xc0007ebbb0)}
Actual   :&v1alpha1.OperatorConfiguration{Routing:(*v1alpha1.RoutingConfig)(0xc0007d6f60), Workspace:(*v1alpha1.WorkspaceConfig)(0xc00013d300), Webhook:(*v1alpha1.WebhookConfig)(0xc0007d6f30), EnableExperimentalFeatures:(*bool)(0xc0007ebbb0)}
<Click to see difference>


FAIL

We need to figure out why it's happening (probably the fuzz library is creating some unexpected object).

Acceptance Criteria

  • sync_test.go does not fail intermittently

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions