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 macOS tests (pickle protocol 5) #1535

Merged
merged 5 commits into from
Apr 13, 2021

Conversation

epassaro
Copy link
Member

@epassaro epassaro commented Apr 13, 2021

Description

  • Install pickle5 backport via pip
  • Patch tardis/__init__.py to force the use of the backport

Motivation and Context

macOS tests failed recently due to the latest reference data update (tardis-sn/tardis-refdata#41). It was updated using a conda-solved Linux environment with python 3.8 which uses pickle protocol 5 by default (PEP 574). The macOS environment of TARDIS is tied to python 3.7 because pyne conda-forge package is not currently supported for this OS (pyne/pyne#1372), making it impossible to read files generated with the new protocol.

How Has This Been Tested?

  • Testing pipeline
  • Reference Data Comparison following these instructions
  • Other (please describe)

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • None of the above (please describe)

Checklist:

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have built the documentation on my fork following these instructions
  • I have assigned and requested two reviewers for this pull request

@andrewfullard andrewfullard self-requested a review April 13, 2021 14:51
@codecov
Copy link

codecov bot commented Apr 13, 2021

Codecov Report

Merging #1535 (f75d770) into master (b7eac7e) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1535      +/-   ##
==========================================
- Coverage   67.57%   67.57%   -0.01%     
==========================================
  Files          68       68              
  Lines        6100     6103       +3     
==========================================
+ Hits         4122     4124       +2     
- Misses       1978     1979       +1     
Impacted Files Coverage Δ
...rdis/tardis/montecarlo/montecarlo_numba/vpacket.py 17.47% <0.00%> (-0.18%) ⬇️
tardis/tardis/plasma/properties/ion_population.py 86.27% <0.00%> (+0.13%) ⬆️

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 b7eac7e...f75d770. Read the comment docs.

@epassaro epassaro marked this pull request as draft April 13, 2021 15:11
@epassaro epassaro marked this pull request as ready for review April 13, 2021 19:31
@andrewfullard andrewfullard merged commit 25a7a87 into tardis-sn:master Apr 13, 2021
atharva-2001 pushed a commit to atharva-2001/tardis that referenced this pull request Oct 1, 2021
* try to force python>=3.8

* undo - try to force python>=3.8; install pickle5

* install pickle5 (via pip)

* try to patch pickle version

* blackify
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