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

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

Merged
merged 1 commit into from
Sep 27, 2024

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
1 check passed
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