Skip to content

HQD-588: add a unit tree for request rate (RPS) prices - #6

Merged
SilverFire merged 1 commit into
hiqdev:masterfrom
bladeroot:HQD-588
Oct 26, 2026
Merged

SilverFire merged 1 commit into
hiqdev:masterfrom
bladeroot:HQD-588

Conversation

@bladeroot

Copy link
Copy Markdown
Member

Adds the rps tree: rps (base unit, factor 1) and krps (factor 1000), following the same shape as every other tree (bps, power, ...).

There is no generator for units-tree.php, so it is hand-edited to match units-tree.yml.

  • Adds a float assertion to UnitTest covering 1500 rps = 1.5 krps — the existing assertConvert() helper only compares integer factors.
  • Adds UnitsTreeConsistencyTest to catch the yml/php trees drifting apart in the future, since nothing else enforces that they agree.

Add the rps tree: rps (base unit, factor 1) and krps (factor 1000),
following the same shape as every other tree (bps, power, ...). There
is no generator for units-tree.php, so it is hand-edited to match
units-tree.yml.

Add a float assertion to UnitTest covering 1500 rps = 1.5 krps - the
existing assertConvert() helper only compares integer factors. Add
UnitsTreeConsistencyTest to catch the yml/php trees drifting apart in
the future, since nothing else enforces that they agree.
@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aa6a4c21-7dc3-4e00-904e-1ea2762d8848
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@SilverFire
SilverFire merged commit 3338dd9 into hiqdev:master Oct 26, 2026
7 checks passed
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