Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/engine-watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Set up uv
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
version: "0.12.0"
version: "0.13.10"
enable-cache: false

- name: Compare the engine with the mark
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
# Retry transient network failures (a connection reset failed a whole examples job on #8897); the
# script is downloaded first so a retried transfer is never piped half-written into sh.
installer="$(mktemp)"
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.12.0/install.sh
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.13.10/install.sh
sh "$installer"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$PATH"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Release native (arcadedb)
# starts release-jvm.yml, which publishes `arcadedb-jvm`; the two workflows do not wait for each other.
#
# The build and the tests are test-native.yml, called with `release: true` (the full matrix: linux-x86_64, linux-aarch64,
# macos-arm64 and windows-x64, each on Python 3.11 to 3.14, and the `pyver` job: the linux-x86_64 wheel on Python 3.15 and on the
# free-threaded 3.14t). A native image build takes about 5 to 30 minutes per platform; this workflow adds
# no build of its own. The way the JVM release calls test-jvm.yml is the model.
# macos-arm64 and windows-x64, each on Python 3.11 to 3.15, and the `pyver` job: the linux-x86_64 wheel on the free-threaded
# 3.14t). A native image build takes about 5 to 30 minutes per platform; this workflow adds no build of its own. The way the JVM
# release calls test-jvm.yml is the model.
#
# PyPI keys a trusted publisher on this FILENAME and on the job's environment, so do not rename either without changing the publisher
# on PyPI at the same time:
Expand All @@ -16,13 +16,13 @@ name: Release native (arcadedb)
# The GitHub environment `pypi` only accepts deployments from tags that match [0-9]*. There is one environment and one publish job for
# dev, final and post releases.
#
# What is published (the `verify` job decides, the `publish` job uploads). Every kind of release also needs the two `pyver` legs to have
# passed (3.15 and 3.14t on the linux-x86_64 wheel; the other platforms are not tested on them):
# What is published (the `verify` job decides, the `publish` job uploads). Every kind of release also needs the `pyver` leg to have
# passed (free-threaded 3.14t on the linux-x86_64 wheel; the other platforms are not tested on it):
# A.B.C.devN the parity run of linux-x86_64, linux-aarch64 and macos-arm64 passed on every Python. windows-x64 is published too when it
# passed on every Python, and is informational otherwise.
# A.B.C, A.B.C.postN ONLY when the readiness bar is met: the repository variable ARCADEDB_NATIVE_READINESS_BAR_MET is `true` (a maintainer
# sets it after checking the correctness fixes and the fault and concurrency probes), the parity run of ALL four platforms
# on ALL four Pythons passed, and no test is a NOTYET skip (test-native.yml passes --max-notyet 0 for a final version).
# on ALL five Pythons passed, and no test is a NOTYET skip (test-native.yml passes --max-notyet 0 for a final version).
# Speed parity is not part of the bar. The bar is written down in docs/modules/ROOT/pages/development/release.adoc.
#
# Nothing here stores a token: the publish job authenticates with PyPI trusted publishing (OIDC), and only that job has the id-token
Expand Down Expand Up @@ -147,9 +147,9 @@ jobs:
set -euo pipefail
mkdir -p passed dist
ls -l passed wheels
pythons="3.11 3.12 3.13 3.14"
pythons="3.11 3.12 3.13 3.14 3.15"
# the `pyver` legs of a release (scripts/select_native_matrix.py; tests/test_select_native_matrix.py checks that this list is the same)
pyver_pythons="3.15 3.14t"
pyver_pythons="3.14t"
if [ "$FINAL" = true ]; then
required="linux-x86_64 linux-aarch64 macos-arm64 windows-x64"
if [ "$BAR" != true ]; then
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-jvm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The JVM build: the `arcadedb-jvm` distribution. release-jvm.yml calls this workflow on a version tag and publishes the wheels it builds.
# One wheel per platform, py3-none-<platform tag> (setup.py): the `build` job builds each once, and the `test` job installs that one file
# into every Python (3.11 to 3.14) and runs the suite. The jars and the bundled JRE do not depend on the Python, so nothing is built per Python.
# into every Python (3.11 to 3.15) and runs the suite. The jars and the bundled JRE do not depend on the Python, so nothing is built per Python.
# The native build, `arcadedb`, is test-native.yml / release-native.yml.
name: Test JVM (arcadedb-jvm)

Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
# Retry transient network failures (a connection reset failed a whole examples job on #8897); the
# script is downloaded first so a retried transfer is never piped half-written into sh.
installer="$(mktemp)"
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.12.0/install.sh
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.13.10/install.sh
sh "$installer"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$PATH"
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
# Retry transient network failures (a connection reset failed a whole examples job on #8897); the
# script is downloaded first so a retried transfer is never piped half-written into sh.
installer="$(mktemp)"
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.12.0/install.sh
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.13.10/install.sh
sh "$installer"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$PATH"
Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:
# Retry transient network failures (a connection reset failed a whole examples job on #8897); the
# script is downloaded first so a retried transfer is never piped half-written into sh.
installer="$(mktemp)"
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.12.0/install.sh
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.13.10/install.sh
sh "$installer"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$PATH"
Expand Down Expand Up @@ -483,7 +483,7 @@ jobs:
# Retry transient network failures (a connection reset failed a whole examples job on #8897); the
# script is downloaded first so a retried transfer is never piped half-written into sh.
installer="$(mktemp)"
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.12.0/install.sh
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.13.10/install.sh
sh "$installer"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$PATH"
Expand Down Expand Up @@ -805,7 +805,7 @@ jobs:
echo "**Legs**: a push to main, the nightly run, a manual run, a release and a pull request with the label ci:full run every platform. The jobs of this run list its legs." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "ℹ️ **Note**: Some platform/Python combinations are excluded from testing on every event:" >> $GITHUB_STEP_SUMMARY
echo "- Windows ARM64 (GitHub-hosted windows-11-arm runners exist, but jpype1 1.7.1 ships no win_arm64 wheel and GraalVM CE 25.4.4.1.1 has no Windows ARM64 build, so neither package can be built there)" >> $GITHUB_STEP_SUMMARY
echo "- Windows ARM64 (GitHub-hosted windows-11-arm runners exist, but jpype1 1.8.0 ships no win_arm64 wheel and GraalVM CE 25.4.4.1.1 has no Windows ARM64 build, so neither package can be built there)" >> $GITHUB_STEP_SUMMARY
echo "- macOS x86_64 (temporarily disabled)" >> $GITHUB_STEP_SUMMARY
else
echo "❌ **Some legs failed testing**" >> $GITHUB_STEP_SUMMARY
Expand Down
43 changes: 21 additions & 22 deletions .github/workflows/test-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
#
# A native image build takes about 5 to 30 minutes per platform and the ArcadeData organisation shares a runner cap with
# upstream ArcadeDB, so the load is selective (scripts/select_native_matrix.py holds the legs, tests/test_select_native_matrix.py pins them):
# pull request only when a native path changed (the `paths` filter below); linux-x86_64 and the newest Python (3.14), the parity
# pull request only when a native path changed (the `paths` filter below); linux-x86_64 and the newest Python (3.15), the parity
# suite in shards, no `pyver` and no example leg (the fast tier: its checks finish in about 10 minutes, #517); not
# for a draft. With the label ci:full, or opened by Dependabot: the legs of a push to main (scripts/ci_tier.py decides)
# push to main only when a native path changed; all four platforms, Python 3.12 and 3.14
# nightly all four platforms, Python 3.12 and 3.14, but only when something besides docs changed in the last 25 hours (a full run on Mondays)
# dispatch all four platforms, Python 3.12 and 3.14
# workflow_call from release-native.yml with `release: true`: all four platforms, Python 3.11 to 3.14
# push to main only when a native path changed; all four platforms, Python 3.12 and 3.15
# nightly all four platforms, Python 3.12 and 3.15, but only when something besides docs changed in the last 25 hours (a full run on Mondays)
# dispatch all four platforms, Python 3.12 and 3.15
# workflow_call from release-native.yml with `release: true`: all four platforms, Python 3.11 to 3.15
# weekly from test-native-snapshot.yml with `engine-snapshot: true`: the legs of a pull request against upstream's engine snapshot
#
# The native library (the image build, about 11 minutes) is cached for linux-x86_64 under a key of everything it is built from: the
Expand All @@ -19,9 +19,10 @@
# This workflow never publishes: it has no id-token permission and no environment.
#
# Beside the full parity runs, the `pyver` job installs the already built linux-x86_64 wheel (py3-none: no rebuild) into the Pythons the full
# runs of the event leave out (main, nightly, dispatch: 3.11, 3.13; a release: none; a pull request runs no leg of this job), into 3.15 (the full suite
# needs jpype1 and ladybug, which have no cp315 wheel yet, so 3.15 runs without the test files that need jpype1) and into the free-threaded 3.14t, and runs a small subset of the tests there (about 20 s of tests per Python). A release needs it: a leg that passes uploads a marker (native-passed-pyver-py<version>), and release-native.yml
# publishes nothing unless the legs of a release (3.15 and the free-threaded 3.14t) passed. Only linux-x86_64 is checked on them.
# runs of the event leave out (main, nightly, dispatch: 3.11, 3.13, 3.14; a release: none; a pull request runs no leg of this job) and into the
# free-threaded 3.14t, and runs a small subset of the tests there (about 20 s of tests per Python). A release needs it: a leg that passes uploads a
# marker (native-passed-pyver-py<version>), and release-native.yml publishes nothing unless the leg of a release (the free-threaded 3.14t) passed.
# Only linux-x86_64 is checked on it.
# scripts/select_native_matrix.py decides its legs.
#
# The `examples` job runs every script of examples/ against the installed wheel of each platform (Python 3.12 and 3.14; a pull request of the fast tier: none), through
Expand Down Expand Up @@ -98,7 +99,7 @@ on:
default: ""
type: string
release:
description: "The release legs: all four platforms and Python 3.11 to 3.14 (otherwise the small main/nightly legs)"
description: "The release legs: all four platforms and Python 3.11 to 3.15 (otherwise the small main/nightly legs)"
required: false
default: false
type: boolean
Expand All @@ -120,7 +121,7 @@ on:
default: ""
type: string
legs:
description: "full = all four platforms, Python 3.12 and 3.14; pull-request = linux-x86_64 and Python 3.14 only, in shards (what a pull request runs)"
description: "full = all four platforms, Python 3.12 and 3.15; pull-request = linux-x86_64 and Python 3.15 only, in shards (what a pull request runs)"
required: false
default: "full"
type: choice
Expand Down Expand Up @@ -149,7 +150,7 @@ permissions:
env:
GRAALVM_VERSION: "25.4.4.1.1"
GRAALVM_BASE: https://github.com/graalvm/graalvm-ce-builds/releases/download/graal-25.4.4.1.1
UV_VERSION: "0.12.0"
UV_VERSION: "0.13.10"
PYTHONUTF8: "1" # Windows defaults to cp1252; the notices contain non-ASCII author names
# The version and engine of a run that does not pass them (pull request, push, nightly). The newest engine release on Maven Central is what an A.B.C.devN wheel links
# (the A.B.C release does not exist yet); raise it when a newer release is out.
Expand Down Expand Up @@ -1067,11 +1068,12 @@ jobs:
# the test files, not the whole suite. The legs are the supported Pythons the full parity runs of this event leave out, plus the
# free-threaded 3.14t (scripts/select_native_matrix.py).
# Part of the release gate (ArcadeData/arcadedb-python#349): a leg that passes uploads the marker native-passed-pyver-py<version> (the file name of
# the wheel it installed), and `verify` in release-native.yml requires the markers of the legs a release has (3.15 and 3.14t, see
# scripts/select_native_matrix.py), so a red leg stops the release. Only the linux-x86_64 wheel is checked on these Pythons.
# the wheel it installed), and `verify` in release-native.yml requires the marker of the leg a release has (3.14t, see
# scripts/select_native_matrix.py), so a red leg stops the release. Only the linux-x86_64 wheel is checked on it.
# 3.14t runs without polars, and so without test_dataframe_ingest.py (it imports polars at module level): polars ships abi3 wheels only
# (polars and polars-runtime-32 have no cp314t wheel, and an abi3 wheel cannot be installed on a free-threaded build). The other
# dependencies of the subset (numpy, pandas, pyarrow, jpype1, requests) all have cp314t wheels. polars is an optional extra of the wheel.
# JPype 1.8.0 and later turn the GIL back on when they are imported, so a test file that imports jpype runs with the GIL on 3.14t.
pyver:
name: Python ${{ matrix.python }} on the wheel (linux-x86_64)
needs: [plan, build]
Expand Down Expand Up @@ -1131,8 +1133,9 @@ jobs:
files="$files,test_dataframe_ingest.py"
with_polars=(--with polars)
fi
# No jpype1 wheel for this Python (3.15): leave out test_parameter_binding.py (it imports jpype at module level) and test_vector.py
# (four tests build Java arrays with it). Everything else of the subset needs no JVM bridge.
# A Python without a jpype1 wheel (NO_JPYPE_PYTHONS in scripts/select_native_matrix.py, none today): leave out
# test_parameter_binding.py (it imports jpype at module level) and test_vector.py (four tests build Java arrays with it).
# Everything else of the subset needs no JVM bridge.
with_jpype=(--with jpype1)
if [ "$WITH_JPYPE" != true ]; then
files="$(printf '%s' "$files" | tr ',' '\n' | grep -v -x -F -e test_parameter_binding.py -e test_vector.py | paste -sd, -)"
Expand All @@ -1145,14 +1148,13 @@ jobs:
python native/wheel/parity_wheel.py --repo "$GITHUB_WORKSPACE" --files "$files" \
--out "$T/parity/parity-wheel.tsv" --cores "0-$((cores - 1))" | tee "$T/parity/parity-wheel.run.log"

# A free-threaded leg only means something if the GIL stays off once the wheel and the extension modules are loaded.
# A free-threaded leg only means something if the GIL stays off once the wheel and the extension modules are loaded. JPype is left out:
# the wheel does not depend on it, and since 1.8.0 importing it turns the GIL back on.
- name: Report whether the GIL is enabled
run: |
set -euo pipefail
w="$(ls "$T"/wheel/*.whl)"
with_jpype=(--with jpype1)
if [ "$WITH_JPYPE" != true ]; then with_jpype=(); fi
uv run --no-project --python "$PY" --with "$w" --with numpy --with pandas --with pyarrow ${with_jpype[@]+"${with_jpype[@]}"} python - <<'PY' | tee -a "$GITHUB_STEP_SUMMARY"
uv run --no-project --python "$PY" --with "$w" --with numpy --with pandas --with pyarrow python - <<'PY' | tee -a "$GITHUB_STEP_SUMMARY"
import os
import sys

Expand All @@ -1161,9 +1163,6 @@ jobs:
import pandas # noqa: F401
import pyarrow # noqa: F401

if os.environ["WITH_JPYPE"] == "true":
import jpype # noqa: F401

gil = sys._is_gil_enabled() if hasattr(sys, "_is_gil_enabled") else True
print(f"python {sys.version.split()[0]}, GIL enabled after loading the wheel and its dependencies: {gil}")
if os.environ["FREE_THREADED"] == "true" and gil:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-python-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ jobs:
# Retry transient network failures (a connection reset failed a whole examples job on #8897); the
# script is downloaded first so a retried transfer is never piped half-written into sh.
installer="$(mktemp)"
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.12.0/install.sh
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.13.10/install.sh
sh "$installer"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$PATH"
Expand Down Expand Up @@ -371,7 +371,7 @@ jobs:
# Retry transient network failures (a connection reset failed a whole examples job on #8897); the
# script is downloaded first so a retried transfer is never piped half-written into sh.
installer="$(mktemp)"
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.12.0/install.sh
curl -LsSf --retry 5 --retry-all-errors --retry-delay 5 -o "$installer" https://astral.sh/uv/0.13.10/install.sh
sh "$installer"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$PATH"
Expand Down
Loading
Loading