Clone
1
run 2161 TEST commit 5d2fa77
ci-bot edited this page 2025-08-12 15:18:57 +00:00

Test Report

View CI Run 2161 | Commit 5d2fa77

🧪 Test Report

Generated on 2025-08-12 17:18:34 CEST

🧾 General Info

  • duration: 44.871931076049805
  • 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.0005617141723632812
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00017970101907849312
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0002332078292965889
      

      outcome:

      passed
      
    • Test 2
      params: instrument="bernina", expected_beamline="aramis"

      📌 Runtime Parameters

      params:
        instrument: bernina
        expected_beamline: aramis
      id: bernina-aramis
      

      📌 Setup phase

      duration:

      0.0002344828099012375
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014182832092046738
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013151485472917557
      

      outcome:

      passed
      
    • Test 3
      params: instrument="cristallina", expected_beamline="aramis"

      📌 Runtime Parameters

      params:
        instrument: cristallina
        expected_beamline: aramis
      id: cristallina-aramis
      

      📌 Setup phase

      duration:

      0.00021863728761672974
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012960704043507576
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012554926797747612
      

      outcome:

      passed
      
    • Test 4
      params: instrument="diavolezza", expected_beamline="athos"

      📌 Runtime Parameters

      params:
        instrument: diavolezza
        expected_beamline: athos
      id: diavolezza-athos
      

      📌 Setup phase

      duration:

      0.0002230568788945675
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013138167560100555
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001256437972187996
      

      outcome:

      passed
      
    • Test 5
      params: instrument="maloja", expected_beamline="athos"

      📌 Runtime Parameters

      params:
        instrument: maloja
        expected_beamline: athos
      id: maloja-athos
      

      📌 Setup phase

      duration:

      0.00020763184875249863
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000126637052744627
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012697093188762665
      

      outcome:

      passed
      
    • Test 6
      params: instrument="furka", expected_beamline="athos"

      📌 Runtime Parameters

      params:
        instrument: furka
        expected_beamline: athos
      id: furka-athos
      

      📌 Setup phase

      duration:

      0.00021577998995780945
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000130512285977602
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001232489012181759
      

      outcome:

      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.0003004157915711403
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0009021982550621033
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015640491619706154
      

      outcome:

      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.00023988494649529457
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008776560425758362
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001564500853419304
      

      outcome:

      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.000223550945520401
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0007730056531727314
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00016150809824466705
      

      outcome:

      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.00023011863231658936
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000847717747092247
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001417999155819416
      

      outcome:

      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.0002312459982931614
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0007662461139261723
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014817295596003532
      

      outcome:

      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.0002440856769680977
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008509671315550804
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015243282541632652
      

      outcome:

      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.000260314904153347
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014444021508097649
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014574499800801277
      

      outcome:

      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.00025763269513845444
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001320289447903633
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001338329166173935
      

      outcome:

      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.0002540028654038906
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001355172134935856
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001357472501695156
      

      outcome:

      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.0002446887083351612
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013433769345283508
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013410067185759544
      

      outcome:

      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.0002554529346525669
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013228412717580795
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013502594083547592
      

      outcome:

      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.00024829572066664696
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012589991092681885
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013440195471048355
      

      outcome:

      passed
      

    Function: test_invalid_instrument_or_beamline

    • Test 20

      📌 Setup phase

      duration:

      0.000105992890894413
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00032510189339518547
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00010421779006719589
      

      outcome:

      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.00039066001772880554
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0003890399821102619
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00016713235527276993
      

      outcome:

      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.00021050916984677315
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00020647700875997543
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012888619676232338
      

      outcome:

      passed
      
Failed (4)
  • 📄 test_utils_reprate.py

    Function: test_get_pvname_reprate_for_inferred_beamline

    • Test 7

      📌 Setup phase

      duration:

      0.00010387878865003586
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0015035998076200485
      

      outcome:

      failed
      

      crash:

      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: AssertionError
      

      longrepr:

      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.00022545736283063889
      

      outcome:

      passed
      

    Function: test_monitor_value_update

    • Test 21

      📌 Setup phase

      duration:

      0.00012750597670674324
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.103416170924902
      

      outcome:

      failed
      

      crash:

      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.value
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 72
        message: AssertionError
      

      longrepr:

      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.0004544919356703758
      

      outcome:

      passed
      

    Function: test_repr_method_with_initial_values

    • Test 22

      📌 Setup phase

      duration:

      0.00019089505076408386
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.001742342021316
      

      outcome:

      failed
      

      crash:

      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 None
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 99
        message: AssertionError
      

      longrepr:

      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.00021977629512548447
      

      outcome:

      passed
      

    Function: test_retrieve_pvname_for_none_instrument_and_beamline

    • Test 25

      📌 Setup phase

      duration:

      0.00010987697169184685
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0003089830279350281
      

      outcome:

      failed
      

      crash:

      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.name
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 116
        message: AssertionError
      

      longrepr:

      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.0001612701453268528
      

      outcome:

      passed
      

📚 Collected files

(1 tests)
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_reprate.py
      type: Module
    
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
    

⚠️ 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