Problems interacting with 'moto' package to mock S3 filesystems #1074
Labels
bug
Something isn't working
Data Servers
Issues with remote data servers (SPDF, MMS, MAVEN, JAXA, etc)
heliocloud
MAVEN
python
Issues involving Python and Python-related tools outside of pyspedas
QA/Testing
One of the MAVEN uri_tests is consistently failing, and I'm not sure why.
This test loads a bunch of MAVEN orbit files from NAIF, merges them into a single file, then reads the merged file to map orbit numbers to dates (eventually requesting mag data for a time range specified as orbit numbers).
I'm seeing different sorts of failures on Github (ubuntu, Python 3.12) and my laptop (Mac M2, Python 3.9).
On Github, the merge_orbit_files routine seems to stall partway through:
From the test log:
It seems to hang while reading the last listed orbit file (which is probably about halfway through the list). Nothing else happens after "ERROR" is printed, until Github kills the action after 6 hours of elapsed time.
On my Mac, the symptom is slightly different. It appears to make it though the complete list of orbit files to make the merged file, but
then while trying to read it, it's apparently empty.
As far as I can tell stepping through with a debugger, the merged_maven_orbits.orb file appears to be empty when it's opened in orbit_time.py:
If I set a breakpoint just after it enters the "with fileobj as f" block, and do
content=f.read()
at the console, I get an empty string.
This all works fine when not using an S3 url for local_data_dir.
The text was updated successfully, but these errors were encountered: