Support building on MacOS and test in CI#219
Conversation
|
@JanosJiri would you mind trying to build ABIN and run tests on this branch? I am having trouble to make the tests pass on Github but don't know why |
I tested on my MacBook (M1, macOS Tahoe) and I was able to compile ABIN, yet all the tests failed except for two (the same as here on GitHub). ABIN produces the following error: |
|
Thanks, that was very helpful. Now most tests pass, but still something wrong with some surface hopping tests. |
I tried running the tests and this wast the error in |
There was a problem hiding this comment.
Changes in this file are purely cosmetic
|
Alright, @JanosJiri, I think things should now be working! Can you test again? In terms of PR review, please take a look at #237 first, where I've split some minor changes not related to macos. It would be also nice to test some actual interface, the easiest would probably be ORCA since you can download their MacOS arm64 binaries. But that testing can be done later when you have time. |
JanosJiri
left a comment
There was a problem hiding this comment.
Nice, it's cool to run ABIN on Mac. All the changes here look fine to me and the tests pass for macos-15 here. However, two tests do not pass on my macbook: SH_BUTCHER_PHASE and SH_RK4_PHASE. The problem appears to be in empty restart_sh.bin.diff. The binaries are different based on simple diff -q restart_sh.bin restart_sh.bin.ref but the subsequent diff -y -W 500 restart_sh.bin restart_sh.bin.ref | grep -e '|' -e '<' -e '>' > $test_file.diff produces empty file, which then breaks numdif.py.
=======================
Entering directory SH_BUTCHER_PHASE
Comparing numerical differences in file hopgeom.3.2.6.xyz.diff
Comparing numerical differences in file restart.xyz.5.diff
Comparing numerical differences in file restart.xyz.diff
Comparing numerical differences in file restart_sh.bin.diff
File 'restart_sh.bin.diff' is empty!
Comparing numerical differences in file stateall_grad.dat.diff
Comparing numerical differences in file wfcoef.dat.diff
SH_BUTCHER_PHASE FAILED
=======================
and
=======================
Entering directory SH_RK4_PHASE
Comparing numerical differences in file bkl.dat.diff
Comparing numerical differences in file restart.xyz.10.diff
Comparing numerical differences in file restart.xyz.diff
Comparing numerical differences in file restart_sh.bin.10.diff
File 'restart_sh.bin.10.diff' is empty!
Comparing numerical differences in file restart_sh.bin.diff
File 'restart_sh.bin.diff' is empty!
Comparing numerical differences in file wfcoef.dat.diff
SH_RK4_PHASE FAILED
=======================
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #219 +/- ##
==========================================
+ Coverage 78.10% 84.02% +5.91%
==========================================
Files 47 47
Lines 5938 6617 +679
Branches 668 766 +98
==========================================
+ Hits 4638 5560 +922
+ Misses 1124 858 -266
- Partials 176 199 +23
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
I've opened #239 as a follow-up to this. Going to merge since this is clearly a big improvement already. |
Changes to support MacOS:
lddnot available, ignore that errornumdiff.pyandtest.shportabletail -n 6instead oftail -6(same forhead)