fix(matter_server): consolidate JS server flag fixes#4533
fix(matter_server): consolidate JS server flag fixes#4533markvp wants to merge 2 commits intohome-assistant:masterfrom
Conversation
…paa-root-cert-dir, ota-provider-dir) Agent-Logs-Url: https://github.com/markvp/addons/sessions/238bfeae-78d0-4eb0-9a7a-80d099578af7 Co-authored-by: markvp <6936351+markvp@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR updates Matter Server from version 8.3.0 to 8.4.0 and modifies the startup script to conditionally forward arguments based on server type. Arguments like Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
--log-level-sdkfrom the shared argument list into the Python-only (non-beta) code path viaextra_args, matching the existing pattern for server-specific options--paa-root-cert-dirfrom the shared argument list into the Python-only (non-beta) code path viaextra_args, matching the existing pattern for server-specific options--ota-provider-dirfrom the shared argument list into both server-specific code paths viaextra_argsdeclare log_level_sdkand top-level config read--log-level-sdkand emitsWarning: --log-level-sdk is deprecated and no longer supported. This option will be ignored.on every startup--paa-root-cert-dirand emitsWarning: --paa-root-cert-dir is deprecated and no longer supported. This option will be ignored.on every startup--ota-provider-dirwhenenable_test_net_dclis also enabled, since the JS server requires both flags for custom OTA files to be used--ota-provider-dirunconditionally, as the Python server uses it independently to load local OTA update filesNote on configuration UI
Ideally the
log_level_sdkconfiguration option would be hidden or disabled in the UI whenbeta: trueis set, since it has no effect on the JS server. However, the Home Assistant add-on schema system does not currently support conditional field visibility based on other option values, so this is not possible without upstream changes to the add-on config framework. The option is harmless when present — it is simply not read or passed through.Test plan
beta: true— verify no--log-level-sdkdeprecation warning in logsbeta: falseand a non-defaultlog_level_sdkvalue — verify--log-level-sdkis still passed correctly to the Python serverbeta: true— verify no--paa-root-cert-dirdeprecation warning in logsbeta: false— verify--paa-root-cert-diris still passed correctly to the Python serverbeta: true,enable_test_net_dcl: false— verify no OTA warning in logs,--ota-provider-diris not passedbeta: true,enable_test_net_dcl: true— verify--ota-provider-diris passed alongside--enable-test-net-dclbeta: false— verify--ota-provider-diris still passed unconditionally to the Python serverFixes #4516, #4518, #4520
Replaces #4517, #4519, #4521
Summary by CodeRabbit