Skip to content

fix(search): make CPU instances discoverable - #455

Open
theFong wants to merge 1 commit into
mainfrom
codex/improve-cpu-search-discovery
Open

fix(search): make CPU instances discoverable#455
theFong wants to merge 1 commit into
mainfrom
codex/improve-cpu-search-discovery

Conversation

@theFong

@theFong theFong commented Aug 22, 2026

Copy link
Copy Markdown
Member

Summary

  • make the search command and root help explicitly advertise both GPU and CPU instance discovery
  • reject unknown positional tokens such as brev search cpus or brev search CPU instead of silently running a GPU search
  • expose gpu and cpu as valid arguments for completion
  • preserve brev search as the default GPU search

Why

CPU inventory already exists behind brev search cpu, but agents have to guess that exact subcommand. Worse, misspellings and pluralization currently succeed while returning GPU results, which makes the CPU path especially difficult to discover and diagnose.

Validation

  • go build ./...
  • go test -race ./pkg/cmd/gpusearch
  • go vet ./pkg/cmd/gpusearch
  • golangci-lint run ./pkg/cmd/gpusearch

Related to #376. This PR intentionally limits scope to search discoverability; CPU create support remains separate.

@theFong
theFong requested a review from a team as a code owner August 22, 2026 21:26
@codecov

codecov Bot commented Aug 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.30%. Comparing base (17ccd79) to head (570af91).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #455      +/-   ##
==========================================
+ Coverage   24.67%   26.30%   +1.62%     
==========================================
  Files         134      135       +1     
  Lines       18337    18627     +290     
==========================================
+ Hits         4525     4899     +374     
+ Misses      13335    13227     -108     
- Partials      477      501      +24     
Flag Coverage Δ
Linux 26.30% <100.00%> (+1.62%) ⬆️

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.

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