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

Data races in Argo Rollouts unit tests #3478

Closed
2 tasks done
jgwest opened this issue Mar 27, 2024 · 0 comments · Fixed by #3479
Closed
2 tasks done

Data races in Argo Rollouts unit tests #3478

jgwest opened this issue Mar 27, 2024 · 0 comments · Fixed by #3479
Assignees
Labels
bug Something isn't working

Comments

@jgwest
Copy link
Member

jgwest commented Mar 27, 2024

Checklist:

  • I've included steps to reproduce the bug.
  • I've included the version of argo rollouts.

Describe the bug

A number of data races have crept into the Argo Rollouts unit tests.

I've opened a PR which goes into details of the individual fixes

You can reproduce the issue with:

git clone [email protected]:argoproj/argo-rollouts
go test -race `go list ./... | grep -v ./test/cmd/metrics-plugin-sample`

I'll spare the full test log, but TL;DR:

--- FAIL: TestFailedToCreateProviderError (0.22s)
--- FAIL: TestWatchBlueGreenRollout (10.27s)
--- FAIL: TestRolloutControllerCallback (1.10s)
--- FAIL: TestExperimentControllerCallback (1.10s)
--- FAIL: TestCanaryRolloutScaleDownOldRs (0.24s)
--- FAIL: TestCanaryRolloutScaleDownOldRsDontScaleDownTooMuch (0.23s)
--- FAIL: TestCanaryDontScaleDownOldRsDuringInterruptedUpdate (0.24s)
--- FAIL: TestCanaryScaleDownOldRsDuringInterruptedUpdate (0.25s)
--- FAIL: TestSyncRolloutIgnoreWaitOutsideOfReconciliationPeriod (0.22s)
--- FAIL: TestReconcileOldReplicaSet (0.65s)
	--- FAIL: TestReconcileOldReplicaSet/No_pods_to_scale_down (0.21s)
	--- FAIL: TestReconcileOldReplicaSet/Clean_up_unhealthy_pods (0.22s)
--- FAIL: TestRolloutWithExperimentStep (0.48s)
	--- FAIL: TestRolloutWithExperimentStep/Experiment_Pending_-_no_WeightDestination_created (0.24s)
--- FAIL: TestReconciler_SetWeight (5.44s)
	--- FAIL: TestReconciler_SetWeight/SetWeight (0.00s)
		--- FAIL: TestReconciler_SetWeight/SetWeight/will_return_error_if_base_mapping_not_found (0.13s)
		--- FAIL: TestReconciler_SetWeight/SetWeight/will_create_multiple_canary_mappings_when_provided_multiple_base_mappings (0.13s)
		--- FAIL: TestReconciler_SetWeight/SetWeight/will_return_errors_from_all_mapping_creations (0.13s)
		--- FAIL: TestReconciler_SetWeight/SetWeight/will_return_error_if_base_mapping_defines_the_weight (0.13s)
		--- FAIL: TestReconciler_SetWeight/SetWeight/will_cleanup_canary_mapping_if_current_weight_is_zero (5.13s)
--- FAIL: TestSetHeaderRoute (0.01s)
	--- FAIL: TestSetHeaderRoute/SetHeaderRouteExprs (0.02s)
	--- FAIL: TestSetHeaderRoute/SetHeaderUpdateError (0.02s)
	--- FAIL: TestSetHeaderRoute/SetHeaderRoutePriorityWithNew#01 (0.02s)
--- FAIL: TestSetWeight (0.00s)
	--- FAIL: TestSetWeight/TraefikUpdateError (0.00s)
	--- FAIL: TestSetWeight/SetWeightWithErrorManifest (0.00s)
	--- FAIL: TestSetWeight/SetWeightWithErrorCanaryName (0.00s)
	--- FAIL: TestSetWeight/SetWeightWithErrorStableName (0.00s)
	--- FAIL: TestSetWeight/SetWeight (0.00s)
@jgwest jgwest added the bug Something isn't working label Mar 27, 2024
@jgwest jgwest self-assigned this Mar 27, 2024
zachaller pushed a commit that referenced this issue Mar 28, 2024
chore: fix unit test data races

Signed-off-by: Jonathan West <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant