Table of Contents
Test Report
View CI Run 2162 | Commit a48190f
🧪 Test Report
Generated on 2025-08-12 17:25:05 CEST
🧾 General Info
- duration: 45.102373361587524
- 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.0006080749444663525outcome:
passed📌 Call phase
duration:
0.00019000284373760223outcome:
passed📌 Teardown phase
duration:
0.00024325400590896606outcome:
passed -
✅ Test 2
params: instrument="bernina", expected_beamline="aramis"📌 Runtime Parameters
params: instrument: bernina expected_beamline: aramis id: bernina-aramis📌 Setup phase
duration:
0.0002691717818379402outcome:
passed📌 Call phase
duration:
0.00014276476576924324outcome:
passed📌 Teardown phase
duration:
0.00013321498408913612outcome:
passed -
✅ Test 3
params: instrument="cristallina", expected_beamline="aramis"📌 Runtime Parameters
params: instrument: cristallina expected_beamline: aramis id: cristallina-aramis📌 Setup phase
duration:
0.0002017752267420292outcome:
passed📌 Call phase
duration:
0.00013041403144598007outcome:
passed📌 Teardown phase
duration:
0.00012617278844118118outcome:
passed -
✅ Test 4
params: instrument="diavolezza", expected_beamline="athos"📌 Runtime Parameters
params: instrument: diavolezza expected_beamline: athos id: diavolezza-athos📌 Setup phase
duration:
0.00021576089784502983outcome:
passed📌 Call phase
duration:
0.00013221800327301025outcome:
passed📌 Teardown phase
duration:
0.00012734020128846169outcome:
passed -
✅ Test 5
params: instrument="maloja", expected_beamline="athos"📌 Runtime Parameters
params: instrument: maloja expected_beamline: athos id: maloja-athos📌 Setup phase
duration:
0.00020913220942020416outcome:
passed📌 Call phase
duration:
0.000128826592117548outcome:
passed📌 Teardown phase
duration:
0.00012823287397623062outcome:
passed -
✅ Test 6
params: instrument="furka", expected_beamline="athos"📌 Runtime Parameters
params: instrument: furka expected_beamline: athos id: furka-athos📌 Setup phase
duration:
0.0002122451551258564outcome:
passed📌 Call phase
duration:
0.00012973695993423462outcome:
passed📌 Teardown phase
duration:
0.00012387987226247787outcome:
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.0003183581866323948outcome:
passed📌 Call phase
duration:
0.0009446670301258564outcome:
passed📌 Teardown phase
duration:
0.0001789783127605915outcome:
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.0002332502044737339outcome:
passed📌 Call phase
duration:
0.0020534717477858067outcome:
passed📌 Teardown phase
duration:
0.0001643029972910881outcome:
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.0002232799306511879outcome:
passed📌 Call phase
duration:
0.0007795360870659351outcome:
passed📌 Teardown phase
duration:
0.00015005795285105705outcome:
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.00021884404122829437outcome:
passed📌 Call phase
duration:
0.0008604382164776325outcome:
passed📌 Teardown phase
duration:
0.00015264982357621193outcome:
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.00022735074162483215outcome:
passed📌 Call phase
duration:
0.0007695830427110195outcome:
passed📌 Teardown phase
duration:
0.00014526629820466042outcome:
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.00021203886717557907outcome:
passed📌 Call phase
duration:
0.000834279228001833outcome:
passed📌 Teardown phase
duration:
0.0001555117778480053outcome:
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.00026188604533672333outcome:
passed📌 Call phase
duration:
0.00015048589557409286outcome:
passed📌 Teardown phase
duration:
0.00014116941019892693outcome:
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.00024078181013464928outcome:
passed📌 Call phase
duration:
0.00014600856229662895outcome:
passed📌 Teardown phase
duration:
0.00014632614329457283outcome:
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.0002524680458009243outcome:
passed📌 Call phase
duration:
0.00013096584007143974outcome:
passed📌 Teardown phase
duration:
0.00013669300824403763outcome:
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.0002464801073074341outcome:
passed📌 Call phase
duration:
0.00013436703011393547outcome:
passed📌 Teardown phase
duration:
0.0001395200379192829outcome:
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.0002340269275009632outcome:
passed📌 Call phase
duration:
0.00013662921264767647outcome:
passed📌 Teardown phase
duration:
0.0001403861679136753outcome:
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.0002589658834040165outcome:
passed📌 Call phase
duration:
0.00016239425167441368outcome:
passed📌 Teardown phase
duration:
0.0001514260657131672outcome:
passed
↳ Function: test_invalid_instrument_or_beamline
-
✅ Test 20
📌 Setup phase
duration:
0.00011866772547364235outcome:
passed📌 Call phase
duration:
0.003547243308275938outcome:
passed📌 Teardown phase
duration:
0.00012045027688145638outcome:
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.00042781513184309006outcome:
passed📌 Call phase
duration:
0.0003848681226372719outcome:
passed📌 Teardown phase
duration:
0.00019508041441440582outcome:
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.00020029814913868904outcome:
passed📌 Call phase
duration:
0.00020874710753560066outcome:
passed📌 Teardown phase
duration:
0.0001259567216038704outcome:
passed
-
❌ Failed (4)
-
📄 test_utils_reprate.py
↳ Function: test_get_pvname_reprate_for_inferred_beamline
-
❌ Test 7
📌 Setup phase
duration:
0.0001017209142446518outcome:
passed📌 Call phase
duration:
0.001483290921896696outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_reprate.py lineno: 27 message: AssertionError: Expected 'SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB', but got None assert None == 'SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB'traceback:
- path: tests/test_utils_reprate.py lineno: 27 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 == BEAMLINE_TO_PVNAME_REPRATE["aramis"], f"Expected 'SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB', but got {pvname}" E AssertionError: Expected 'SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB', but got None E assert None == 'SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB' tests/test_utils_reprate.py:27: AssertionError📌 Teardown phase
duration:
0.00026308419182896614outcome:
passed
↳ Function: test_monitor_value_update
-
❌ Test 21
📌 Setup phase
duration:
0.00011684000492095947outcome:
passed📌 Call phase
duration:
20.106753861065954outcome:
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.00045436108484864235outcome:
passed
↳ Function: test_repr_method_with_initial_values
-
❌ Test 22
📌 Setup phase
duration:
0.00020440435037016869outcome:
passed📌 Call phase
duration:
20.00191603275016outcome:
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.0002130209468305111outcome:
passed
↳ Function: test_retrieve_pvname_for_none_instrument_and_beamline
-
❌ Test 25
📌 Setup phase
duration:
0.00011408887803554535outcome:
passed📌 Call phase
duration:
0.0003208983689546585outcome:
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.00022666016593575478outcome:
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: 7 - nodeid: tests/test_utils_reprate.py::test_get_beamline[bernina-aramis] type: Function lineno: 7 - nodeid: tests/test_utils_reprate.py::test_get_beamline[cristallina-aramis] type: Function lineno: 7 - nodeid: tests/test_utils_reprate.py::test_get_beamline[diavolezza-athos] type: Function lineno: 7 - nodeid: tests/test_utils_reprate.py::test_get_beamline[maloja-athos] type: Function lineno: 7 - nodeid: tests/test_utils_reprate.py::test_get_beamline[furka-athos] type: Function lineno: 7 - nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_for_inferred_beamline type: Function lineno: 20 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.242-alvra] type: Function lineno: 28 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.243-bernina] type: Function lineno: 28 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.244-cristallina] type: Function lineno: 28 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.245-diavolezza] type: Function lineno: 28 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.246-maloja] type: Function lineno: 28 - nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.247-furka] type: Function lineno: 28 - 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: 43 - 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: 43 - 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: 43 - 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: 43 - 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: 43 - 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: 43 - nodeid: tests/test_utils_reprate.py::test_invalid_instrument_or_beamline type: Function lineno: 56 - nodeid: tests/test_utils_reprate.py::test_monitor_value_update type: Function lineno: 66 - 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