Skip to content

fix: enable race detector for test and fix all detected races#202

Merged
schollz merged 1 commit intoschollz:mainfrom
conetcloud:data-races
Sep 27, 2024
Merged

fix: enable race detector for test and fix all detected races#202
schollz merged 1 commit intoschollz:mainfrom
conetcloud:data-races

Conversation

@mxey
Copy link
Contributor

@mxey mxey commented Sep 27, 2024

virtualterm is used in the tests, but is apparently not parallel-safe by itself. Therefore use the progressbar's own lock in test code to guard access to the virtualterm.

fixes #200

virtualterm is used in the tests, but is apparently not parallel-safe
by itself. Therefore use the progressbar's own lock in test code to guard
access to the virtualterm.
@schollz
Copy link
Owner

schollz commented Sep 27, 2024

Amazing thank you!!

@schollz schollz merged commit 7b730f8 into schollz:main Sep 27, 2024
kodiakhq bot pushed a commit to cloudquery/plugin-pb-go that referenced this pull request Oct 14, 2024
…v3 to v3.16.1 (#410)" (#417)

This reverts commit b96b6da.

#### Summary

Looks like this dep update created a data race in the CLI CI so reverting it https://github.com/cloudquery/cloudquery/actions/runs/11330338120/job/31507943884?pr=19381#step:6:2468

Seems like they tried to fix it here schollz/progressbar#202 but might have missed some cases

---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data race in v3.16.0

2 participants