mirror of
https://github.com/lancedb/lancedb.git
synced 2026-12-03 15:55:19 +00:00
## Problem The existing `cp310-abi3` wheel cannot be installed on free-threaded CPython 3.15. ## Changes - Keep `abi3-py310` in the default Cargo feature set and provide a separate native free-threaded build profile with the same Python distribution features. - Build and validate `cp315-cp315t` release wheels for Linux x86-64 and ARM64, macOS ARM64, and Windows x64; collect them with the existing release artifacts. - Add a Linux 3.15t CI job and tests for GIL state, concurrent operations, and persistence. The existing regular-Python jobs retain the full test suite. - Validate compressed manylinux platform tags against the expanded `WHEEL` metadata and use workspace-relative wheel paths in Python CI. ## Validation - Built and validated Windows x64 `lancedb-0.42.0b10-cp310-abi3-win_amd64.whl` and `lancedb-0.42.0b10-cp315-cp315t-win_amd64.whl` with Maturin 1.15.0 and `--profile ci`. - On the current PR commit `eecf193`, rebuilt the Windows x64 native wheel, installed it on official CPython 3.15.0t, and ran `python -m pytest python/python/tests/test_free_threaded.py -q`: 2 passed, including GIL state and concurrent database operations. - On the current PR commit, built a native Linux x86-64 `cp315-cp315t` wheel with Maturin 1.15.0 and `--profile ci`, validated its wheel metadata, installed it on CPython 3.15.2t, and ran `python -m pytest python/tests/test_free_threaded.py -q`: 2 passed. This local Linux wheel uses the native `linux_x86_64` platform tag, not a manylinux tag. - Cargo feature regression check, Ruff, Python syntax, workflow YAML parsing, and `git diff --check` passed. - `python -m unittest discover -s ci/tests -p test_check_python_wheel.py -v`: 4 passed on Windows and WSL Linux, including compressed manylinux tags and mismatched metadata. The workflow's corrected wheel glob was also checked from the `python` directory under WSL, and the two free-threaded runtime tests passed from that directory on Windows. The local ABI3 regression wheel was built before the rebase. The native Windows and Linux free-threaded wheels and concurrency tests were built from the current PR commit `eecf193`. The macOS and Linux manylinux release artifacts still need validation in upstream CI. The full test extra pulls optional dependencies requiring source builds on 3.15t, so the new job installs the wheel and focused test dependencies; regular jobs still run the full suite. The complete CI-script suite passed locally on WSL Linux at commit `eecf193`: `python3 -m unittest discover -s ci/tests -v` ran 39 tests successfully with Rust 1.97, a user-space GCC toolchain, and Python's `packaging` module. The upstream CI-script run is marked `action_required`. Closes #4641
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: CI scripts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- Cargo.toml
|
|
- python/pyproject.toml
|
|
- ci/check_cargo_lock.py
|
|
- ci/check_sdist.py
|
|
- ci/check_python_wheel.py
|
|
- ci/extract_sdk_doc_links.py
|
|
- ci/build_cli_linux.sh
|
|
- ci/package_cli.py
|
|
- ci/update_homebrew_formula.py
|
|
- .bumpversion.toml
|
|
- rust/lancedb/cli/Cargo.toml
|
|
- ci/set_lance_version.py
|
|
- ci/tests/**
|
|
- .github/workflows/ci-scripts.yml
|
|
pull_request:
|
|
paths:
|
|
- Cargo.toml
|
|
- python/pyproject.toml
|
|
- ci/check_cargo_lock.py
|
|
- ci/check_sdist.py
|
|
- ci/check_python_wheel.py
|
|
- ci/extract_sdk_doc_links.py
|
|
- ci/build_cli_linux.sh
|
|
- ci/package_cli.py
|
|
- ci/update_homebrew_formula.py
|
|
- .bumpversion.toml
|
|
- rust/lancedb/cli/Cargo.toml
|
|
- ci/set_lance_version.py
|
|
- ci/tests/**
|
|
- .github/workflows/ci-scripts.yml
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
name: Test CI scripts
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.13"
|
|
- name: Install test dependencies
|
|
run: python -m pip install packaging
|
|
- name: Run tests
|
|
run: python -m unittest discover -s ci/tests -v
|