mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-13 14:16:54 +00:00
Packages passed through `@udf(code=[...])` silently omit non-Python resources, so registration can appear successful before a worker fails to open a data file. Warn during function preparation with the omitted paths and document the source-only boundary next to `code=`. The diagnostic explains how to install a distribution that includes the data and remove the package from `code=` to avoid shadowing that installation. Python cache files do not produce warnings. Excluded directories are reported at their boundary, preserving the existing traversal and Python-source artifact format. This implements the warning-and-documentation alternative in ENT-3492; it does not add resource uploads. On EC2, the regression fails on baseline `f9389f113` because no warning is emitted; all 60 packaging tests pass at `e23445b96`, using the matching native extension built from unchanged Rust sources. CI-scoped Python lint with Ruff 0.9.9 passes. Whole-site Mintlify validation reports the same four snippet-import warnings on the baseline and this head; repository-root Ruff likewise reports the same 48 findings under `docs/web-tests`. These checks are not clean passes, but their failures do not involve this change. Fixes ENT-3492