Clone
1
run 2165 TEST commit 18db2f7
ci-bot edited this page 2025-08-12 17:33:15 +00:00

Test Report

View CI Run 2165 | Commit 18db2f7

🧪 Test Report

Generated on 2025-08-12 19:32:53 CEST

🧾 General Info

  • duration: 44.845924377441406
  • 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.0005788891576230526
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00016874773427844048
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0002710050903260708
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013712001964449883
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013442011550068855
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013508601114153862
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001256079412996769
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001267809420824051
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012459373101592064
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013838708400726318
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012201862409710884
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013788696378469467
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012258486822247505
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0009674280881881714
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015263911336660385
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000902222003787756
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014961697161197662
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0007843486964702606
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015273923054337502
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008371700532734394
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014894502237439156
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0007544751279056072
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015819305554032326
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008365381509065628
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014425208792090416
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013915589079260826
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001358548179268837
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012672971934080124
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014697108417749405
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013650069013237953
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014085881412029266
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001278468407690525
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014201831072568893
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012977886945009232
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014158198609948158
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013034511357545853
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014566583558917046
      

      outcome:

      passed
      

    Function: test_invalid_instrument_or_beamline

    • Test 20

      📌 Setup phase

      duration:

      0.0001040380448102951
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00028761476278305054
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013072602450847626
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0003368188627064228
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015965290367603302
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0002081659622490406
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012544402852654457
      

      outcome:

      passed
      
Failed (4)
  • 📄 test_utils_reprate.py

    Function: test_get_pvname_reprate_for_inferred_beamline

    • Test 7

      📌 Setup phase

      duration:

      0.00010153697803616524
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0015485454350709915
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 28
      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: 28
        message: AssertionError
      

      longrepr:

      def test_get_pvname_reprate_for_inferred_beamline():
              """Test the PV name retrieval when using inferred beamline based on IP address."""
              with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value="129.129.242"):
                  beamline = infer_beamline()  # This will return "alvra" based on the IP
                  pvname = get_pvname_reprate(instrument=None, beamline=beamline)  # This should return the PV name associated with 'aramis'
                  expected_pvname = "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"
      >           assert pvname == expected_pvname, f"Expected {expected_pvname}, 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:28: AssertionError
      

      📌 Teardown phase

      duration:

      0.00025820499286055565
      

      outcome:

      passed
      

    Function: test_monitor_value_update

    • Test 21

      📌 Setup phase

      duration:

      0.00010786205530166626
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.107356469146907
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 73
      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: 73
        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:73: AssertionError
      

      📌 Teardown phase

      duration:

      0.00044173188507556915
      

      outcome:

      passed
      

    Function: test_repr_method_with_initial_values

    • Test 22

      📌 Setup phase

      duration:

      0.00021803611889481544
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.001739728730172
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 100
      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: 100
        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:100: AssertionError
      

      📌 Teardown phase

      duration:

      0.00020480994135141373
      

      outcome:

      passed
      

    Function: test_retrieve_pvname_for_none_instrument_and_beamline

    • Test 25

      📌 Setup phase

      duration:

      0.00010816380381584167
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00033916207030415535
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 117
      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: 117
        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:117: AssertionError
      

      📌 Teardown phase

      duration:

      0.00014306511729955673
      

      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: 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: 30
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.243-bernina]
      type: Function
      lineno: 30
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.244-cristallina]
      type: Function
      lineno: 30
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.245-diavolezza]
      type: Function
      lineno: 30
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.246-maloja]
      type: Function
      lineno: 30
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.247-furka]
      type: Function
      lineno: 30
    -   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: 45
    -   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: 45
    -   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: 45
    -   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: 45
    -   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: 45
    -   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: 45
    -   nodeid: tests/test_utils_reprate.py::test_invalid_instrument_or_beamline
      type: Function
      lineno: 58
    -   nodeid: tests/test_utils_reprate.py::test_monitor_value_update
      type: Function
      lineno: 68
    -   nodeid: tests/test_utils_reprate.py::test_repr_method_with_initial_values
      type: Function
      lineno: 86
    -   nodeid: tests/test_utils_reprate.py::test_invalid_target_handling[invalid_instrument]
      type: Function
      lineno: 102
    -   nodeid: tests/test_utils_reprate.py::test_invalid_target_handling[non_existing_beamline]
      type: Function
      lineno: 102
    -   nodeid: tests/test_utils_reprate.py::test_retrieve_pvname_for_none_instrument_and_beamline
      type: Function
      lineno: 113
    

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