Skip to content

Conversation

@jmthomas
Copy link
Member

@jmthomas jmthomas commented Jan 16, 2026

Read the commit messages to know what I did and why

jmthomas and others added 3 commits January 15, 2026 17:49
The '[[' construct is safer and more feature-rich, preventing word
splitting and pathname expansion issues. Scripts that run in Docker
containers with /bin/sh (Alpine/busybox) remain unchanged to maintain
POSIX compliance.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- logger.py: Rename DEBUG/INFO/WARN/ERROR/FATAL to DEBUG_VALUE/INFO_VALUE/
  WARN_VALUE/ERROR_VALUE/FATAL_VALUE to avoid clash with method names.
  Keep old names as backwards compatibility aliases.
- packet_item.py: Rename STATE_COLORS to VALID_STATE_COLORS to avoid
  clash with state_colors instance attribute.
- packet_config.py: Rename COMMAND/TELEMETRY to COMMAND_STRING/
  TELEMETRY_STRING to avoid clash with commands/telemetry attributes.
- Openc3Screen.vue: Add "falls through" comments for intentional switch
  case fallthrough in SUBSETTING and GLOBAL_SUBSETTING cases.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Thread-local storage is used intentionally for:
- Pipeline context tracking in Redis operations
- Topic offset tracking per-thread for stream reading

These are well-established Ruby patterns with proper cleanup.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.30%. Comparing base (8112540) to head (ff8231c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2738      +/-   ##
==========================================
- Coverage   79.22%   78.30%   -0.93%     
==========================================
  Files         670      473     -197     
  Lines       54178    34451   -19727     
  Branches      734      734              
==========================================
- Hits        42924    26977   -15947     
+ Misses      11174     7394    -3780     
  Partials       80       80              
Flag Coverage Δ
python 96.03% <ø> (+15.04%) ⬆️
ruby-api 84.19% <ø> (+0.04%) ⬆️
ruby-backend 82.22% <100.00%> (-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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we still use INFO and WARN to set the log level or do we need to use INFO_VALUE and WARN_VALUE?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sonar didn't like the constant INFO shadowing the method info. So I created aliases for INFO but yeah you would now use INFO_VALUE ... I don't really like that though. The INFO_LEVEL constant was already declared to be the string "INFO" ... that actually makes more sense as setting level = Logger.INFO_LEVEL. I don't like level = Logger.INFO_VALUE.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be clearer and avoid the shadowing problem by implementing the log levels as an enum, rather than as 5 separate variables?

Copy link
Contributor

Choose a reason for hiding this comment

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

Would something like this work?

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