Build start time: Fri Jul 4 08:53:41 UTC 2025
[ REASON ] : target/python-wheels/bullseye/sonic_psud-1.0-py3-none-any.whl does not exist NON-EXISTENT PREREQUISITES: target/python-wheels/bullseye/sonic_py_common-1.0-py3-none-any.whl-install target/python-wheels/bullseye/sonic_platform_common-1.0-py3-none-any.whl-install target/debs/bullseye/libswsscommon_1.0.0_amd64.deb-install target/debs/bullseye/python3-swsscommon_1.0.0_amd64.deb-install
[ FLAGS FILE ] : []
[ FLAGS DEPENDS ] : []
[ FLAGS DIFF ] : []
/sonic/src/sonic-platform-daemons/sonic-psud /sonic
running pytest
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
reading manifest file 'sonic_psud.egg-info/SOURCES.txt'
writing manifest file 'sonic_psud.egg-info/SOURCES.txt'
running build_ext
============================= test session starts ==============================
platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /sonic/src/sonic-platform-daemons/sonic-psud, configfile: pytest.ini
plugins: pyfakefs-5.8.0, cov-2.10.1
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 ===============================
/usr/lib/python3/dist-packages/_pytest/junitxml.py:446
/usr/lib/python3/dist-packages/_pytest/junitxml.py:446: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0. See:
https://docs.pytest.org/en/stable/deprecations.html#junit-family-default-value-change-to-xunit2
for more information.
_issue_warning_captured(deprecated.JUNIT_XML_DEFAULT_FAMILY, config.hook, 2)
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; 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
-- Docs: https://docs.pytest.org/en/stable/warnings.html
- generated xml file: /sonic/src/sonic-platform-daemons/sonic-psud/test-results.xml -
----------- coverage: platform linux, python 3.9.2-final-0 -----------
Name Stmts Miss Cover
----------------------------------
scripts/psud 422 14 97%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
======================== 29 passed, 2 warnings in 3.60s ========================
Exception ignored in:
Traceback (most recent call last):
File "/sonic/src/sonic-platform-daemons/sonic-psud/scripts/psud", line 412, 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'
Exception ignored in:
Traceback (most recent call last):
File "/sonic/src/sonic-platform-daemons/sonic-psud/scripts/psud", line 412, 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'
running bdist_wheel
running build
running build_py
Generating grammar tables from /usr/lib/python3.9/lib2to3/Grammar.txt
Generating grammar tables from /usr/lib/python3.9/lib2to3/PatternGrammar.txt
running build_scripts
copying and adjusting scripts/psud -> build/scripts-3.9
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
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
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-py3.9.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.9/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 'dist/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
/sonic
Build end time: Fri Jul 4 08:54:03 UTC 2025
Elapsed time: 0h 0m 22s
|