Content

상위 폴더로 이동
Build start time: Fri Jul 4 09:04:25 UTC 2025
[ REASON ] :      target/python-wheels/bullseye/sonic_thermalctld-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-thermalctld /sonic
running pytest
running egg_info
writing sonic_thermalctld.egg-info/PKG-INFO
writing dependency_links to sonic_thermalctld.egg-info/dependency_links.txt
writing top-level names to sonic_thermalctld.egg-info/top_level.txt
reading manifest file 'sonic_thermalctld.egg-info/SOURCES.txt'
writing manifest file 'sonic_thermalctld.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-thermalctld, configfile: pytest.ini
plugins: pyfakefs-5.8.0, cov-2.10.1
collecting ... collected 31 items

tests/test_thermalctld.py::TestFanStatus::test_set_presence PASSED       [  3%]
tests/test_thermalctld.py::TestFanStatus::test_set_under_speed PASSED    [  6%]
tests/test_thermalctld.py::TestFanStatus::test_set_over_speed PASSED     [  9%]
tests/test_thermalctld.py::TestFanUpdater::test_refresh_fan_drawer_status_fan_drawer_get_name_not_impl PASSED [ 12%]
tests/test_thermalctld.py::TestFanUpdater::test_update_fan_with_exception PASSED [ 16%]
tests/test_thermalctld.py::TestFanUpdater::test_set_fan_led_exception PASSED [ 19%]
tests/test_thermalctld.py::TestFanUpdater::test_fan_absent PASSED        [ 22%]
tests/test_thermalctld.py::TestFanUpdater::test_fan_faulty PASSED        [ 25%]
tests/test_thermalctld.py::TestFanUpdater::test_fan_under_speed PASSED   [ 29%]
tests/test_thermalctld.py::TestFanUpdater::test_fan_over_speed PASSED    [ 32%]
tests/test_thermalctld.py::TestFanUpdater::test_update_psu_fans PASSED   [ 35%]
tests/test_thermalctld.py::TestThermalMonitor::test_main PASSED          [ 38%]
tests/test_thermalctld.py::test_insufficient_fan_number PASSED           [ 41%]
tests/test_thermalctld.py::test_temperature_status_set_over_temper PASSED [ 45%]
tests/test_thermalctld.py::test_temperstatus_set_under_temper PASSED     [ 48%]
tests/test_thermalctld.py::test_temperature_status_set_not_available PASSED [ 51%]
tests/test_thermalctld.py::TestTemperatureUpdater::test_deinit PASSED    [ 54%]
tests/test_thermalctld.py::TestTemperatureUpdater::test_over_temper PASSED [ 58%]
tests/test_thermalctld.py::TestTemperatureUpdater::test_under_temper PASSED [ 61%]
tests/test_thermalctld.py::TestTemperatureUpdater::test_update_psu_thermals PASSED [ 64%]
tests/test_thermalctld.py::TestTemperatureUpdater::test_update_sfp_thermals PASSED [ 67%]
tests/test_thermalctld.py::TestTemperatureUpdater::test_update_thermal_with_exception PASSED [ 70%]
tests/test_thermalctld.py::TestTemperatureUpdater::test_update_module_thermals PASSED [ 74%]
tests/test_thermalctld.py::test_updater_thermal_check_modular_chassis PASSED [ 77%]
tests/test_thermalctld.py::test_updater_thermal_check_chassis_table PASSED [ 80%]
tests/test_thermalctld.py::test_updater_thermal_check_min_max PASSED     [ 83%]
tests/test_thermalctld.py::test_signal_handler PASSED                    [ 87%]
tests/test_thermalctld.py::test_daemon_run PASSED                        [ 90%]
tests/test_thermalctld.py::test_try_get PASSED                           [ 93%]
tests/test_thermalctld.py::test_update_entity_info PASSED                [ 96%]
tests/test_thermalctld.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_thermalctld.py:4
  /sonic/src/sonic-platform-daemons/sonic-thermalctld/tests/test_thermalctld.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  # TODO: 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-thermalctld/test-results.xml -

----------- coverage: platform linux, python 3.9.2-final-0 -----------
Name                  Stmts   Miss  Cover
-----------------------------------------
scripts/thermalctld     495     54    89%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml

======================== 31 passed, 2 warnings in 1.04s ========================
Exception ignored in: 
Traceback (most recent call last):
  File "/sonic/src/sonic-platform-daemons/sonic-thermalctld/scripts/thermalctld", line 189, in __del__
    table_keys = self.table.getKeys()
AttributeError: 'Table' object has no attribute 'getKeys'
Exception ignored in: 
Traceback (most recent call last):
  File "/sonic/src/sonic-platform-daemons/sonic-thermalctld/scripts/thermalctld", line 540, in __del__
    table_keys = self.table.getKeys()
AttributeError: 'Table' object has no attribute 'getKeys'
Exception ignored in: 
Traceback (most recent call last):
  File "/sonic/src/sonic-platform-daemons/sonic-thermalctld/scripts/thermalctld", line 540, in __del__
    table_keys = self.table.getKeys()
AttributeError: 'Table' object has no attribute 'getKeys'
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/thermalctld -> 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_thermalctld.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/mock_swsscommon.py -> build/bdist.linux-x86_64/wheel/tests
running install_egg_info
running egg_info
writing sonic_thermalctld.egg-info/PKG-INFO
writing dependency_links to sonic_thermalctld.egg-info/dependency_links.txt
writing top-level names to sonic_thermalctld.egg-info/top_level.txt
reading manifest file 'sonic_thermalctld.egg-info/SOURCES.txt'
writing manifest file 'sonic_thermalctld.egg-info/SOURCES.txt'
Copying sonic_thermalctld.egg-info to build/bdist.linux-x86_64/wheel/sonic_thermalctld-1.0-py3.9.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/sonic_thermalctld-1.0.data
creating build/bdist.linux-x86_64/wheel/sonic_thermalctld-1.0.data/scripts
copying build/scripts-3.9/thermalctld -> build/bdist.linux-x86_64/wheel/sonic_thermalctld-1.0.data/scripts
changing mode of build/bdist.linux-x86_64/wheel/sonic_thermalctld-1.0.data/scripts/thermalctld to 755
creating build/bdist.linux-x86_64/wheel/sonic_thermalctld-1.0.dist-info/WHEEL
creating 'dist/sonic_thermalctld-1.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'sonic_thermalctld-1.0.data/scripts/thermalctld'
adding 'tests/__init__.py'
adding 'tests/mock_platform.py'
adding 'tests/mock_swsscommon.py'
adding 'tests/test_thermalctld.py'
adding 'sonic_thermalctld-1.0.dist-info/METADATA'
adding 'sonic_thermalctld-1.0.dist-info/WHEEL'
adding 'sonic_thermalctld-1.0.dist-info/top_level.txt'
adding 'sonic_thermalctld-1.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
/sonic
Build end time: Fri Jul 4 09:04:35 UTC 2025
Elapsed time: 0h 0m 10s