Skip to content

Fix python packet item ordering#2675

Merged
ryanmelt merged 2 commits intomainfrom
overlap
Dec 24, 2025
Merged

Fix python packet item ordering#2675
ryanmelt merged 2 commits intomainfrom
overlap

Conversation

@jmthomas
Copy link
Copy Markdown
Member

@jmthomas jmthomas commented Dec 23, 2025

The implementation in openc3/python/openc3/packets/structure_item.py did not match that of the Ruby version and the OVERLAP flag on the ITEM BYTES in the INST2 IMAGE packet was still showing up as a bit overlap warning. This was fixed along with a bunch of additional unit tests that claude created.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.32%. Comparing base (db71e0b) to head (0569c12).
⚠️ Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2675      +/-   ##
==========================================
+ Coverage   79.25%   79.32%   +0.07%     
==========================================
  Files         662      662              
  Lines       52419    52433      +14     
  Branches      734      734              
==========================================
+ Hits        41547    41595      +48     
+ Misses      10792    10758      -34     
  Partials       80       80              
Flag Coverage Δ
python 81.43% <ø> (+0.15%) ⬆️
ruby-api 84.48% <ø> (+0.05%) ⬆️
ruby-backend 82.23% <100.00%> (+0.02%) ⬆️

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
KEY $.item1
UNITS CELSIUS C
OVERLAP
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These aren't overlapped. Why mark OVERLAP?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I was seeing this overlap before I fixed the ordering ... will fix

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual issue was that structure items with parent_item should not be included in the bit offset overlap calculation because they share the same bit offset

@jmthomas jmthomas requested a review from ryanmelt December 23, 2025 22:33
@ryanmelt ryanmelt merged commit 2b421e5 into main Dec 24, 2025
28 checks passed
@ryanmelt ryanmelt deleted the overlap branch December 24, 2025 16:35
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.

2 participants