Table of Contents
Test Report
View CI Run 2163 | Commit ace89a5
🧪 Test Report
Generated on 2025-08-12 19:23:58 CEST
🧾 General Info
- duration: 44.872944831848145
- root: /workspace/tligui_y/slic
- environment: {}
📋 Summary
- Passed: 21
- Failed: 4
- Total: 25
- Collected: 25
🔎 Tests
✅ Passed (21)
-
📄 test_utils_reprate.py
↳ Function: test_get_beamline
-
✅ Test 1
params: instrument="alvra", expected_beamline="aramis"📌 Runtime Parameters
params: instrument: alvra expected_beamline: aramis id: alvra-aramis📌 Setup phase
duration:
0.0005425852723419666outcome:
passed📌 Call phase
duration:
0.00016657821834087372outcome:
passed📌 Teardown phase
duration:
0.00022854609414935112outcome:
passed -
✅ Test 2
params: instrument="bernina", expected_beamline="aramis"📌 Runtime Parameters
params: instrument: bernina expected_beamline: aramis id: bernina-aramis📌 Setup phase
duration:
0.00022546574473381042outcome:
passed📌 Call phase
duration:
0.00013902969658374786outcome:
passed📌 Teardown phase
duration:
0.0001435806043446064outcome:
passed -
✅ Test 3
params: instrument="cristallina", expected_beamline="aramis"📌 Runtime Parameters
params: instrument: cristallina expected_beamline: aramis id: cristallina-aramis📌 Setup phase
duration:
0.0002085934393107891outcome:
passed📌 Call phase
duration:
0.00012656813487410545outcome:
passed📌 Teardown phase
duration:
0.00012340117245912552outcome:
passed -
✅ Test 4
params: instrument="diavolezza", expected_beamline="athos"📌 Runtime Parameters
params: instrument: diavolezza expected_beamline: athos id: diavolezza-athos📌 Setup phase
duration:
0.00019876286387443542outcome:
passed📌 Call phase
duration:
0.0001279790885746479outcome:
passed📌 Teardown phase
duration:
0.00012334901839494705outcome:
passed -
✅ Test 5
params: instrument="maloja", expected_beamline="athos"📌 Runtime Parameters
params: instrument: maloja expected_beamline: athos id: maloja-athos📌 Setup phase
duration:
0.00020426325500011444outcome:
passed📌 Call phase
duration:
0.00012485403567552567outcome:
passed📌 Teardown phase
duration:
0.0001268899068236351outcome:
passed -
✅ Test 6
params: instrument="furka", expected_beamline="athos"📌 Runtime Parameters
params: instrument: furka expected_beamline: athos id: furka-athos📌 Setup phase
duration:
0.0002003130502998829outcome:
passed📌 Call phase
duration:
0.00012563727796077728outcome:
passed📌 Teardown phase
duration:
0.00012709805741906166outcome:
passed
↳ Function: test_infer_beamline_from_ip
-
✅ Test 8
params: ip="129.129.242", expected_instrument="alvra"📌 Runtime Parameters
params: ip: 129.129.242 expected_instrument: alvra id: 129.129.242-alvra📌 Setup phase
duration:
0.0002761688083410263outcome:
passed📌 Call phase
duration:
0.0008735149167478085outcome:
passed📌 Teardown phase
duration:
0.0001585269346833229outcome:
passed -
✅ Test 9
params: ip="129.129.243", expected_instrument="bernina"📌 Runtime Parameters
params: ip: 129.129.243 expected_instrument: bernina id: 129.129.243-bernina📌 Setup phase
duration:
0.00023086834698915482outcome:
passed📌 Call phase
duration:
0.0008527729660272598outcome:
passed📌 Teardown phase
duration:
0.00015103677287697792outcome:
passed -
✅ Test 10
params: ip="129.129.244", expected_instrument="cristallina"📌 Runtime Parameters
params: ip: 129.129.244 expected_instrument: cristallina id: 129.129.244-cristallina📌 Setup phase
duration:
0.00023378105834126472outcome:
passed📌 Call phase
duration:
0.0007495591416954994outcome:
passed📌 Teardown phase
duration:
0.00015173805877566338outcome:
passed -
✅ Test 11
params: ip="129.129.245", expected_instrument="diavolezza"📌 Runtime Parameters
params: ip: 129.129.245 expected_instrument: diavolezza id: 129.129.245-diavolezza📌 Setup phase
duration:
0.00022991979494690895outcome:
passed📌 Call phase
duration:
0.0008368790149688721outcome:
passed📌 Teardown phase
duration:
0.00015346473082900047outcome:
passed -
✅ Test 12
params: ip="129.129.246", expected_instrument="maloja"📌 Runtime Parameters
params: ip: 129.129.246 expected_instrument: maloja id: 129.129.246-maloja📌 Setup phase
duration:
0.00021972833201289177outcome:
passed📌 Call phase
duration:
0.000764084979891777outcome:
passed📌 Teardown phase
duration:
0.00014703022316098213outcome:
passed -
✅ Test 13
params: ip="129.129.247", expected_instrument="furka"📌 Runtime Parameters
params: ip: 129.129.247 expected_instrument: furka id: 129.129.247-furka📌 Setup phase
duration:
0.00021973811089992523outcome:
passed📌 Call phase
duration:
0.0008448529988527298outcome:
passed📌 Teardown phase
duration:
0.0001523178070783615outcome:
passed
↳ Function: test_get_pvname_reprate_with_instrument_and_beamline
-
✅ Test 14
params: instrument="alvra", beamline="aramis", pvname="SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"📌 Runtime Parameters
params: instrument: alvra beamline: aramis pvname: SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB id: alvra-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB📌 Setup phase
duration:
0.00029584672302007675outcome:
passed📌 Call phase
duration:
0.00014053937047719955outcome:
passed📌 Teardown phase
duration:
0.0001445370726287365outcome:
passed -
✅ Test 15
params: instrument="bernina", beamline="aramis", pvname="SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"📌 Runtime Parameters
params: instrument: bernina beamline: aramis pvname: SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB id: bernina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB📌 Setup phase
duration:
0.0002585342153906822outcome:
passed📌 Call phase
duration:
0.0001346813514828682outcome:
passed📌 Teardown phase
duration:
0.00013738777488470078outcome:
passed -
✅ Test 16
params: instrument="cristallina", beamline="aramis", pvname="SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"📌 Runtime Parameters
params: instrument: cristallina beamline: aramis pvname: SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB id: cristallina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB📌 Setup phase
duration:
0.00023762788623571396outcome:
passed📌 Call phase
duration:
0.00012819981202483177outcome:
passed📌 Teardown phase
duration:
0.0001375991851091385outcome:
passed -
✅ Test 17
params: instrument="diavolezza", beamline="athos", pvname="SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"📌 Runtime Parameters
params: instrument: diavolezza beamline: athos pvname: SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB id: diavolezza-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB📌 Setup phase
duration:
0.0002467087469995022outcome:
passed📌 Call phase
duration:
0.00012796511873602867outcome:
passed📌 Teardown phase
duration:
0.00013333698734641075outcome:
passed -
✅ Test 18
params: instrument="maloja", beamline="athos", pvname="SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"📌 Runtime Parameters
params: instrument: maloja beamline: athos pvname: SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB id: maloja-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB📌 Setup phase
duration:
0.0002489546313881874outcome:
passed📌 Call phase
duration:
0.00013326294720172882outcome:
passed📌 Teardown phase
duration:
0.00013714097440242767outcome:
passed -
✅ Test 19
params: instrument="furka", beamline="athos", pvname="SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"📌 Runtime Parameters
params: instrument: furka beamline: athos pvname: SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB id: furka-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB📌 Setup phase
duration:
0.00023921113461256027outcome:
passed📌 Call phase
duration:
0.0001261429861187935outcome:
passed📌 Teardown phase
duration:
0.00013993168249726295outcome:
passed
↳ Function: test_invalid_instrument_or_beamline
-
✅ Test 20
📌 Setup phase
duration:
0.00010597798973321915outcome:
passed📌 Call phase
duration:
0.005559931043535471outcome:
passed📌 Teardown phase
duration:
0.00013127271085977554outcome:
passed
↳ Function: test_invalid_target_handling
-
✅ Test 23
params: invalid_target="invalid_instrument"📌 Runtime Parameters
params: invalid_target: invalid_instrument id: invalid_instrument📌 Setup phase
duration:
0.00039690127596259117outcome:
passed📌 Call phase
duration:
0.0003823786973953247outcome:
passed📌 Teardown phase
duration:
0.00016500195488333702outcome:
passed -
✅ Test 24
params: invalid_target="non_existing_beamline"📌 Runtime Parameters
params: invalid_target: non_existing_beamline id: non_existing_beamline📌 Setup phase
duration:
0.0001912647858262062outcome:
passed📌 Call phase
duration:
0.0002080039121210575outcome:
passed📌 Teardown phase
duration:
0.00011948077008128166outcome:
passed
-
❌ Failed (4)
-
📄 test_utils_reprate.py
↳ Function: test_get_pvname_reprate_for_inferred_beamline
-
❌ Test 7
📌 Setup phase
duration:
0.00010665273293852806outcome:
passed📌 Call phase
duration:
0.001432707067579031outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_reprate.py lineno: 28 message: AssertionError: assert None == 'alvra'traceback:
- path: tests/test_utils_reprate.py lineno: 28 message: AssertionErrorlongrepr:
def test_get_pvname_reprate_for_inferred_beamline(): """Test the PV name retrieval when using inferred beamline based on IP address.""" # Mock the socket to simulate an IP address with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value="129.129.242"): beamline = infer_beamline() pvname = get_pvname_reprate(instrument=None, beamline=beamline) > assert pvname == "alvra" E AssertionError: assert None == 'alvra' tests/test_utils_reprate.py:28: AssertionError📌 Teardown phase
duration:
0.00020276010036468506outcome:
passed
↳ Function: test_monitor_value_update
-
❌ Test 21
📌 Setup phase
duration:
0.00011317199096083641outcome:
passed📌 Call phase
duration:
20.10147383902222outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_reprate.py lineno: 72 message: AssertionError: Expected 20.0, but got None assert None == 20.0 + where None = Aramis Rep. Rate: None None.valuetraceback:
- path: tests/test_utils_reprate.py lineno: 72 message: AssertionErrorlongrepr:
def test_monitor_value_update(): #Test that the RepRateMonitor correctly updates its value and units monitor = RepRateMonitor("alvra") # Example instrument # Check that the initial value is 20.0 and the units are correct > assert monitor.value == 20.0, f"Expected 20.0, but got {monitor.value}" E AssertionError: Expected 20.0, but got None E assert None == 20.0 E + where None = Aramis Rep. Rate: None None.value tests/test_utils_reprate.py:72: AssertionError📌 Teardown phase
duration:
0.0004157237708568573outcome:
passed
↳ Function: test_repr_method_with_initial_values
-
❌ Test 22
📌 Setup phase
duration:
0.00019565783441066742outcome:
passed📌 Call phase
duration:
20.001567810308188outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_reprate.py lineno: 99 message: AssertionError: Expected 'Aramis Rep. Rate: 20.0 Hz', but got 'Aramis Rep. Rate: None None' assert 'Aramis Rep. Rate: None None' == 'Aramis Rep. Rate: 20.0 Hz' - Aramis Rep. Rate: 20.0 Hz + Aramis Rep. Rate: None Nonetraceback:
- path: tests/test_utils_reprate.py lineno: 99 message: AssertionErrorlongrepr:
def test_repr_method_with_initial_values(): # Test __repr__ monitor = RepRateMonitor("alvra") # Expected initial values expected_name = "Aramis Rep. Rate" expected_value = 20.0 expected_units = "Hz" # Expected representation expected_repr = f"{expected_name}: {expected_value} {expected_units}" # Check that the __repr__ method returns the expected string > assert repr(monitor) == expected_repr, f"Expected '{expected_repr}', but got '{repr(monitor)}'" E AssertionError: Expected 'Aramis Rep. Rate: 20.0 Hz', but got 'Aramis Rep. Rate: None None' E assert 'Aramis Rep. Rate: None None' == 'Aramis Rep. Rate: 20.0 Hz' E E - Aramis Rep. Rate: 20.0 Hz E + Aramis Rep. Rate: None None tests/test_utils_reprate.py:99: AssertionError📌 Teardown phase
duration:
0.0002006920985877514outcome:
passed
↳ Function: test_retrieve_pvname_for_none_instrument_and_beamline
-
❌ Test 25
📌 Setup phase
duration:
0.00011260621249675751outcome:
passed📌 Call phase
duration:
0.000322702806442976outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_reprate.py lineno: 116 message: AssertionError: Name should not be None. assert None is not None + where None = None: None None.nametraceback:
- path: tests/test_utils_reprate.py lineno: 116 message: AssertionErrorlongrepr:
def test_retrieve_pvname_for_none_instrument_and_beamline(): # Test that if both instrument and beamline are None, the method works correctly.""" monitor = RepRateMonitor(target=None) > assert monitor.name is not None, "Name should not be None." E AssertionError: Name should not be None. E assert None is not None E + where None = None: None None.name tests/test_utils_reprate.py:116: AssertionError📌 Teardown phase
duration:
0.00014615431427955627outcome:
passed
-
📚 Collected files
✅ (1 tests)
-
✅
- Outcome:
passed - result:
- nodeid: tests/test_utils_reprate.py type: Module - Outcome:
✅ tests (1 tests)
-
✅ tests/test_utils_reprate.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_reprate.py::test_get_beamline[alvra-aramis] type: Function lineno: 8 - nodeid: tests/test_utils_reprate.py::test_get_beamline[bernina-aramis] type: Function lineno: 8 - nodeid: tests/test_utils_reprate.py::test_get_beamline[cristallina-aramis] type: Function lineno: 8 - nodeid: tests/test_utils_reprate.py::test_get_beamline[diavolezza-athos] type: Function lineno: 8 - nodeid: tests/test_utils_reprate.py::test_get_beamline[maloja-athos] type: Function lineno: 8 - nodeid: tests/test_utils_reprate.py::test_get_beamline[furka-athos] type: Function lineno: 8 - nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_for_inferred_beamline type: Function lineno: 21 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.242-alvra] type: Function lineno: 29 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.243-bernina] type: Function lineno: 29 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.244-cristallina] type: Function lineno: 29 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.245-diavolezza] type: Function lineno: 29 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.246-maloja] type: Function lineno: 29 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.247-furka] type: Function lineno: 29 - nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[alvra-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB] type: Function lineno: 44 - nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[bernina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB] type: Function lineno: 44 - nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[cristallina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB] type: Function lineno: 44 - nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[diavolezza-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB] type: Function lineno: 44 - nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[maloja-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB] type: Function lineno: 44 - nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[furka-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB] type: Function lineno: 44 - nodeid: tests/test_utils_reprate.py::test_invalid_instrument_or_beamline type: Function lineno: 57 - nodeid: tests/test_utils_reprate.py::test_monitor_value_update type: Function lineno: 67 - nodeid: tests/test_utils_reprate.py::test_repr_method_with_initial_values type: Function lineno: 85 - nodeid: tests/test_utils_reprate.py::test_invalid_target_handling[invalid_instrument] type: Function lineno: 101 - nodeid: tests/test_utils_reprate.py::test_invalid_target_handling[non_existing_beamline] type: Function lineno: 101 - nodeid: tests/test_utils_reprate.py::test_retrieve_pvname_for_none_instrument_and_beamline type: Function lineno: 112 - Outcome:
⚠️ Warnings
Warnings nº1
message: invalid escape sequence \-
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/bsread/h5.py
lineno: 207
Warnings nº2
message: The module numpy.dual is deprecated. Instead of using dual, use the functions directly from numpy or scipy.
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/scipy/fft/__init__.py
lineno: 97