Compare commits

...

4 Commits

Author SHA1 Message Date
lancedb automation
f33fc7a3e9 chore: update lance dependency to v1.0.0-rc.1 2025-12-03 05:08:41 +00:00
Jack Ye
9252077e70 Merge 26c105205c into 3cd73f9f5a 2025-12-02 14:48:15 -08:00
Jack Ye
26c105205c trigger ci 2025-12-02 14:48:03 -08:00
Jack Ye
8192648abc ci: fix bot sophon access 2025-12-02 14:45:42 -08:00
4 changed files with 78 additions and 53 deletions

View File

@@ -1,6 +1,9 @@
name: Codex Update Lance Dependency
on:
pull_request:
paths:
- '.github/workflows/codex-update-lance-dependency.yml'
workflow_call:
inputs:
tag:
@@ -11,7 +14,8 @@ on:
inputs:
tag:
description: "Tag name from Lance"
required: true
required: false
default: "v1.0.0-rc.1"
type: string
permissions:
@@ -25,7 +29,7 @@ jobs:
steps:
- name: Show inputs
run: |
echo "tag = ${{ inputs.tag }}"
echo "tag = ${{ inputs.tag || 'v1.0.0-rc.1' }}"
- name: Checkout Repo LanceDB
uses: actions/checkout@v4
@@ -65,7 +69,7 @@ jobs:
- name: Run Codex to update Lance dependency
env:
TAG: ${{ inputs.tag }}
TAG: ${{ inputs.tag || 'v1.0.0-rc.1' }}
GITHUB_TOKEN: ${{ secrets.ROBOT_TOKEN }}
GH_TOKEN: ${{ secrets.ROBOT_TOKEN }}
OPENAI_API_KEY: ${{ secrets.CODEX_TOKEN }}
@@ -99,9 +103,29 @@ jobs:
printenv OPENAI_API_KEY | codex login --with-api-key
codex --config shell_environment_policy.ignore_default_excludes=true exec --dangerously-bypass-approvals-and-sandbox "$(cat /tmp/codex-prompt.txt)"
- name: Debug token access
env:
GH_TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: |
set -euo pipefail
echo "=== Checking authenticated user ==="
gh api user --jq '.login' || echo "Failed to get user info"
echo ""
echo "=== Listing repos in lancedb org that token can access ==="
gh repo list lancedb --limit 50 --json name,visibility --jq '.[] | "\(.name) (\(.visibility))"' || echo "Failed to list repos"
echo ""
echo "=== Checking if sophon repo exists and is accessible ==="
gh repo view lancedb/sophon --json name,visibility 2>&1 || echo "Cannot access lancedb/sophon"
echo ""
echo "=== Checking token scopes ==="
gh api -i user 2>&1 | grep -i "x-oauth-scopes" || echo "Could not determine token scopes"
- name: Trigger sophon dependency update
env:
TAG: ${{ inputs.tag }}
TAG: ${{ inputs.tag || 'v1.0.0-rc.1' }}
GH_TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: |
set -euo pipefail

68
Cargo.lock generated
View File

@@ -3102,8 +3102,8 @@ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
[[package]]
name = "fsst"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow-array",
"rand 0.9.2",
@@ -4460,8 +4460,8 @@ dependencies = [
[[package]]
name = "lance"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow",
"arrow-arith",
@@ -4526,8 +4526,8 @@ dependencies = [
[[package]]
name = "lance-arrow"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4545,8 +4545,8 @@ dependencies = [
[[package]]
name = "lance-bitpacking"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrayref",
"paste",
@@ -4555,8 +4555,8 @@ dependencies = [
[[package]]
name = "lance-core"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4592,8 +4592,8 @@ dependencies = [
[[package]]
name = "lance-datafusion"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow",
"arrow-array",
@@ -4623,8 +4623,8 @@ dependencies = [
[[package]]
name = "lance-datagen"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow",
"arrow-array",
@@ -4641,8 +4641,8 @@ dependencies = [
[[package]]
name = "lance-encoding"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow-arith",
"arrow-array",
@@ -4679,8 +4679,8 @@ dependencies = [
[[package]]
name = "lance-file"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow-arith",
"arrow-array",
@@ -4712,8 +4712,8 @@ dependencies = [
[[package]]
name = "lance-geo"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"datafusion",
"geo-types",
@@ -4724,8 +4724,8 @@ dependencies = [
[[package]]
name = "lance-index"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow",
"arrow-arith",
@@ -4786,8 +4786,8 @@ dependencies = [
[[package]]
name = "lance-io"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow",
"arrow-arith",
@@ -4827,8 +4827,8 @@ dependencies = [
[[package]]
name = "lance-linalg"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4844,8 +4844,8 @@ dependencies = [
[[package]]
name = "lance-namespace"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow",
"async-trait",
@@ -4857,8 +4857,8 @@ dependencies = [
[[package]]
name = "lance-namespace-impls"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow",
"arrow-ipc",
@@ -4896,8 +4896,8 @@ dependencies = [
[[package]]
name = "lance-table"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow",
"arrow-array",
@@ -4936,8 +4936,8 @@ dependencies = [
[[package]]
name = "lance-testing"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
version = "1.0.0-rc.1"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-rc.1#a9b9a7ef8853ec0650ab266f1528f91f735d3b0f"
dependencies = [
"arrow-array",
"arrow-schema",

View File

@@ -15,20 +15,20 @@ categories = ["database-implementations"]
rust-version = "1.78.0"
[workspace.dependencies]
lance = { "version" = "=1.0.0-beta.16", default-features = false, "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-core = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-datagen = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-file = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-io = { "version" = "=1.0.0-beta.16", default-features = false, "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-index = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-linalg = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-namespace = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-namespace-impls = { "version" = "=1.0.0-beta.16", default-features = false, "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-table = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-testing = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-datafusion = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-encoding = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-arrow = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance = { "version" = "=1.0.0-rc.1", default-features = false, "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-core = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-datagen = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-file = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-io = { "version" = "=1.0.0-rc.1", default-features = false, "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-index = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-linalg = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-namespace = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-namespace-impls = { "version" = "=1.0.0-rc.1", default-features = false, "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-table = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-testing = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-datafusion = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-encoding = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
lance-arrow = { "version" = "=1.0.0-rc.1", "tag" = "v1.0.0-rc.1", "git" = "https://github.com/lance-format/lance.git" }
ahash = "0.8"
# Note that this one does not include pyarrow
arrow = { version = "56.2", optional = false }

View File

@@ -260,7 +260,8 @@ else:
if version.startswith("v"):
version = version[1:]
if "beta" in version:
prerelease_tokens = ("beta", "rc", "alpha")
if any(token in version for token in prerelease_tokens):
set_preview_version(version)
else:
set_stable_version(version)