Skip to content

Fix: Update repeated field checks to use is_repeated property#908

Open
pdxlocations wants to merge 3 commits intomeshtastic:masterfrom
pdxlocations:fix-label-error
Open

Fix: Update repeated field checks to use is_repeated property#908
pdxlocations wants to merge 3 commits intomeshtastic:masterfrom
pdxlocations:fix-label-error

Conversation

@pdxlocations
Copy link
Member

@pdxlocations pdxlocations commented Mar 1, 2026

Update protobuf field-inspection logic to use is_repeated instead of label where needed.

I have not tested for backwards compatibility.

@codecov
Copy link

codecov bot commented Mar 1, 2026

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.84%. Comparing base (d0ccb1a) to head (b003214).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
meshtastic/__main__.py 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #908      +/-   ##
==========================================
+ Coverage   59.82%   59.84%   +0.01%     
==========================================
  Files          24       24              
  Lines        4329     4333       +4     
==========================================
+ Hits         2590     2593       +3     
- Misses       1739     1740       +1     
Flag Coverage Δ
unittests 59.84% <57.14%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pdxlocations
Copy link
Member Author

Tested with older protobuf dependencies and we'd need bump to >=6.31.0 or add a fallback.

@pdxlocations pdxlocations marked this pull request as draft March 1, 2026 16:47
@pdxlocations pdxlocations marked this pull request as ready for review March 1, 2026 16:59
@pdxlocations
Copy link
Member Author

pdxlocations commented Mar 1, 2026

Helper function added to test for is_repeated and fallback to label if not present.
Tested with the current minimum dependency of 4.4.21 3.20.3 and up to 7.34.0.

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.

1 participant