Python 3.11 wheels + fudge RxD test teardown#2071
Conversation
|
Logfiles from GitLab pipeline #83144 (:white_check_mark:) have been uploaded here! Status and direct links: |
|
✔️ 741804251bd8267a59480b8fda69e60fbbf76735 -> Azure artifacts URL |
7418042 to
a299c79
Compare
|
Logfiles from GitLab pipeline #83371 (:no_entry:) have been uploaded here! Status and direct links: |
|
Logfiles from GitLab pipeline #83373 (:no_entry:) have been uploaded here! Status and direct links: |
|
✔️ 89bdef2 -> Azure artifacts URL |
|
@ramcdougal @adamjhn are you OK with this workaround? Without it, the RxD tests do not pass with Python 3.11, at least in the macOS/HomeBrew setups that are included in the https://github.com/neuronsimulator/nrn-build-ci pipelines. |
|
Logfiles from GitLab pipeline #83704 (:no_entry:) have been uploaded here! Status and direct links: |
|
Logfiles from GitLab pipeline #83718 (:white_check_mark:) have been uploaded here! Status and direct links: |
Codecov Report
@@ Coverage Diff @@
## master #2071 +/- ##
=======================================
Coverage 48.85% 48.85%
=======================================
Files 521 521
Lines 115995 115995
=======================================
Hits 56675 56675
Misses 59320 59320 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
✔️ a88537c -> Azure artifacts URL |
adamjhn
left a comment
There was a problem hiding this comment.
This workaround looks good. I am curious why garbage collection became a problem, maybe something to do with the SectionList we're using to keep track of where species are defined.
* fudge RxD test teardown for python 3.11 (disable garbage collection) * build Python 3.11 wheels. * latest numpy for latest python
* fudge RxD test teardown for python 3.11 (disable garbage collection) * build Python 3.11 wheels. * latest numpy for latest python
* fudge RxD test teardown for python 3.11 (disable garbage collection) * build Python 3.11 wheels. * latest numpy for latest python
Hopefully fixing nrn-build-ci failures with macOS, Python 3.11 and the latest pytest/pytest-cov.
It seems that the
weakrefmagic in RxD teardown is fragile and breaks with the latest versions.I did not immediately find any documented change in behaviour in 3.11, so I assume this was never guaranteed to work.
Also start building 3.11 wheels in this repository.
Example failures:
Example Python traceback of the error:
Example C++ traceback of the error:
Run with this branch but no Azure URL for the wheels (oops):