Skip to content
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

Rolling up beta to production #1123

Merged
merged 8 commits into from
Dec 19, 2023
Merged

Rolling up beta to production #1123

merged 8 commits into from
Dec 19, 2023

Conversation

greens
Copy link
Contributor

@greens greens commented Dec 19, 2023

No description provided.

cjswedes and others added 8 commits December 11, 2023 13:09
The current way we parse the SSDP response headers can cause failures
in discovering Sonos speakers with unicode characters that require
more than one byte for their representation, such as CJK characters.

The current parsing patterns use the '`%g`' character class, which does
not parse characters that don't fit in a single byte; while Lua itself
is utf-8 compatible and it is safe to use multi-code-point graphemes or
clusters in Lua strings, the actual string library is byte-oriented for
many operations and the pattern used currently tries to match each byte
against the provided class.

'`.-`' works here instead, as it matches all bytes in a non-greedy way
(akin to '`.*?`' in PCRE).
Add profile to support 6-button matter button devices. This
means 6-button devieces will be supported as MCD rather than
parent-child.
…on-profile

Matter Button: add 6-button static profile support
Previous approach could have potentially accepted invalid headers. This
tweaks the parsing pattern to fail to find headers that don't coform to
the actual accepted structure of a header key.
@greens greens requested review from dljsjr, cjswedes and ctowns December 19, 2023 19:23
Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Dec 19, 2023

Channel deleted.

Copy link

Test Results

     55 files     347 suites   0s ⏱️
1 633 tests 1 633 ✔️ 0 💤 0
2 861 runs  2 861 ✔️ 0 💤 0

Results for commit 308acfe.

Copy link

matter-button_coverage.xml

File Coverage
All files 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-button/src/init.lua 92%

zwave-smoke-alarm_coverage.xml

File Coverage
All files 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-button/src/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/zwave-smoke-co-alarm-v2/fibaro-co-sensor-zw5/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/apiv6_bugfix/init.lua 87%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/fibaro-smoke-sensor/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/preferences.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-smoke-alarm/src/init.lua 92%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 308acfe

@greens greens merged commit ff5acf9 into production Dec 19, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants