gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Race condition happens when running the unit test

Open jenting opened this issue 2 years ago • 2 comments

Bug description

Running the following components unit test with the -race flag, it detects the race condition happens.

  • common-go
  • image-builder-mk3
  • supervisor
  • ws-manager

The component content-service run unit test with -race flag failed, but the reason is not related to the race condition detected.

Steps to reproduce

cd components/common-go
cd components/image-builder-mk3
cd components/supervisor
cd components/ws-manager

go test -covermode atomic ./... -count=1 -v -race
cd components/content-service

go test -covermode atomic ./... -count=1 -v -race

Workspace affected

N/A

Expected behavior

  • No race condition detected.
  • We should consider enabling -race flag when running the werft build.

Example repository

N/A

Anything else?

N/A

jenting avatar Jun 15 '22 08:06 jenting

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 02:09 stale[bot]

/not-stale

jenting avatar Sep 21 '22 02:09 jenting

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 20 '22 20:12 stale[bot]