Clone
1
run 2163 TEST commit ace89a5
ci-bot edited this page 2025-08-12 17:24:22 +00:00

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00016657821834087372
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00022854609414935112
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013902969658374786
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001435806043446064
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012656813487410545
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012340117245912552
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001279790885746479
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012334901839494705
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012485403567552567
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001268899068236351
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012563727796077728
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012709805741906166
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008735149167478085
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001585269346833229
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008527729660272598
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015103677287697792
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0007495591416954994
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015173805877566338
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008368790149688721
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015346473082900047
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000764084979891777
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00014703022316098213
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008448529988527298
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001523178070783615
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014053937047719955
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001445370726287365
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001346813514828682
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013738777488470078
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012819981202483177
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001375991851091385
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00012796511873602867
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013333698734641075
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00013326294720172882
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013714097440242767
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001261429861187935
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013993168249726295
      

      outcome:

      passed
      

    Function: test_invalid_instrument_or_beamline

    • Test 20

      📌 Setup phase

      duration:

      0.00010597798973321915
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.005559931043535471
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013127271085977554
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0003823786973953247
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00016500195488333702
      

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

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0002080039121210575
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00011948077008128166
      

      outcome:

      passed
      
Failed (4)
  • 📄 test_utils_reprate.py

    Function: test_get_pvname_reprate_for_inferred_beamline

    • Test 7

      📌 Setup phase

      duration:

      0.00010665273293852806
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.001432707067579031
      

      outcome:

      failed
      

      crash:

      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: 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 == "alvra"
      E           AssertionError: assert None == 'alvra'
      
      tests/test_utils_reprate.py:28: AssertionError
      

      📌 Teardown phase

      duration:

      0.00020276010036468506
      

      outcome:

      passed
      

    Function: test_monitor_value_update

    • Test 21

      📌 Setup phase

      duration:

      0.00011317199096083641
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.10147383902222
      

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

      outcome:

      passed
      

    Function: test_repr_method_with_initial_values

    • Test 22

      📌 Setup phase

      duration:

      0.00019565783441066742
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.001567810308188
      

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

      outcome:

      passed
      

    Function: test_retrieve_pvname_for_none_instrument_and_beamline

    • Test 25

      📌 Setup phase

      duration:

      0.00011260621249675751
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000322702806442976
      

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

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

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