Fix Numba memory corruption in CI by disabling caching#27
Conversation
Co-authored-by: deepentropy <8287111+deepentropy@users.noreply.github.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
This PR fixes a Numba-related heap corruption issue that was causing GitHub Actions workflows to crash with exit code 134 after successfully passing all 974 tests. The solution disables Numba's caching mechanism which was triggering memory corruption during process cleanup.
Key Changes:
- Added
NUMBA_DISABLE_CACHING: 1environment variable to prevent Numba from writing/reading cache files - Applied to both
testandbenchmarkjobs to ensure consistent behavior across all test runs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
GitHub Actions workflow crashes with
free(): invalid next size (fast)(exit code 134) after all 974 tests pass. This is heap corruption during Numba JIT cleanup at process exit, not a test failure.Changes
NUMBA_DISABLE_CACHING: 1env var totestandbenchmarkjobs in.github/workflows/test.ymlThis prevents Numba from writing/reading cache files that trigger the memory corruption during pytest teardown.
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.