Skip to content

fix(rust): compile jobs without remote feature - #4103

Merged
Xuanwo merged 4 commits into
lancedb:mainfrom
Risto0211:fix/job-without-remote
Oct 24, 2026
Merged

Xuanwo merged 4 commits into
lancedb:mainfrom
Risto0211:fix/job-without-remote

Conversation

@Risto0211

Copy link
Copy Markdown
Contributor

What

Move typed job decode error construction behind a feature-aware helper so builds without the remote feature do not reference Error::Http. Local decode failures continue to surface as Error::Runtime, while remote builds retain HTTP errors with request IDs.

Add a regression test for local typed-result decode failures.

Closes #4096.

Testing

  • cargo fmt --all -- --check
  • cargo check -p lancedb --no-default-features
  • cargo test -p lancedb --no-default-features job::tests::local_typed_result_decode_errors_are_runtime_errors

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added bug Something isn't working Rust Rust related issues labels Sep 1, 2026
lancedb-gatekeeper[bot]

This comment was marked as outdated.

@lancedb-gatekeeper lancedb-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. K-risk Latest Gatekeeper recommendation includes a non-blocking risk. labels Sep 1, 2026
# Conflicts:
#	rust/lancedb/src/job.rs
@lancedb-gatekeeper lancedb-gatekeeper Bot removed K-risk Latest Gatekeeper recommendation includes a non-blocking risk. K-approved Latest Gatekeeper recommendation permits acceptance. labels Oct 23, 2026

@lancedb-gatekeeper lancedb-gatekeeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Gate recommendation: approve.

The compile fix has already landed in #4233; this PR now adds only a focused test that malformed local typed results return Error::Runtime. It complements the existing remote-origin decode tests and passes without remote on this head.

The earlier workflow-coverage limitation is unchanged in the target branch and does not prevent accepting this test-only addition.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Oct 23, 2026

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Adds the regression test asserting local typed job decode failures surface as Error::Runtime, matching the no-remote fix already in main (#4233). Verified against latest main; full Rust/Python/NodeJS CI passed (one infra rerun for the localstack pull auth error).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance. Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

job.rs references Error::Http unconditionally though the variant is remote-gated — fails to compile without the "remote" feature

2 participants