Repository navigation
Rename Sierra ProjectBilling.dailyBudgetUsd to dailyBudget - #48
Open
kanazirsky wants to merge 3 commits into
Open
kanazirsky wants to merge 3 commits into
kanazirsky wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
🟢 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
dailyBudgetUsdfield todailyBudget; 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
force-pushed
the
fix/sierra-daily-budget
branch
from
December 3, 2026 01:15
0b250e7 to
9e6be85
Compare
- 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
force-pushed
the
fix/sierra-daily-budget
branch
from
December 3, 2026 01:26
9e6be85 to
e241a20
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The proto (api-definitions
505173a) renamedProjectBilling.daily_budget_usdtodaily_budget: the budget is now in the project's owncurrency, not USD.b1e70c6 solution: update APIsmoved the submodule to that commit, butConvertSierra.projectBilling()still calledhasDailyBudgetUsd()/getDailyBudgetUsd(), sopackages/coreno longer compiles on master.ProjectBilling.dailyBudgetUsd→dailyBudget, read withhasDailyBudget()/getDailyBudget()currency, not USDBreaking: consumers reading
dailyBudgetUsdneed to switch todailyBudget.Tested:
pnpm buildpasses 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.