Clone
1
run 2162 TEST commit a48190f
ci-bot edited this page 2025-08-12 15:25:28 +00:00

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00019000284373760223
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00024325400590896606
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014276476576924324
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013321498408913612
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013041403144598007
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012617278844118118
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013221800327301025
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012734020128846169
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000128826592117548
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012823287397623062
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012973695993423462
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012387987226247787
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0009446670301258564
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001789783127605915
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0020534717477858067
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001643029972910881
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0007795360870659351
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015005795285105705
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008604382164776325
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015264982357621193
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0007695830427110195
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014526629820466042
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000834279228001833
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001555117778480053
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00015048589557409286
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014116941019892693
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014600856229662895
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014632614329457283
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013096584007143974
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013669300824403763
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013436703011393547
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001395200379192829
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013662921264767647
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001403861679136753
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00016239425167441368
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001514260657131672
      

      outcome:

      passed
      

    Function: test_invalid_instrument_or_beamline

    • Test 20

      📌 Setup phase

      duration:

      0.00011866772547364235
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.003547243308275938
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012045027688145638
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0003848681226372719
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00019508041441440582
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00020874710753560066
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001259567216038704
      

      outcome:

      passed
      
Failed (4)
  • 📄 test_utils_reprate.py

    Function: test_get_pvname_reprate_for_inferred_beamline

    • Test 7

      📌 Setup phase

      duration:

      0.0001017209142446518
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.001483290921896696
      

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

      outcome:

      passed
      

    Function: test_monitor_value_update

    • Test 21

      📌 Setup phase

      duration:

      0.00011684000492095947
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.106753861065954
      

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

      outcome:

      passed
      

    Function: test_repr_method_with_initial_values

    • Test 22

      📌 Setup phase

      duration:

      0.00020440435037016869
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.00191603275016
      

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

      outcome:

      passed
      

    Function: test_retrieve_pvname_for_none_instrument_and_beamline

    • Test 25

      📌 Setup phase

      duration:

      0.00011408887803554535
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0003208983689546585
      

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

      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