Content

상위 폴더로 이동
Build start time: Thu Nov 20 08:06:11 UTC 2025
[ REASON ] :      target/python-wheels/bookworm/sonic_psud-1.0-py3-none-any.whl does not exist   NON-EXISTENT PREREQUISITES: target/python-wheels/bookworm/sonic_py_common-1.0-py3-none-any.whl-install target/python-wheels/bookworm/sonic_platform_common-1.0-py3-none-any.whl-install target/debs/bookworm/libswsscommon_1.0.0_amd64.deb-install target/debs/bookworm/python3-swsscommon_1.0.0_amd64.deb-install 
[ FLAGS  FILE    ] : [] 
[ FLAGS  DEPENDS ] : [] 
[ FLAGS  DIFF    ] : [] 
/sonic/src/sonic-platform-daemons/sonic-psud /sonic
Defaulting to user installation because normal site-packages is not writeable
Processing /sonic/src/sonic-platform-daemons/sonic-psud
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: sonic-psud
  Building wheel for sonic-psud (setup.py): started
  Building wheel for sonic-psud (setup.py): finished with status 'done'
  Created wheel for sonic-psud: filename=sonic_psud-1.0-py3-none-any.whl size=17895 sha256=e4d39e860969d9cde25495485f3586fc442f7f7de88d5933d9bee160ff73830e
  Stored in directory: /var/jenkins/.cache/pip/wheels/f9/6f/5e/31c8990d7df13ca6cdeb06379c5eacc6595fbc23d7291e874c
Successfully built sonic-psud
Installing collected packages: sonic-psud
Successfully installed sonic-psud-1.0

[notice] A new release of pip is available: 24.2 -> 25.3
[notice] To update, run: python3 -m pip install --upgrade pip
Found existing installation: sonic-psud 1.0
Uninstalling sonic-psud-1.0:
  Successfully uninstalled sonic-psud-1.0
Defaulting to user installation because normal site-packages is not writeable
Processing /sonic/src/sonic-platform-daemons/sonic-psud
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
WARNING: sonic-psud 1.0 does not provide the extra 'testing'
Building wheels for collected packages: sonic-psud
  Building wheel for sonic-psud (setup.py): started
  Building wheel for sonic-psud (setup.py): finished with status 'done'
  Created wheel for sonic-psud: filename=sonic_psud-1.0-py3-none-any.whl size=17895 sha256=ce7d8020f3d05a1633eacc0504e14f28a1baf59a70ad11dca1a06ddfd16417fc
  Stored in directory: /var/jenkins/.cache/pip/wheels/f9/6f/5e/31c8990d7df13ca6cdeb06379c5eacc6595fbc23d7291e874c
Successfully built sonic-psud
Installing collected packages: sonic-psud
Successfully installed sonic-psud-1.0

[notice] A new release of pip is available: 24.2 -> 25.3
[notice] To update, run: python3 -m pip install --upgrade pip
Found existing installation: sonic-psud 1.0
Uninstalling sonic-psud-1.0:
  Successfully uninstalled sonic-psud-1.0
============================= test session starts ==============================
platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /sonic/src/sonic-platform-daemons/sonic-psud, configfile: pytest.ini
plugins: pyfakefs-5.7.4, cov-4.0.0
collecting ... collected 29 items

tests/test_DaemonPsud.py::TestDaemonPsud::test_signal_handler PASSED     [  3%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_run PASSED                [  6%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_psu_data PASSED    [ 10%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_single_psu_data PASSED [ 13%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_power_threshold PASSED    [ 17%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_set_psu_led PASSED        [ 20%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_led_color PASSED   [ 24%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_psu_fan_led_status PASSED [ 27%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_psu_chassis_info PASSED [ 31%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_psu_entity_info PASSED [ 34%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_single_psu_entity_info PASSED [ 37%]
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_psu_fan_data PASSED [ 41%]
tests/test_PsuChassisInfo.py::TestPsuChassisInfo::test_update_master_status PASSED [ 44%]
tests/test_PsuChassisInfo.py::TestPsuChassisInfo::test_supplied_power PASSED [ 48%]
tests/test_PsuChassisInfo.py::TestPsuChassisInfo::test_consumed_power PASSED [ 51%]
tests/test_PsuChassisInfo.py::TestPsuChassisInfo::test_power_budget PASSED [ 55%]
tests/test_PsuChassisInfo.py::TestPsuChassisInfo::test_first_run PASSED  [ 58%]
tests/test_PsuChassisInfo.py::TestPsuChassisInfo::test_get_psu_key PASSED [ 62%]
tests/test_PsuChassisInfo.py::TestPsuChassisInfo::test_try_get PASSED    [ 65%]
tests/test_PsuStatus.py::TestPsuStatus::test_set_presence PASSED         [ 68%]
tests/test_PsuStatus.py::TestPsuStatus::test_set_power_good PASSED       [ 72%]
tests/test_PsuStatus.py::TestPsuStatus::test_set_voltage PASSED          [ 75%]
tests/test_PsuStatus.py::TestPsuStatus::test_set_temperature PASSED      [ 79%]
tests/test_PsuStatus.py::TestPsuStatus::test_is_ok PASSED                [ 82%]
tests/test_psud.py::test_wrapper_get_num_psus PASSED                     [ 86%]
tests/test_psud.py::test_wrapper_get_psu_presence PASSED                 [ 89%]
tests/test_psud.py::test_wrapper_get_psu_status PASSED                   [ 93%]
tests/test_psud.py::test_log_on_status_changed PASSED                    [ 96%]
tests/test_psud.py::test_main PASSED                                     [100%]

=============================== warnings summary ===============================
tests/test_DaemonPsud.py:4
  /sonic/src/sonic-platform-daemons/sonic-psud/tests/test_DaemonPsud.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
    from imp import load_source  # Replace with importlib once we no longer need to support Python 2

tests/test_DaemonPsud.py::TestDaemonPsud::test_run
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_single_psu_data
tests/test_DaemonPsud.py::TestDaemonPsud::test_power_threshold
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_led_color
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_psu_fan_led_status
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_psu_chassis_info
tests/test_PsuChassisInfo.py::TestPsuChassisInfo::test_try_get
tests/test_psud.py::test_main
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: 
  
  Traceback (most recent call last):
    File "/sonic/src/sonic-platform-daemons/sonic-psud/scripts/psud", line 422, in __del__
      self.chassis_tbl._del(CHASSIS_INFO_POWER_KEY_TEMPLATE.format(1))
    File "/sonic/src/sonic-platform-daemons/sonic-psud/tests/mocked_libs/swsscommon/swsscommon.py", line 16, in _del
      del self.mock_dict[key]
          ~~~~~~~~~~~~~~^^^^^
  KeyError: 'chassis_power_budget 1'
  
    warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

tests/test_DaemonPsud.py::TestDaemonPsud::test_set_psu_led
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_single_psu_entity_info
tests/test_DaemonPsud.py::TestDaemonPsud::test_update_psu_fan_data
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: 
  
  Traceback (most recent call last):
    File "/sonic/src/sonic-platform-daemons/sonic-psud/scripts/psud", line 419, in __del__
      self.psu_tbl._del(get_psu_key(psu_index))
    File "/sonic/src/sonic-platform-daemons/sonic-psud/tests/mocked_libs/swsscommon/swsscommon.py", line 16, in _del
      del self.mock_dict[key]
          ~~~~~~~~~~~~~~^^^^^
  KeyError: 'PSU 1'
  
    warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /sonic/src/sonic-platform-daemons/sonic-psud/test-results.xml -

---------- coverage: platform linux, python 3.11.2-final-0 -----------
Name           Stmts   Miss  Cover
----------------------------------
scripts/psud     431     15    97%
----------------------------------
TOTAL            431     15    97%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml

======================= 29 passed, 12 warnings in 3.71s ========================
Exception ignored in: 
Traceback (most recent call last):
  File "/sonic/src/sonic-platform-daemons/sonic-psud/scripts/psud", line 422, in __del__
    self.chassis_tbl._del(CHASSIS_INFO_POWER_KEY_TEMPLATE.format(1))
  File "/sonic/src/sonic-platform-daemons/sonic-psud/tests/mocked_libs/swsscommon/swsscommon.py", line 16, in _del
    del self.mock_dict[key]
        ~~~~~~~~~~~~~~^^^^^
KeyError: 'chassis_power_budget 1'
* Getting build dependencies for sdist...
* Building sdist...
running sdist
running egg_info
writing sonic_psud.egg-info/PKG-INFO
writing dependency_links to sonic_psud.egg-info/dependency_links.txt
writing top-level names to sonic_psud.egg-info/top_level.txt
writing manifest file 'sonic_psud.egg-info/SOURCES.txt'
warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md

running check
creating sonic-psud-1.0
creating sonic-psud-1.0/scripts
creating sonic-psud-1.0/sonic_psud.egg-info
creating sonic-psud-1.0/tests
creating sonic-psud-1.0/tests/mocked_libs
creating sonic-psud-1.0/tests/mocked_libs/sonic_platform
creating sonic-psud-1.0/tests/mocked_libs/swsscommon
copying files to sonic-psud-1.0...
copying pytest.ini -> sonic-psud-1.0
copying setup.cfg -> sonic-psud-1.0
copying setup.py -> sonic-psud-1.0
copying scripts/psud -> sonic-psud-1.0/scripts
copying sonic_psud.egg-info/PKG-INFO -> sonic-psud-1.0/sonic_psud.egg-info
copying sonic_psud.egg-info/SOURCES.txt -> sonic-psud-1.0/sonic_psud.egg-info
copying sonic_psud.egg-info/dependency_links.txt -> sonic-psud-1.0/sonic_psud.egg-info
copying sonic_psud.egg-info/top_level.txt -> sonic-psud-1.0/sonic_psud.egg-info
copying tests/__init__.py -> sonic-psud-1.0/tests
copying tests/mock_platform.py -> sonic-psud-1.0/tests
copying tests/test_DaemonPsud.py -> sonic-psud-1.0/tests
copying tests/test_PsuChassisInfo.py -> sonic-psud-1.0/tests
copying tests/test_PsuStatus.py -> sonic-psud-1.0/tests
copying tests/test_psud.py -> sonic-psud-1.0/tests
copying tests/mocked_libs/sonic_platform/__init__.py -> sonic-psud-1.0/tests/mocked_libs/sonic_platform
copying tests/mocked_libs/sonic_platform/psu.py -> sonic-psud-1.0/tests/mocked_libs/sonic_platform
copying tests/mocked_libs/swsscommon/__init__.py -> sonic-psud-1.0/tests/mocked_libs/swsscommon
copying tests/mocked_libs/swsscommon/swsscommon.py -> sonic-psud-1.0/tests/mocked_libs/swsscommon
Writing sonic-psud-1.0/setup.cfg
Creating tar archive
removing 'sonic-psud-1.0' (and everything under it)
* Building wheel from sdist
* Getting build dependencies for wheel...
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/tests
copying tests/test_PsuStatus.py -> build/lib/tests
copying tests/test_PsuChassisInfo.py -> build/lib/tests
copying tests/test_psud.py -> build/lib/tests
copying tests/__init__.py -> build/lib/tests
copying tests/mock_platform.py -> build/lib/tests
copying tests/test_DaemonPsud.py -> build/lib/tests
running build_scripts
creating build/scripts-3.11
copying and adjusting scripts/psud -> build/scripts-3.11
changing mode of build/scripts-3.11/psud from 644 to 755
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/test_PsuStatus.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/test_PsuChassisInfo.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/test_psud.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/__init__.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/mock_platform.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/test_DaemonPsud.py -> build/bdist.linux-x86_64/wheel/tests
running install_egg_info
running egg_info
writing sonic_psud.egg-info/PKG-INFO
writing dependency_links to sonic_psud.egg-info/dependency_links.txt
writing top-level names to sonic_psud.egg-info/top_level.txt
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'sonic_psud.egg-info/SOURCES.txt'
writing manifest file 'sonic_psud.egg-info/SOURCES.txt'
Copying sonic_psud.egg-info to build/bdist.linux-x86_64/wheel/sonic_psud-1.0.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/sonic_psud-1.0.data
creating build/bdist.linux-x86_64/wheel/sonic_psud-1.0.data/scripts
copying build/scripts-3.11/psud -> build/bdist.linux-x86_64/wheel/sonic_psud-1.0.data/scripts
changing mode of build/bdist.linux-x86_64/wheel/sonic_psud-1.0.data/scripts/psud to 755
creating build/bdist.linux-x86_64/wheel/sonic_psud-1.0.dist-info/WHEEL
creating '/sonic/src/sonic-platform-daemons/sonic-psud/dist/.tmp-50zswdii/sonic_psud-1.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'sonic_psud-1.0.data/scripts/psud'
adding 'tests/__init__.py'
adding 'tests/mock_platform.py'
adding 'tests/test_DaemonPsud.py'
adding 'tests/test_PsuChassisInfo.py'
adding 'tests/test_PsuStatus.py'
adding 'tests/test_psud.py'
adding 'sonic_psud-1.0.dist-info/METADATA'
adding 'sonic_psud-1.0.dist-info/WHEEL'
adding 'sonic_psud-1.0.dist-info/top_level.txt'
adding 'sonic_psud-1.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built sonic-psud-1.0.tar.gz and sonic_psud-1.0-py3-none-any.whl
/sonic
Build end time: Thu Nov 20 08:06:26 UTC 2025
Elapsed time: 0h 0m 15s