-
-
Notifications
You must be signed in to change notification settings - Fork 11k
Use native Rust tests for Rust frontend #21805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,8 +36,7 @@ export PATH="${portable_ruby_bindir}:${PATH}" | |
| ## Build | ||
|
|
||
| ```bash | ||
| cd Library/Homebrew/rust/brew-rs | ||
| rake build | ||
| ./bin/brew vendor-install brew-rs | ||
| ``` | ||
|
Comment on lines
36
to
40
|
||
|
|
||
| ## Enable | ||
|
|
@@ -58,19 +57,20 @@ prints a handoff warning before delegating back to Ruby. | |
|
|
||
| ```bash | ||
| cd Library/Homebrew/rust/brew-rs | ||
| rake check | ||
| cargo fmt --check | ||
| cargo clippy --all-targets --locked -- -D warnings | ||
| cargo test --locked | ||
| ``` | ||
|
|
||
| ## Homebrew Checks | ||
|
|
||
| ```bash | ||
| HOMEBREW_NO_AUTO_UPDATE=1 ./bin/brew tests --only=cmd/brew_rs --no-parallel | ||
| HOMEBREW_NO_AUTO_UPDATE=1 ./bin/brew typecheck | ||
| HOMEBREW_NO_AUTO_UPDATE=1 ./bin/brew lgtm | ||
| ``` | ||
|
|
||
| The `cmd/brew_rs` integration spec is intentionally small because integration | ||
| tests are slow. It currently covers the Rust-owned `search` and `list` flows. | ||
| The Rust frontend tests now live in the `brew-rs` crate and the dedicated | ||
| `brew-rs` GitHub Actions workflow instead of `brew tests`. | ||
|
|
||
| ## Benchmark | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./bin/brew vendor-install brew-rsassumes the repository root as the working directory, but this guidance appears insideLibrary/Homebrew/rust/brew-rs/AGENTS.mdwhere earlier instructions were explicitly run from within this directory. Please clarify “from the repo root” or update the command to a correct relative path fromLibrary/Homebrew/rust/brew-rs.