-
Notifications
You must be signed in to change notification settings - Fork 98
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: skip minification tests on M1/M2 macs and run them otherwise #497
Conversation
This adds back in the minification tests to CI. These tests passed on my Debian Linux machine (intel 64-bit). See docker/for-mac#5191 for an explanation of why ptrace does not work on arm macs.
Codecov ReportBase: 83.67% // Head: 88.60% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #497 +/- ##
==========================================
+ Coverage 83.67% 88.60% +4.93%
==========================================
Files 11 11
Lines 1017 1027 +10
==========================================
+ Hits 851 910 +59
+ Misses 166 117 -49
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@satra - is this change ok with you? i use the following code to test if we are running on an m1/m2 mac: import platform
def _arm_on_mac():
"""Return True if on an ARM processor (M1/M2) in macos operating system."""
is_mac = platform.system().lower() == "darwin"
is_arm = platform.processor().lower() == "arm"
return is_mac and is_arm |
this PR should technically update, the CLI as well. see /~https://github.com/ReproNim/neurodocker/blob/master/neurodocker/cli/cli.py#L13 and also later in that file. and perhaps it should use the same function to determine if it's available. also we should consider checking if trace can be carried out inside a singularity instance with a mounted mamba+reprozip. (not for this PR). |
i added that, so |
interesting idea. how would we save the minified singularity container? perhaps we could copy the minified directories into some tarball, and then inject them into a new container? |
yup, something like that. |
@satra - ready to merge on my end. let me know if you want any other changes. |
lgtm. you can decide which PR merge should trigger a release: add if you are not planning to merge anymore PRs yet i would suggest labeling this one with release + patch and merging. |
This adds back in the minification tests to CI. These tests passed on my Debian Linux machine (intel 64-bit). See docker/for-mac#5191 for an explanation of why ptrace does not work on arm macs.