GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tags · braintrustdata/bt
Tags
canary-b19512c1f12afix(eval): build the go runner on windows (#491) ## Summary Follow-up to #490, which enabled `bt eval` (and `mod go_runner`) on Windows. This PR fixes the Go-specific Windows problems and runs the Go eval tests on Windows. The Go SDK's `evalrunner` already supports the TCP transport bt uses off Unix (`BT_EVAL_SSE_ADDR`), so the remaining blockers were on bt's side: | Problem on Windows | Fix | |---|---| | `resolve_go_toolchain` looked for `$GOROOT/bin/go` (it is `go.exe`) | `go_in_goroot` uses `go{EXE_SUFFIX}` | | `go_package_dir` used `std::fs::canonicalize` → `\\?\C:\...` passed to `go list` / `go run` | `dunce::canonicalize` (already a dependency) | | Package hint rendered `./cmd\a` | `display_go_package_dir_from` always joins with `/` | | Go unit tests hand-built `go list` JSON with unescaped paths and stubbed `go` with `#!/bin/sh` | JSON built with `serde_json::json!`; stub is `go` (sh) on Unix, `go.cmd` on Windows; `#[cfg(unix)]` removed from `eval::tests::go` | New tests: `eval::tests::go::list_packages_reads_a_real_module` (runs the real `go list` under `lock_env()`), `go_in_goroot_finds_the_platform_executable`, `display_go_package_dir_is_relative_with_forward_slashes`. The real-toolchain test skips when no working `go` is present, but fails when `BT_EVAL_REQUIRED_RUNTIMES` contains `go`. CI: `eval-tests-go` now uses a matrix over `ubuntu-latest` and `windows-latest`, installs Go 1.26.0 through mise, and sets `BT_EVAL_REQUIRED_RUNTIMES=go`. --------- Co-authored-by: Abhijeet Prasad <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> canary-3354e40ae147feat(eval): enable bt eval on windows (#490) ## Summary `bt eval` was compiled out of Windows builds: `mod eval`, `mod go_runner`, and `Commands::Eval` were behind `#[cfg(unix)]` in `src/main.rs`. This PR removes the gate and fixes what broke once eval ran on Windows. On non-unix, the runner SSE channel already falls back to TCP (`BT_EVAL_SSE_ADDR`), and both runners accept it. Windows fixes: - `runner_sse::forward_stream`, `js_runner::runner_bin_name`, and `is_ts_node_runner_path` no longer have `cfg(unix)`. `runner_bin_name` strips `.exe` as well as `.cmd`, so `bun.exe` maps to `RunnerKind::Bun`. - npm/pnpm install an extensionless sh shim next to `tsx.cmd`, which `CreateProcess` cannot run. `js_runner::executable_candidates(path)` now appends `.exe` and `.cmd` and tries those before the bare path on Windows. Elsewhere it returns only the bare path. Paths that already end in `.exe`, `.cmd`, or `.bat` are used as given. - These candidates are used by `find_node_module_bin`, both `find_binary_in_path` functions (the Python and Go lookups), and path-like `--runner` values such as `./node_modules/.bin/vite-node`. - `Command::new("npx")` does not resolve `npx.cmd`. The tsx/vite-node fallbacks now use `js_runner::npx_program()`, which looks up `npx` on PATH first. CI: the new `eval-tests-windows` job (`windows-latest`, added to `checks-passed`) runs the eval/runner unit tests, the `eval_fixtures` suite for Node, Bun and Python, and `eval_dev_server`. Test changes: - Tests that hardcoded `python3` now use `common::find_python()`, deduplicated from `tests/functions.rs`. - Tests that spawned the bare `tsx`/`ts-node` shims now use the `.cmd` launcher on Windows. - The Python max-concurrency fixture serializes its event-log appends, because concurrent appends are not atomic on Windows. Test trimming: - Removed the `fixture.json` files from the three matrix-param fixtures. Dedicated tests already run them, with stronger assertions. - Removed the `params-kv` fixtures, which `params-multi` covers. - Folded single-input error cases for param, matrix and filter parsing into table-driven tests. - Added tests for launcher lookup and runner-name normalization. README: removed the Unix-only wording from the command table and the roadmap, and removed the Current Limitations section. Go evals compile on Windows but are not run there yet; that work is happening separately. --------- Co-authored-by: Abhijeet Prasad <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> canary-04dfaadbaf99feat(datasets)!: support replacing and clearing row tags (#486) > 🤖 **This text was AI-generated.** Dataset updates previously combined incoming tags with the row's existing tags, so an empty list could not clear them. The update command and its add and refresh aliases now replace tags when the field is present. Supply a list of unique strings, use [] to clear all tags, or omit the field to preserve the current tags. A tag-only update needs just the row ID and the new list. ```sh bt datasets update my-dataset --rows '[{"id":"case-1","tags":["reviewed"]}]' ``` BREAKING CHANGE: To keep existing tags while adding new ones, pass the complete list of tags you want the row to have. Refs: SDK-956 Upstream: braintrustdata/braintrust#26086 canaryfix(eval): build the go runner on windows (#491) ## Summary Follow-up to #490, which enabled `bt eval` (and `mod go_runner`) on Windows. This PR fixes the Go-specific Windows problems and runs the Go eval tests on Windows. The Go SDK's `evalrunner` already supports the TCP transport bt uses off Unix (`BT_EVAL_SSE_ADDR`), so the remaining blockers were on bt's side: | Problem on Windows | Fix | |---|---| | `resolve_go_toolchain` looked for `$GOROOT/bin/go` (it is `go.exe`) | `go_in_goroot` uses `go{EXE_SUFFIX}` | | `go_package_dir` used `std::fs::canonicalize` → `\\?\C:\...` passed to `go list` / `go run` | `dunce::canonicalize` (already a dependency) | | Package hint rendered `./cmd\a` | `display_go_package_dir_from` always joins with `/` | | Go unit tests hand-built `go list` JSON with unescaped paths and stubbed `go` with `#!/bin/sh` | JSON built with `serde_json::json!`; stub is `go` (sh) on Unix, `go.cmd` on Windows; `#[cfg(unix)]` removed from `eval::tests::go` | New tests: `eval::tests::go::list_packages_reads_a_real_module` (runs the real `go list` under `lock_env()`), `go_in_goroot_finds_the_platform_executable`, `display_go_package_dir_is_relative_with_forward_slashes`. The real-toolchain test skips when no working `go` is present, but fails when `BT_EVAL_REQUIRED_RUNTIMES` contains `go`. CI: `eval-tests-go` now uses a matrix over `ubuntu-latest` and `windows-latest`, installs Go 1.26.0 through mise, and sets `BT_EVAL_REQUIRED_RUNTIMES=go`. --------- Co-authored-by: Abhijeet Prasad <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> v0.33.0chore: release v0.33.0 (#484) Merging this PR updates the crate version to 0.33.0. The stable release workflow will create tag v0.33.0 and publish the release after the configured GitHub Environment approval. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> canary-374920a9642achore: release v0.33.0 (#484) Merging this PR updates the crate version to 0.33.0. The stable release workflow will create tag v0.33.0 and publish the release after the configured GitHub Environment approval. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> canary-7215451c2f9dfeat(functions): Add Service Tier Flag (#480) closes [SDK-853](https://linear.app/braintrustdata/issue/SDK-853) canary-ef77b080ba39Honor explicit API URLs after login (#481) Explicit API URLs now remain in effect after login, so bt can reach private data planes. Organization discovery still chooses the endpoint when no override is configured. Thanks to @paultancre-bt for identifying the issue and the original fix and integration test in #479. Depends on braintrustdata/braintrust-sdk-rust#170; update the SDK revision after it merges. Validation: focused login context and functions integration tests; cargo fmt. canary-819dfa8a5e4aPass command arguments to tracing integration (#477) Pass parsed command-line arguments to the tracing integration so it can distinguish explicit choices from defaults while continuing to use `bt`'s existing profile, organization, project, and credential selection. Depends on [the shared repository tracing change](braintrustdata/braintrust-coding-agent-plugins#294). Update the daemon pin to its merged commit before merging this PR. Validated with locked Cargo checks and isolated CLI tests for repository installation, uninstall, doctor, and plugin inheritance. PreviousNext
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |