Skip to content

Rename Sierra ProjectBilling.dailyBudgetUsd to dailyBudget - #48

Open
kanazirsky wants to merge 3 commits into
masterfrom
fix/sierra-daily-budget
Open

kanazirsky wants to merge 3 commits into
masterfrom
fix/sierra-daily-budget

Conversation

@kanazirsky

@kanazirsky kanazirsky commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

The proto (api-definitions 505173a) renamed ProjectBilling.daily_budget_usd to daily_budget: the budget is now in the project's own currency, not USD. b1e70c6 solution: update APIs moved the submodule to that commit, but ConvertSierra.projectBilling() still called hasDailyBudgetUsd() / getDailyBudgetUsd(), so packages/core no longer compiles on master.

  • ProjectBilling.dailyBudgetUsd → dailyBudget, read with hasDailyBudget() / getDailyBudget()
  • doc comment: the budget is in the project's currency, not USD
  • tests updated

Breaking: consumers reading dailyBudgetUsd need to switch to dailyBudget.

Tested: pnpm build passes and all 196 core unit tests pass.

Stacked on #49 (the Tailscale CI fix), so CI here can get past Connect Tailscale and run the tests. Merge #49 first.

@CLAassistant

CLAassistant commented Dec 3, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the Sierra billing type and proto accessor updates.

No open issues 🎉

What changed in this PR

Aligns Sierra billing types and conversion with the updated proto, fixing the obsolete accessor calls that prevented core compilation.

Changes:

  • Renames the public dailyBudgetUsd field to dailyBudget; consumers must migrate.
  • Clarifies that budgets use the project’s currency.
  • Updates tests while preserving zero-budget coverage.
File Description
packages/​core/​src/​typesSierra.ts Renames the field and proto accessors; updates currency documentation.
packages/​core/​src/​__tests__/​typesSierra.test.ts Uses the renamed setter and field in budget tests.

Review effort: Balanced

v2 runs `sudo -E tailscale up` and needs TS_EXPERIMENT_OAUTH_AUTHKEY passed through sudo, but the sudo on the
ubuntu-26.04 runners (ubuntu-latest since Nov 2026) ignores -E, so Tailscale rejected the OAuth key and every test job
failed at Connect Tailscale. v4 uses a current Tailscale that accepts OAuth keys without the flag.
@kanazirsky
kanazirsky force-pushed the fix/sierra-daily-budget branch from 0b250e7 to 9e6be85 Compare December 3, 2026 01:15
- the blockchain test sent two items with the same id 1, which the server now rejects as INVALID_ARGUMENT
- the web market tests had a 5s timeout, shorter than the other web integration tests, and getRates can take longer on staging
The proto renamed daily_budget_usd to daily_budget because the budget is in the project's own currency,
and the converter still called hasDailyBudgetUsd()/getDailyBudgetUsd(), which broke the build.
@kanazirsky
kanazirsky force-pushed the fix/sierra-daily-budget branch from 9e6be85 to e241a20 Compare December 3, 2026 01:26
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.

3 participants