DMSC Integration Testing

Last updated: September 25, 2026 08:04:50

Test: codeshelf|odin|run_notebooks|Bragg-edge-fitting

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
------------------
from unittest.mock import patch

import easyimaging.measurement.measurement

easyimaging.measurement.measurement._is_notebook = lambda : True
------------------


#x1B[31m---------------------------------------------------------------------------#x1B[39m
#x1B[31mModuleNotFoundError#x1B[39m                       Traceback (most recent call last)
#x1B[36mCell#x1B[39m#x1B[36m #x1B[39m#x1B[32mIn[1]#x1B[39m#x1B[32m, line 3#x1B[39m
#x1B[32m      1#x1B[39m #x1B[38;5;28;01mfrom#x1B[39;00m unittest.mock #x1B[38;5;28;01mimport#x1B[39;00m patch
#x1B[32m      2#x1B[39m 
#x1B[32m----> #x1B[39m#x1B[32m3#x1B[39m #x1B[38;5;28;01mimport#x1B[39;00m easyimaging.measurement.measurement
#x1B[32m      4#x1B[39m 
#x1B[32m      5#x1B[39m easyimaging.measurement.measurement._is_notebook = #x1B[38;5;28;01mlambda#x1B[39;00m : #x1B[38;5;28;01mTrue#x1B[39;00m

#x1B[31mModuleNotFoundError#x1B[39m: No module named 'easyimaging'

.tox/codeshelf-odin/lib/python3.12/site-packages/nbclient/client.py:918: CellExecutionError
Full output
notebook = PosixPath('/home/gitlab-runner/builds/sr_srNBdt/1/dmsc-nightly/dmsc-nightly/.tox/codeshelf-odin/.pytest_cache/codeshelf/repo/src/odin/notebooks/Bragg-edge-fitting.ipynb')
run_codeshelf_notebook = <function _run_codeshelf_notebook at 0x7ffb53e28220>
tmp_path = PosixPath('/tmp/pytest-of-gitlab-runner/pytest-348/test_run_notebooks_Bragg_edge_0')

    def test_run_notebooks(
        notebook: Path, run_codeshelf_notebook: Callable, tmp_path: Path
    ):
>       run_codeshelf_notebook(notebook_path=notebook, run_path=tmp_path)

tests/codeshelf/codeshelf_test.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/codeshelf/conftest.py:138: in _run_codeshelf_notebook
    ep.preprocess(nb, {"metadata": {"path": run_path}})
.tox/codeshelf-odin/lib/python3.12/site-packages/nbconvert/preprocessors/execute.py:103: in preprocess
    self.preprocess_cell(cell, resources, index)
.tox/codeshelf-odin/lib/python3.12/site-packages/nbconvert/preprocessors/execute.py:124: in preprocess_cell
    cell = self.execute_cell(cell, index, store_history=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/codeshelf-odin/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:165: in wrapped
    return loop.run_until_complete(inner)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/miniforge/lib/python3.12/asyncio/base_events.py:687: in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
.tox/codeshelf-odin/lib/python3.12/site-packages/nbclient/client.py:1062: in async_execute_cell
    await self._check_raise_for_error(cell, cell_index, exec_reply)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <nbconvert.preprocessors.execute.ExecutePreprocessor object at 0x7ffb53f26ba0>
cell = {'cell_type': 'code', 'execution_count': 1, 'id': '3', 'metadata': {'tags': ['remove-cell'], 'execution': {'iopub.stat...tch\n\nimport easyimaging.measurement.measurement\n\neasyimaging.measurement.measurement._is_notebook = lambda : True'}
cell_index = 3
exec_reply = {'header': {'msg_id': '73f4dcc5-fb6a7f44207e744dd657fc38_766532_15', 'msg_type': 'execute_reply', 'username': 'usernam...5_2', 'msg_type': 'execute_request', 'username': 'username', 'session': 'd7a83f1f-ca7a7d7066985ed7a58d1a18', ...}, ...}

    async def _check_raise_for_error(
        self, cell: NotebookNode, cell_index: int, exec_reply: dict[str, t.Any] | None
    ) -> None:
        if exec_reply is None:
            return None
    
        exec_reply_content = exec_reply["content"]
        if exec_reply_content["status"] != "error":
            return None
    
        cell_allows_errors = (not self.force_raise_errors) and (
            self.allow_errors
            or exec_reply_content.get("ename") in self.allow_error_names
            or "raises-exception" in cell.metadata.get("tags", [])
        )
        await run_hook(
            self.on_cell_error, cell=cell, cell_index=cell_index, execute_reply=exec_reply
        )
        if not cell_allows_errors:
>           raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)
E           nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
E           ------------------
E           from unittest.mock import patch
E           
E           import easyimaging.measurement.measurement
E           
E           easyimaging.measurement.measurement._is_notebook = lambda : True
E           ------------------
E           
E           
E           #x1B[31m---------------------------------------------------------------------------#x1B[39m
E           #x1B[31mModuleNotFoundError#x1B[39m                       Traceback (most recent call last)
E           #x1B[36mCell#x1B[39m#x1B[36m #x1B[39m#x1B[32mIn[1]#x1B[39m#x1B[32m, line 3#x1B[39m
E           #x1B[32m      1#x1B[39m #x1B[38;5;28;01mfrom#x1B[39;00m unittest.mock #x1B[38;5;28;01mimport#x1B[39;00m patch
E           #x1B[32m      2#x1B[39m 
E           #x1B[32m----> #x1B[39m#x1B[32m3#x1B[39m #x1B[38;5;28;01mimport#x1B[39;00m easyimaging.measurement.measurement
E           #x1B[32m      4#x1B[39m 
E           #x1B[32m      5#x1B[39m easyimaging.measurement.measurement._is_notebook = #x1B[38;5;28;01mlambda#x1B[39;00m : #x1B[38;5;28;01mTrue#x1B[39;00m
E           
E           #x1B[31mModuleNotFoundError#x1B[39m: No module named 'easyimaging'

.tox/codeshelf-odin/lib/python3.12/site-packages/nbclient/client.py:918: CellExecutionError