DMSC Integration Testing

Last updated: May 27, 2026 07:22:11

Test: ingestor|bifrost|file_found_is_not_old|scicat

View job log here


instrument = 'bifrost', coda_proposal_id = '999999'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:93: in get_latest_coda_nexus_date
return get_ctime(path)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/system.py:10: in get_ctime
return datetime.fromtimestamp(path.stat().st_ctime, tz=local_timezone())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = PosixPath('/ess/raw/coda/999999/raw/coda_bifrost_999999_00026437.hdf')

def stat(self, *, follow_symlinks=True):
"""
Return the result of the stat() system call on this path, like
os.stat() does.
"""
> return os.stat(self, follow_symlinks=follow_symlinks)
E FileNotFoundError: [Errno 2] No such file or directory: '/ess/raw/coda/999999/raw/coda_bifrost_999999_00026437.hdf'

/opt/miniforge/lib/python3.12/pathlib.py:840: FileNotFoundError

View job log here


instrument = 'bifrost', coda_proposal_id = '999999'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:93: in get_latest_coda_nexus_date
return get_ctime(path)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/system.py:10: in get_ctime
return datetime.fromtimestamp(path.stat().st_ctime, tz=local_timezone())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = PosixPath('/ess/raw/coda/999999/raw/coda_bifrost_999999_00025684.hdf')

def stat(self, *, follow_symlinks=True):
"""
Return the result of the stat() system call on this path, like
os.stat() does.
"""
> return os.stat(self, follow_symlinks=follow_symlinks)
E FileNotFoundError: [Errno 2] No such file or directory: '/ess/raw/coda/999999/raw/coda_bifrost_999999_00025684.hdf'

/opt/miniforge/lib/python3.12/pathlib.py:840: FileNotFoundError