CDAT / cdms

8 stars 10 forks source link

cdscan intermittent test failures #403

Closed jasonb5 closed 3 years ago

jasonb5 commented 3 years ago

We should move away from these source files and use something in sample_data. Thredds will occasionally return (No such file or directory) and cause the test to fail.

.ncopen: filename "https://dpesgf03.nccs.nasa.gov/thredds/dodsC/CREATE-IP/reanalysis/NASA-GMAO/GEOS-5/MERRA/mon/atmos/cl/cl_Amon_reanalysis_MERRA_197901-197912.nc": NetCDF: file not found
E
======================================================================
ERROR: retrieve value from cdscan
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/distiller/project/workdir/macos/miniconda/envs/nightly/lib/python3.8/site-packages/cdms2/dataset.py", line 1275, in __init__
    _fileobj_ = Cdunif.CdunifFile(path, mode)
OSError: NetCDF: file not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/distiller/project/workdir/macos/miniconda/envs/nightly/lib/python3.8/site-packages/cdms2/dataset.py", line 533, in openDataset
    file = CdmsFile(uri, mode)
  File "/Users/distiller/project/workdir/macos/miniconda/envs/nightly/lib/python3.8/site-packages/cdms2/dataset.py", line 1277, in __init__
    raise CDMSError('Cannot open file %s (%s)' % (path, err))
cdms2.error.CDMSError: Cannot open file https://dpesgf03.nccs.nasa.gov/thredds/dodsC/CREATE-IP/reanalysis/NASA-GMAO/GEOS-5/MERRA/mon/atmos/cl/cl_Amon_reanalysis_MERRA_197901-197912.nc (NetCDF: file not found)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/distiller/project/workdir/macos/cdms/tests/test_cdscan.py", line 61, in testopenFile
    f1 = cdms2.open(data_file1)
  File "/Users/distiller/project/workdir/macos/miniconda/envs/nightly/lib/python3.8/site-packages/cdms2/dataset.py", line 540, in openDataset
    raise CDMSError(msg)
cdms2.error.CDMSError: Error in DODS open of: https://dpesgf03.nccs.nasa.gov/thredds/dodsC/CREATE-IP/reanalysis/NASA-GMAO/GEOS-5/MERRA/mon/atmos/cl/cl_Amon_reanalysis_MERRA_197901-197912.nc

----------------------------------------------------------------------
Ran 2 tests in 0.609s

FAILED (errors=1)