Skip to content

AI review fixes for #3998 - #4032

Merged
ryanmelt merged 1 commit into
fix/obfuscate-given-valuesfrom
ai-review/pr-3998-38018577445
Oct 10, 2026
Merged

ryanmelt merged 1 commit into
fix/obfuscate-given-valuesfrom
ai-review/pr-3998-38018577445

Conversation

@openc3qa

Copy link
Copy Markdown
Collaborator

Fixes from the AI review of #3998 at 4f02be2. Merge this PR to apply them to fix/obfuscate-given-values; the review summary is on #3998.

  • fix(review): apply Claude review fixes (turn 1)

- openc3/python/openc3/packets/packet.py:1351 - SonarQube python:S7504 flagged the `list()` call used to delete keys during iteration, and the code changed the caller's `params` dict in place, because the Python `given_values` setter does not copy (Ruby's setter clones). Fix: build a new filtered dict instead, and use a set to look up the obfuscated names. This keeps Python consistent with Ruby.
- openc3/python/test/packets/test_packet.py:1914 - The new test copied the setup of test_obfuscates_a_single_uint_item almost line for line, which added to new_duplicated_lines_density (3.3 against a limit of 3). Fix: moved the given_values assertion, with mixed-case keys, into the existing test and removed the duplicate.
- openc3/spec/packets/packet_spec.rb:1856 - Same duplication in the Ruby spec. Fix: moved the given_values assertion into the existing 'obfuscates a single UINT item' spec and removed the duplicate.

AI-Review-Bot: true
AI-Review-Run: 38018577445
@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.12%. Comparing base (4f02be2) to head (421d490).

Additional details and impacted files
@@                      Coverage Diff                       @@
##           fix/obfuscate-given-values    #4032      +/-   ##
==============================================================
- Coverage                       80.14%   80.12%   -0.03%     
==============================================================
  Files                             901      901              
  Lines                           68378    68376       -2     
  Branches                         2646     2646              
==============================================================
- Hits                            54804    54788      -16     
- Misses                          12907    12921      +14     
  Partials                          667      667              
Flag Coverage Δ
python 80.14% <ø> (+<0.01%) ⬆️
ruby-api 82.40% <ø> (-0.31%) ⬇️
ruby-backend 85.66% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

@sonarqubecloud

Copy link
Copy Markdown

@ryanmelt
ryanmelt merged commit e01961d into fix/obfuscate-given-values Oct 10, 2026
36 of 41 checks passed
@ryanmelt
ryanmelt deleted the ai-review/pr-3998-38018577445 branch October 10, 2026 03:22
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