Repository navigation
fix: gate remote job error construction behind the remote feature - #4233
Merged
Merged
Conversation
There was a problem hiding this comment.
The feature-aware helper restores the crate’s default/no-remote build while preserving request-ID-bearing Error::Http failures for remote typed jobs; the targeted tests pass in both configurations.
The remaining risk is regression durability: the existing workspace “without remote” workflow still enables remote through binding-crate feature unification, so the new non-remote branch is not exercised there. A package-scoped no-default-features check, as demonstrated in #4100, would close that gap; it is not a prerequisite to accept this fix.
meta-codesync Bot
pushed a commit
to meta/sapling
that referenced
this pull request
Oct 5, 2026
Summary: Upgrading `lancedb` from `0.37.1-beta.1` to `0.40.0-beta.12` (git rev `3d8c9e2ddc61ce819f42bd56c4b56ee0fd4ae769`), and the lance crate family from `11.0.0-beta.3` to `13.1.0-beta.1` (github.com/fbsource/lance `e5a3553b1699a7062ff7afe4ee268d596bbf2e0d`, tag v13.1.0-beta.1). - Purpose: pulls in lance-format/lance#9148 (`e6a3e8f3d099`), which stops an unindexed filtered scan from eagerly decoding `List<Float32>` columns for every row of every fragment. Verified with a model-free lancedb repro (12 fragments x 8 rows x 4 KiB `List<Float32>`, filter `id IN (...)`): the filter-phase scan now projects `[id, n_tokens, token_dim]` with bytes_read 50.54 K, and `flat_vector` is taken late for the 3 matching rows only (12.53 K). On 11.0.0-beta.3 the filter phase projected `flat_vector` too and read 447.6 K. - All 21 `[patch."https://github.com/lance-format/lance.git"]` entries moved to the new rev; autocargo regenerated the mirrored patch sections. - New overlay `third-party/rust/fixups/lancedb/overlay/src/job.rs`: the vendored `job.rs` with exactly the hunks of upstream lancedb/lancedb#4233 (head `8d11d4ab649fb5634ad53d936c84db79aebb96cf`, still open) applied, fixing lancedb/lancedb#4142. lancedb >= 0.38 does not compile without its `remote` feature (`job.rs` constructs the `remote`-gated `Error::Http`); fbsource enables only `sentence-transformers`. Scoped to `=0.40.0-beta.12`; delete when the pinned lancedb contains #4233. - `third-party/rust/fixups/lance-linalg`: compile the new AMX-FP16 kernel `src/simd/amx_fp16.c` as a `cxx_library` on x86_64 Linux with the build script's flags (same pattern as the existing `dist_table.c` entry). The build script sets `kernel_support="amx_fp16"`, but Buck2 does not link its cc output, which left `lance_amx_*` undefined at link time. - `third-party/rust/fixups/lancedb`: async-trait `narrow_to` version selector moved to the new version (upstream still declares `async-trait = "0"`). - Transitive: `lance-namespace-reqwest-client` 0.8.6 -> 0.13.0; `object_store` 0.14.2 added alongside 0.12.5/0.13.2. No other Cargo.lock changes. - Reviewer note: on AMX-FP16 hosts (Granite Rapids+), lance 13 routes f16 dot products and IVF partition assignment through the AMX kernel, chosen at runtime via CPUID; `LANCE_DISABLE_AMX=1` restores the previous path. - No fbcode fixes needed. All 144 Rust targets that transitively depend on `fbsource//third-party/rust:lancedb` were checked with arc rust-check: Bindle (99 targets) has 0 errors. semcode, perf_mcp and fbcode/scripts/czakian/pear fail with the same errors before and after this diff (pre-existing: fbsource `arrow` 57 vs lancedb's arrow 58.4.0, which is unchanged here; the `Table::add_columns` builder API; unrelated tree-sitter-python and sha2 breaks; pear has no sources). - Bindle model-free ranking tests pass (27/27). Bindle lance storage tests show no regression against the base revision: the failures seen (ASAN stack overflows in checkpoint_integration_test, DeltaSealInProgress, a peak-RSS budget, a lease-transfer timeout, and a deprecated-API build failure in lancedb_multi_writer_test) all reproduce at base, where they are as frequent or more frequent. Reviewed By: dtolnay Differential Revision: D123262780 fbshipit-source-id: 2cc9059dbbe36b4cc691ffeaed786f31d16f0446
meta-codesync Bot
pushed a commit
to facebookexperimental/rust-shed
that referenced
this pull request
Oct 5, 2026
Summary: Upgrading `lancedb` from `0.37.1-beta.1` to `0.40.0-beta.12` (git rev `3d8c9e2ddc61ce819f42bd56c4b56ee0fd4ae769`), and the lance crate family from `11.0.0-beta.3` to `13.1.0-beta.1` (github.com/fbsource/lance `e5a3553b1699a7062ff7afe4ee268d596bbf2e0d`, tag v13.1.0-beta.1). - Purpose: pulls in lance-format/lance#9148 (`e6a3e8f3d099`), which stops an unindexed filtered scan from eagerly decoding `List<Float32>` columns for every row of every fragment. Verified with a model-free lancedb repro (12 fragments x 8 rows x 4 KiB `List<Float32>`, filter `id IN (...)`): the filter-phase scan now projects `[id, n_tokens, token_dim]` with bytes_read 50.54 K, and `flat_vector` is taken late for the 3 matching rows only (12.53 K). On 11.0.0-beta.3 the filter phase projected `flat_vector` too and read 447.6 K. - All 21 `[patch."https://github.com/lance-format/lance.git"]` entries moved to the new rev; autocargo regenerated the mirrored patch sections. - New overlay `third-party/rust/fixups/lancedb/overlay/src/job.rs`: the vendored `job.rs` with exactly the hunks of upstream lancedb/lancedb#4233 (head `8d11d4ab649fb5634ad53d936c84db79aebb96cf`, still open) applied, fixing lancedb/lancedb#4142. lancedb >= 0.38 does not compile without its `remote` feature (`job.rs` constructs the `remote`-gated `Error::Http`); fbsource enables only `sentence-transformers`. Scoped to `=0.40.0-beta.12`; delete when the pinned lancedb contains #4233. - `third-party/rust/fixups/lance-linalg`: compile the new AMX-FP16 kernel `src/simd/amx_fp16.c` as a `cxx_library` on x86_64 Linux with the build script's flags (same pattern as the existing `dist_table.c` entry). The build script sets `kernel_support="amx_fp16"`, but Buck2 does not link its cc output, which left `lance_amx_*` undefined at link time. - `third-party/rust/fixups/lancedb`: async-trait `narrow_to` version selector moved to the new version (upstream still declares `async-trait = "0"`). - Transitive: `lance-namespace-reqwest-client` 0.8.6 -> 0.13.0; `object_store` 0.14.2 added alongside 0.12.5/0.13.2. No other Cargo.lock changes. - Reviewer note: on AMX-FP16 hosts (Granite Rapids+), lance 13 routes f16 dot products and IVF partition assignment through the AMX kernel, chosen at runtime via CPUID; `LANCE_DISABLE_AMX=1` restores the previous path. - No fbcode fixes needed. All 144 Rust targets that transitively depend on `fbsource//third-party/rust:lancedb` were checked with arc rust-check: Bindle (99 targets) has 0 errors. semcode, perf_mcp and fbcode/scripts/czakian/pear fail with the same errors before and after this diff (pre-existing: fbsource `arrow` 57 vs lancedb's arrow 58.4.0, which is unchanged here; the `Table::add_columns` builder API; unrelated tree-sitter-python and sha2 breaks; pear has no sources). - Bindle model-free ranking tests pass (27/27). Bindle lance storage tests show no regression against the base revision: the failures seen (ASAN stack overflows in checkpoint_integration_test, DeltaSealInProgress, a peak-RSS budget, a lease-transfer timeout, and a deprecated-API build failure in lancedb_multi_writer_test) all reproduce at base, where they are as frequent or more frequent. Reviewed By: dtolnay Differential Revision: D123262780 fbshipit-source-id: 2cc9059dbbe36b4cc691ffeaed786f31d16f0446
Xuanwo
approved these changes
Oct 22, 2026
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.
Summary
Fixes #4142:
lancedbfailed to compile without theremotefeature.TerminalResult::decodeinrust/lancedb/src/job.rsconstructed theError::Httpvariant unconditionally, but that variant is declared behind#[cfg(feature = "remote")]inrust/lancedb/src/error.rs. Since thecrate's default feature set is empty, a plain
lancedb = "0.38"dependencyfailed with:
The module itself is not remote-only (it carries local job support), so
instead of gating
pub mod job, bothError::Httpconstructions now gothrough a small
remote_job_errorhelper that resolves toError::Httpwith the
remotefeature and falls back toError::Runtimewithout it.A
request_idis only everSomefor remote jobs, so the fallback isunreachable in practice without the feature.
Testing
main:cargo check -p lancedb --no-default-featuresfailed with the exactE0599 errors from the issue before the change, and passes after it.
cargo check -p lancedb --features remotepasses with no errors and nonew warnings.
rust/lancedb/src/job.rs(
decode_missing_result_uses_feature_appropriate_error,decode_unparsable_result_uses_feature_appropriate_error) asserting theerror variant matches the feature configuration. The test code compiles
under the fixed configuration (
cargo check --testspasses), and thebranching logic was executed standalone against both feature cfgs
(3/3 green with and without
remote). The fullcargo testbinary linkcould not complete on the small build VM available here (the linker
stalled), so CI coverage of the new tests is appreciated.
cargo fmt --all -- --checkis clean.Disclosure
AI assistance was used while preparing this change (code search, editing,
and verification commands were agent-driven); the diagnosis, fix design,
and all test results above were verified by actually running the builds.