Closed programatt closed 1 year ago
Merging #1164 (9953291) into develop (4908119) will decrease coverage by
4.76%
. The diff coverage is60.30%
.:exclamation: Current head 9953291 differs from pull request most recent head 402350b. Consider uploading reports for the commit 402350b to get more accurate results
@@ Coverage Diff @@
## develop #1164 +/- ##
===========================================
- Coverage 83.08% 78.32% -4.77%
===========================================
Files 86 89 +3
Lines 7425 7634 +209
Branches 635 717 +82
===========================================
- Hits 6169 5979 -190
- Misses 1083 1492 +409
+ Partials 173 163 -10
Impacted Files | Coverage Δ | |
---|---|---|
src/panoptes/pocs/camera/gphoto/remote.py | 0.00% <0.00%> (-21.57%) |
:arrow_down: |
...rc/panoptes/pocs/scheduler/observation/compound.py | 0.00% <0.00%> (ø) |
|
src/panoptes/pocs/sensor/power.py | 40.23% <0.00%> (-1.74%) |
:arrow_down: |
...rc/panoptes/pocs/state/states/default/analyzing.py | 5.88% <0.00%> (-54.12%) |
:arrow_down: |
src/panoptes/pocs/state/states/default/tracking.py | 6.66% <0.00%> (-76.67%) |
:arrow_down: |
src/panoptes/pocs/utils/cli/main.py | 0.00% <0.00%> (-70.00%) |
:arrow_down: |
src/panoptes/pocs/utils/logger.py | 100.00% <ø> (ø) |
|
src/panoptes/pocs/utils/service/power.py | 0.00% <0.00%> (-66.67%) |
:arrow_down: |
tests/test_observatory.py | 96.28% <ø> (+0.66%) |
:arrow_up: |
...rc/panoptes/pocs/state/states/default/observing.py | 14.28% <16.66%> (-61.91%) |
:arrow_down: |
... and 55 more |
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 64107a4...402350b. Read the comment docs.
@wtgee anything else needed?
@wtgee looks like the mac tests are now failing with this error
___________ ERROR collecting src/panoptes/pocs/filterwheel/libefw.py ___________
src/panoptes/pocs/filterwheel/libefw.py:12: in <module>
class EFWDriver(AbstractSDKDriver):
src/panoptes/pocs/filterwheel/libefw.py:15: in EFWDriver
_libudev = load_c_library('udev', mode=ctypes.RTLD_GLOBAL)
/usr/local/lib/python3.9/site-packages/panoptes/utils/library.py:39: in load_c_library
raise error.NotFound(f"Cound not find {name} library!")
E panoptes.utils.error.NotFound: NotFound: Cound not find udev library!
Have you seen that before? I'm guessing theres a library that needs to be added to the mac gh action image.
Better late than never?
Fixed this upstream at https://github.com/panoptes/panoptes-utils/pull/304
Update documentation for instructions on how to run tests locally on OSX. Fix conftest.py to not error when running pytest on OSX and Windows.
Description
When attempting to run pytest on my macbook, I ran into an issue on startup where the config_server throws a strange error.
Doing some searching it looks like python 3.8 on OSX changed to use spawn instead of fork for processes by default. See https://github.com/pytest-dev/pytest-flask/issues/104#issuecomment-577908228
So I modified conftest to detect the OS and change the behavior on windows and osx and the pytest command runs as expected.
Related Issue
1163
How Has This Been Tested?
The changes allowed pytest to run successfully on a mac
Screenshots (if appropriate):
n/a
Types of changes
Checklist: