-
Notifications
You must be signed in to change notification settings - Fork 42
Reduce logging noise from security.py and update concurrency settings #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
|
@copilot Drop |
Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
|
@copilot Replace |
Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
|
@copilot |
…_value Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
Done in 4dc374b. Updated:
Ruff linting passes and test_concurrency_auto_config passes with both test cases (FormedLaunchpadCC26X2R1=16, FormedZStack1CC2531=4). |
|
@copilot |
Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
Done in 8c1e649. Added |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #265 +/- ##
==========================================
+ Coverage 98.03% 98.52% +0.49%
==========================================
Files 43 43
Lines 3605 3586 -19
==========================================
- Hits 3534 3533 -1
+ Misses 71 53 -18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot Coverage for the two logging statements is missing. Walk through the conditions required to trigger them and add a unit test for these codepaths (a single one covering both is fine), match the style and patterns of surrounding tests. |
Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
Done in 00dc971. Added test_read_devices_skips_unknown_link_keys in tests/tools/test_security_logging.py that:
|
|
@copilot revert your last commit. |
Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
Reduce logging noise from security.py and update concurrency settings
Summary
Changed two
LOGGER.warningcalls toLOGGER.debuginzigpy_znp/znp/security.pyto reduce log noise during periodic backups. Also updated CI configuration to remove deprecated parameters, migrated unit tests to useserial_asyncio_fast, updated concurrency settings from 2 to 4 to align with zigpy's automatic concurrency adjustment (which increases values below 4 to a minimum of 4), updated semaphore API usage frommax_valuetomax_concurrencyto match the current zigpy API, and fixed thelocked()method call to pass the requiredpriorityparameter.Files Changed
zigpy_znp/znp/security.py: Changed 2 lines (warning → debug).github/workflows/ci.yml: Removed PRE_COMMIT_CACHE_PATH and PYTHON_VERSION_DEFAULTtests/conftest.py: Changed serial_asyncio to serial_asyncio_fasttests/test_uart.py: Changed serial_asyncio to serial_asyncio_fast (import and mock)zigpy_znp/zigbee/application.py: Updated concurrency from 2→4 and max_value→max_concurrencytests/application/test_startup.py: Updated test expectations (2→4, max_value→max_concurrency)tests/application/test_requests.py: Added priority=0 parameter to locked() callTesting
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.