pricing: a non-USD unit on a hostless or "*" block unprices the bundled table everywhere
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 86/100
調査の方向性
既存の multiplier のみを対象とする拒否処理の横にある起動設定のバリデーションから始め、その後 TestConfig_AUnitOnAMultiplierOnlyBlockIsRefused を調べます。ホストなしまたは "*" のブロックにおける USD 以外の単位について、テーブルの行または隣接するケースを追加し、起動時に拒否されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Found by an independent review of #1153 at 80348bfc (and raised by pdettori there as a suggestion); deferred by the author's call.
After #1153 a unit is host-wide, and only rows in an endpoint's unit may price its traffic. A block with unit: and no hosts: (or hosts: ["*"]) covers every endpoint, so every endpoint no more specific block names takes that unit — and the bundled dollar table stops pricing anything there.
Measured at 80348bfc with hosts: ["*"], unit: credits, models: {premium-ide} and the bundled table on:
api.anthropic.com claude-opus-4-1 unit=credits prov=none
At a66911e9 the same request was unit=USD prov=bundled. The unpricing is loud (unpricedBy names every pair); the other half is silent: a charge any of those endpoints reports itself is labelled credits.
Shape of a fix
Refuse a non-USD unit: on a hostless or "*" block at startup, beside the multiplier-only refusal — a unit is a gateway's, so its hosts should be named — with one row added to TestConfig_AUnitOnAMultiplierOnlyBlockIsRefused's table or a sibling.
Assisted-By: Claude (Anthropic AI) [email protected]
- 主要言語
- Go
- スター
- 18
- フォーク
- 42
- 平均マージ
- 12時間 31分
- マージ済み PR(30日)
- 258
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rossoctl/cortex のほかの issue
-
UI shows costs for all sessions even when drilled into a session対応中かも @esnible が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
rossoctl/cortex#1116 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
enhancement laptop
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
enhancement laptop
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 24/100
メンテナーはふだん 1 日以内に返信
-
laptop
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
rossoctl/cortex#1437 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
rossoctl/cortex の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
docker/sbx-releases#737 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
area/manager needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
kyma-project/telemetry-manager#3922 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
JakeChampion/lang#12965 ·
メンテナーはふだん 1 日以内に返信
-
hacktoberfest priority: low skill: good first issue status: ready for dev
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
hyperledger-labs/fabric-smart-client#2218 ·
メンテナーはふだん 1 日以内に返信