Skip to content

Comments

driver/power: Add sentry_sequential backend for single-bank models#1789

Open
ohporter wants to merge 1 commit intolabgrid-project:masterfrom
ohporter:sentry
Open

driver/power: Add sentry_sequential backend for single-bank models#1789
ohporter wants to merge 1 commit intolabgrid-project:masterfrom
ohporter:sentry

Conversation

@ohporter
Copy link
Contributor

@ohporter ohporter commented Dec 19, 2025

Description

Add a new power driver for Sentry PDUs that use sequential OID mapping. This supports single-bank models like CW-16V1 which number ports sequentially (1.1.1 through 1.1.16) rather than using the multi-bank scheme (6 banks of 8 outlets) used by models like CW-24VDD.

Documentation now describes both backends and explains when to use each one.

Verified on a Sentry CDU CW-16V1.

Checklist

  • Documentation for the feature
  • Tests for the feature
  • The arguments and description in doc/configuration.rst have been updated
  • PR has been tested

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.3%. Comparing base (81d768e) to head (5d98cf3).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1789     +/-   ##
========================================
+ Coverage    45.2%   45.3%   +0.1%     
========================================
  Files         174     175      +1     
  Lines       13752   13781     +29     
========================================
+ Hits         6224    6253     +29     
  Misses       7528    7528             
Flag Coverage Δ
3.10 45.3% <100.0%> (+0.1%) ⬆️
3.11 45.3% <100.0%> (+0.1%) ⬆️
3.12 45.3% <100.0%> (+0.1%) ⬆️
3.13 45.3% <100.0%> (+0.1%) ⬆️
3.14 45.3% <100.0%> (+0.1%) ⬆️
3.9 45.4% <100.0%> (+0.1%) ⬆️

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.

@ohporter ohporter force-pushed the sentry branch 2 times, most recently from c52abcc to 97ec4a9 Compare December 19, 2025 15:48
Add a new power backend for Sentry PDUs that use sequential OID mapping
(1.1.1 through 1.1.16) instead of the multi-bank mapping used by the
existing sentry backend. This is suitable for single-bank models like
the CW-16V1.

The original sentry backend remains unchanged for multi-bank models
like CW-24VDD and 4805-XLS-16.

Includes unit tests with 100% coverage for the new backend.

Signed-off-by: Matt Porter <mporter@konsulko.com>
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