cluster-api-provider-azure icon indicating copy to clipboard operation
cluster-api-provider-azure copied to clipboard

TestReconcileInboundNATRule test cases can not be run in parallel

Open jackfrancis opened this issue 3 years ago • 6 comments

/kind bug

[Before submitting an issue, have you checked the Troubleshooting Guide?]

What steps did you take and what happened: [A clear and concise description of what the bug is.]

@mboersma determined in https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/2646 that the cases in the TestReconcileInboundNATRule unit test trigger the race detector. This could be an innocuous outcome of the way those tests are setup, or it could be that refactoring the tests to enable parallel cases to run is not worth the effort; or it could mean that there is actually something worrisome happening under the hood.

Let's investigate and rule out anything worrisome.

What did you expect to happen:

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

  • cluster-api-provider-azure version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

jackfrancis avatar Dec 08 '22 23:12 jackfrancis

Is this issue fixed with PR #2646 ? If not! May i take this up? @jackfrancis

/ assign

indevi avatar Dec 12 '22 18:12 indevi

In #2646 we just commented out t.Parallel() to fix the problem. Maybe that's fine, but maybe there's something in the test itself that could be changed to allow the t.Parallel() line to be restored and have go test -race still work.

Thanks for taking a look!

/assign @ShivamTyagi12345

mboersma avatar Dec 12 '22 20:12 mboersma

Started with this issue. Apologies for the delay due to Exams, and thanks for your reply

indevi avatar Dec 16 '22 19:12 indevi

Hi @ShivamTyagi12345, thanks for taking a look at this issue! Are you still working on this as of now?

willie-yao avatar Mar 06 '23 20:03 willie-yao

@ShivamTyagi12345 are you still working on this?

dtzar avatar Aug 03 '23 16:08 dtzar

/unassign @ShivamTyagi12345

mboersma avatar Aug 10 '23 15:08 mboersma