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

Increase lock scope in ModuleCache.refresh #969

Conversation

brandonwillard
Copy link
Member

@brandonwillard brandonwillard commented May 21, 2022

Closes #858

I was able to confirm that the newly added test raises exceptions—due to the race condition—when the fix isn't in place (see here).

@brandonwillard brandonwillard self-assigned this May 21, 2022
@brandonwillard brandonwillard added bug Something isn't working C-backend labels May 21, 2022
@brandonwillard brandonwillard force-pushed the fix-ModuleCache-refresh-race-issue branch from 20f79d0 to 6e61f0e Compare May 21, 2022 00:43
@brandonwillard brandonwillard force-pushed the fix-ModuleCache-refresh-race-issue branch from 6e61f0e to f739a92 Compare May 21, 2022 01:01
@codecov
Copy link

codecov bot commented May 21, 2022

Codecov Report

Merging #969 (f739a92) into main (9ac18dc) will increase coverage by 0.05%.
The diff coverage is 41.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #969      +/-   ##
==========================================
+ Coverage   79.20%   79.25%   +0.05%     
==========================================
  Files         152      152              
  Lines       47939    47939              
  Branches    10916    10916              
==========================================
+ Hits        37969    37996      +27     
+ Misses       7464     7429      -35     
- Partials     2506     2514       +8     
Impacted Files Coverage Δ
aesara/link/c/cmodule.py 54.57% <41.05%> (+2.16%) ⬆️

@brandonwillard brandonwillard merged commit c028e38 into aesara-devs:main May 21, 2022
@brandonwillard brandonwillard deleted the fix-ModuleCache-refresh-race-issue branch May 21, 2022 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C-backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors in cache updating logic with concurrent graph compiles
1 participant