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

Run thread-safety checks when Julia is using threads #387

Merged
merged 6 commits into from
Jul 9, 2022

Conversation

omus
Copy link
Member

@omus omus commented Jul 8, 2022

Digging into #386. Seems like these failures are less random than they first appeared. Running the thread tests in a separate Julia process result in stack traces being lost and only allow for speculative debugging. By enabling threads on the CI and only running the tests when threads are enabled we should be able to get useful information to address the root of the problem.

@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2022

Codecov Report

Merging #387 (a7ff9f8) into master (bab4798) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #387   +/-   ##
=======================================
  Coverage   95.12%   95.12%           
=======================================
  Files          35       35           
  Lines        1743     1743           
=======================================
  Hits         1658     1658           
  Misses         85       85           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bab4798...a7ff9f8. Read the comment docs.

@omus omus marked this pull request as ready for review July 8, 2022 21:01
@omus
Copy link
Member Author

omus commented Jul 9, 2022

I've subverted the thread-safe cache to validate that these thread-safety tests still fail with this change.

@omus
Copy link
Member Author

omus commented Jul 9, 2022

Tests still pass even without the thread-safe cache. I have managed to produce a thread-safety failure locally so I think the best way to proceed is to merge this PR (with the proper thread-safe cache) and hopefully I can get some additional information in regards to #386

@omus omus force-pushed the cv/thread-test-investigation branch from 005380e to 325d900 Compare July 9, 2022 00:59
@omus omus merged commit 4cae0ca into master Jul 9, 2022
@omus omus deleted the cv/thread-test-investigation branch July 9, 2022 01:31
kpamnany pushed a commit to RelationalAI-oss/TimeZones.jl that referenced this pull request May 5, 2023
* Run thread-safety checks when Julia is using threads

* Use 8-threads specifically

* Reset cache for thread-safety checks
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.

2 participants