Conversation
Signed-off-by: Xuanwo <github@xuanwo.io>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
| name: Python Torch Tests (3.11 Linux) | ||
| runs-on: "ubuntu-24.04" | ||
| timeout-minutes: 45 | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| working-directory: python | ||
| env: | ||
| UV_PYTHON: "3.11" | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| lfs: true | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: 3.11 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| enable-cache: true | ||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: python | ||
| prefix-key: ${{ env.CACHE_PREFIX }} | ||
| cache-targets: false | ||
| cache-workspace-crates: true | ||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt update | ||
| sudo apt install -y protobuf-compiler libssl-dev | ||
| - name: Sync torch environment | ||
| run: | | ||
| uv sync --frozen --project python/tests/torch_tests | ||
| - name: Run torch tests | ||
| run: make test-torch | ||
|
|
||
| pandas: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
| name: Python Pandas/SQL Tests (3.11 Linux) | ||
| runs-on: "ubuntu-24.04" | ||
| timeout-minutes: 45 | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| working-directory: python | ||
| env: | ||
| UV_PYTHON: "3.11" | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| lfs: true | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: 3.11 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| enable-cache: true | ||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: python | ||
| prefix-key: ${{ env.CACHE_PREFIX }} | ||
| cache-targets: false | ||
| cache-workspace-crates: true | ||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt update | ||
| sudo apt install -y protobuf-compiler libssl-dev | ||
| - name: Sync pandas environment | ||
| run: | | ||
| uv sync --frozen --project python/tests/pandas_tests | ||
| - name: Run pandas tests | ||
| run: make test-pandas | ||
|
|
||
| tensorflow: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix this issue, you should set an explicit permissions block in the workflow, restricting permissions to the minimum required. The best approach is to add permissions: contents: read at the workflow root—line 2, after the name: declaration—so that all jobs inherit this minimal permission unless they require more or override it. This satisfies principle of least privilege and the CodeQL rule. No additional imports or methods are needed in a GitHub Actions workflow file; the edit is purely to the YAML.
If any later jobs are shown to require additional permissions, they would need overrides, but for the sections shown (torch, pandas, tensorflow, etc.), only code checkout and test running occurs, so contents: read should be sufficient.
| @@ -1,4 +1,6 @@ | ||
| name: Python | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: |
This PR is based on #5210 --- This PR intends to add a blob arrow extension type (aka, logical type) in lance. **This PR was primarily authored with Codex using GPT-5-Codex and then hand-reviewed by me. I AM responsible for every change made in this PR. I aimed to keep it aligned with our goals, though I may have missed minor issues. Please flag anything that feels off, I'll fix it quickly.** --------- Signed-off-by: Xuanwo <github@xuanwo.io>
This PR is based on lance-format#5210 --- This PR intends to add a blob arrow extension type (aka, logical type) in lance. **This PR was primarily authored with Codex using GPT-5-Codex and then hand-reviewed by me. I AM responsible for every change made in this PR. I aimed to keep it aligned with our goals, though I may have missed minor issues. Please flag anything that feels off, I'll fix it quickly.** --------- Signed-off-by: Xuanwo <github@xuanwo.io>
This updates the Python contributor docs to prefer `uv` for local environment initialization and day-to-day command execution, while keeping the documented `Makefile` targets unchanged. I intentionally did not migrate CI in this PR. We have already tried broader `uv` rollouts in #4221 and are still carrying a larger CI refactor in #5210; the current Python workflows still have materially different dependency shapes across lint, wheel-install test, benchmark, and optional Torch / TensorFlow / Ray paths, so I don't see a single environment definition we can switch to safely without a dedicated CI pass. This keeps the local guidance moving in the right direction without pretending the CI environment has already been unified. No tests were run because this is a docs-only change.
This PR will refactor our python dep management into
uventirely.This PR was primarily authored with Codex using GPT-5-Codex and then hand-reviewed by me. I AM responsible for every change made in this PR. I aimed to keep it aligned with our goals, though I may have missed minor issues. Please flag anything that feels off, I'll fix it quickly.