Skip to content

fix status and use devplane as source of truth - #489

Open
patelspratik wants to merge 1 commit into
mainfrom
fixwrongstatus
Open

patelspratik wants to merge 1 commit into
mainfrom
fixwrongstatus

Conversation

@patelspratik

@patelspratik patelspratik commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

fixed mismatch between UI and CLI because CLI was still using brev-deploy/workspaces to drive status

new dev-plane client and site updates, made the PR a bit chatty

  • store.NewDevPlaneClient builds one authenticated ConnectRPC bundle (Instances, Environments, Organizations, ExternalNodes, ManagedSecrets) over a shared HTTP client with CLI attribution params.

small bug fix that's failing on main from merge conflicts

@patelspratik
patelspratik force-pushed the fixwrongstatus branch 2 times, most recently from 49cbfdf to e2479dc Compare October 2, 2026 23:21
@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.87248% with 57 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.86%. Comparing base (6c85c4e) to head (39f22d0).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
pkg/environment/status.go 76.08% 10 Missing and 1 partial ⚠️
pkg/cmd/ls/ls.go 68.75% 8 Missing and 2 partials ⚠️
pkg/store/environment_status.go 0.00% 9 Missing ⚠️
pkg/cmd/gpucreate/gpucreate.go 85.00% 5 Missing and 1 partial ⚠️
pkg/environment/client.go 83.78% 4 Missing and 2 partials ⚠️
pkg/store/devplane_client.go 88.23% 3 Missing and 1 partial ⚠️
pkg/cmd/mintcert/mintcert.go 0.00% 3 Missing ⚠️
pkg/cmd/ports/update.go 62.50% 3 Missing ⚠️
pkg/cmd/util/externalnode.go 60.00% 2 Missing ⚠️
pkg/cmd/launch/secrets.go 0.00% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #489      +/-   ##
==========================================
+ Coverage   33.51%   34.86%   +1.35%     
==========================================
  Files         153      156       +3     
  Lines       21654    21787     +133     
==========================================
+ Hits         7257     7597     +340     
+ Misses      13624    13396     -228     
- Partials      773      794      +21     
Flag Coverage Δ
Linux 34.86% <80.87%> (+1.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@patelspratik
patelspratik force-pushed the fixwrongstatus branch 5 times, most recently from 836f146 to 797360b Compare October 13, 2026 22:00

// toProtoNodeSpec converts the local HardwareProfile (used for collection, display,
// persistence) to the generated proto NodeSpec for RPC calls.
func toProtoNodeSpec(hw *HardwareProfile) *nodev1.NodeSpec {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is a move from pkg/cmd/register/rpcclient.go


func (p staticTokenProvider) GetAccessToken() (string, error) { return p.token, nil }

func Test_toProtoNodeSpec(t *testing.T) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

move from pkg/cmd/register/rpcclient_test.go

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

new dev-plane client centralization. some of this came from pkg/cmd/register/rpcclient.go

@patelspratik
patelspratik marked this pull request as ready for review October 13, 2026 22:35
@patelspratik
patelspratik requested a review from a team as a code owner October 13, 2026 22:35
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