Skip to content
Closed
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
10 changes: 5 additions & 5 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ App 15368 is GitHub Actions, the app the current checks are pinned to.

| Workflow | Job | PR tier | Queue tier | Post-merge tier |
|---|---|---|---|---|
| main.yml | `run-ci` | ubuntu-latest, Python 3.12 | ubuntu-latest, Python 3.12 | ubuntu-latest and macos-latest, Python 3.10 to 3.12 |
| main.yml | `run-ci` | ubuntu-latest, Python 3.12 | ubuntu-latest, Python 3.12 | ubuntu-latest and macos-latest, Python 3.11 and 3.12 |
| main.yml | `unsupported-python-guard` | no | no | Python 3.13 and 3.14 |
| packages.yml | `types`, `agent` | Python 3.12 | Python 3.12 | Python 3.10 and 3.12 |
| packages.yml | `types`, `agent` | Python 3.12 | Python 3.12 | Python 3.11 and 3.12 |
| packages.yml | `flow-lint`, `flow-critical`, `flow-onprem-offline` | yes | yes | yes |
| ci.yml | `smoke` (with the file-size ratchet against the base), `ci` | yes | yes | no |
| packages.yml | `flow-unit` | 3 shards packed by measured time, fast lane (without `nightly_only.txt`) | no | 2 shards, without the `live ` entries (nightly runs them) |
| packages.yml | `flow-native-census` | no | no | Windows and macOS |
| packages.yml | `capture-linux` | Python 3.12 | Python 3.12 | Python 3.10 (ubuntu-22.04), 3.11, 3.12 |
| packages.yml | `capture-linux` | Python 3.12 | Python 3.12 | Python 3.11 (ubuntu-22.04), 3.12 |
| packages.yml | `capture-macos`, `capture-windows` | no | no | yes |
| packages.yml | `capture-contract`, `capture-core-record` | yes | yes | yes |
| packages.yml | `privacy` | Python 3.12 | Python 3.12 | Python 3.10 to 3.12 |
| packages.yml | `privacy` | Python 3.12 | Python 3.12 | Python 3.11 and 3.12 |
| packages.yml | `privacy-presidio`, `privacy-contract` | yes | yes | yes |
| packages.yml | `tray` | Linux, Python 3.12 | Linux, Python 3.12 | Linux 3.10 to 3.12, macOS and Windows 3.12 |
| packages.yml | `tray` | Linux, Python 3.12 | Linux, Python 3.12 | Linux 3.11 and 3.12, macOS and Windows 3.12 |
| packages.yml | `tray-contract`, `tray-desktop-ipc`, `program-graph`, `install-weight` | yes | yes | yes |
| packages.yml | `desktop-release-intent` | yes | no | no |
| desktop-test.yml | `test-python` | ubuntu-latest, Python 3.12 | ubuntu-latest, Python 3.12 | Linux, macOS and Windows, Python 3.11 and 3.12 |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- run: uv python install 3.12
- name: Every lock installs on its oldest Python, on each platform
# The lane runs Python 3.12 on Linux; this catches a lock whose pins
# have no file for 3.10 or for macOS or Windows before main does.
# have no file for 3.11 or for macOS or Windows before main does.
run: python3 scripts/ci/check_lock_wheels.py
- name: Install, import and start each package from its lock
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flow-mcp-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
.venv/bin/python scripts/ci/locked_install.py \
--lock 'packages/flow[dev,agent,browser,langgraph]' \
--editable packages/types --editable packages/flow
uv pip install --python .venv/bin/python --index-url https://pypi.org/simple \
uv pip install --python .venv/bin/python --no-config --index-url https://pypi.org/simple \
--require-hashes --only-binary :all: \
--requirement scripts/ci/mcp-${{ matrix.mcp }}-py312-linux.requirements
uv pip check --python .venv/bin/python
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# 3.12), which the queue needs to report. A push to main and a
# dispatch run every supported Python on Linux and macOS.
os: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["ubuntu-latest"]' || '["ubuntu-latest", "macos-latest"]') }}
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.10", "3.11", "3.12"]') }}
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.11", "3.12"]') }}

steps:
- name: Checkout code
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:

# pip on Python 3.13 and 3.14 used to skip every current launcher (all
# capped below 3.13) and silently install openadapt 1.3.0, an unrelated
# pre-compiler CLI. The launcher now installs on any Python >=3.10 and keeps
# pre-compiler CLI. The launcher now installs on any Python >=3.11 and keeps
# the engine behind a version marker. This job proves, on the first
# unsupported interpreters, that the built wheel installs without the engine
# and that each engine command prints the Python 3.12 install fix.
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
grep -q "uv tool install --python 3.12 openadapt" <<<"$output"
done
help_text=$(openadapt --help)
grep -q "OpenAdapt needs Python 3.10" <<<"$help_text"
grep -q "OpenAdapt needs Python 3.11" <<<"$help_text"

- name: Run the Python support tests
run: |
Expand Down
58 changes: 29 additions & 29 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
# files by name, failing if any of them is skipped.
#
# openadapt-capture (packages/capture) keeps its own uv.lock, so its jobs run
# `uv sync --locked` against it: Linux on Python 3.10 (with the native AT-SPI
# smoke on ubuntu-22.04), 3.11 and 3.12; macOS and Windows unit suites, plus
# `uv sync --locked` against it: Linux on Python 3.11 (with the native AT-SPI
# smoke on ubuntu-22.04) and 3.12; macOS and Windows unit suites, plus
# the live recorder tests on Windows; lint; and the release contract. Flow's
# `capture` extra installs the in-tree capture, so a capture change also
# re-runs Flow.
#
# openadapt-privacy (packages/privacy) keeps its own uv.lock and runs
# `uv sync --locked` against it: its suite without Presidio on
# Python 3.10, 3.11 and 3.12, the full suite with Presidio and the spaCy model
# Python 3.11 and 3.12, the full suite with Presidio and the spaCy model
# on 3.12, and lint plus the release contract (changelog matches the version,
# `uv build`, archive boundary).
#
Expand All @@ -69,7 +69,7 @@
#
# openadapt-tray (packages/tray) keeps its own uv.lock and runs `uv sync
# --locked` against it: its suite on Linux with Python 3.12 for a PR and in
# the queue, plus 3.10, 3.11, macOS and Windows on main; ruff, the version and changelog
# the queue, plus 3.11, macOS and Windows on main; ruff, the version and changelog
# contract, `uv build` and the archive boundary; and Desktop's socket test
# against this tray client, so a tray change cannot break the protocol
# without the desktop suite running. A desktop change runs that same test in
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
fail-fast: false
matrix:
# PR and queue tiers: one Python; main adds the oldest.
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.10", "3.12"]') }}
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.11", "3.12"]') }}
defaults:
run:
working-directory: packages/types
Expand Down Expand Up @@ -254,7 +254,7 @@ jobs:
- name: Install uv (for the oldest-Python syntax check)
if: matrix.python-version == '3.12'
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
- name: Syntax at the oldest supported Python (3.10)
- name: Syntax at the oldest supported Python (3.11)
if: matrix.python-version == '3.12'
# The PR lane runs Python 3.12 only, so syntax that needs a newer
# Python than requires-python allows (a 3.12 f-string, say) passed it
Expand All @@ -265,7 +265,7 @@ jobs:
PYTHONPYCACHEPREFIX: ${{ runner.temp }}/pycache-oldest
run: |
ruff check --isolated --select E9 --target-version py310 .
uv run --no-project --python 3.10 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
uv run --no-project --python 3.11 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
- name: Test
run: pytest -q
- name: Build and verify the public distribution boundary
Expand All @@ -284,7 +284,7 @@ jobs:
fail-fast: false
matrix:
# PR and queue tiers: one Python; main adds the oldest.
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.10", "3.12"]') }}
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.11", "3.12"]') }}
defaults:
run:
working-directory: packages/agent
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
- name: Install uv (for the oldest-Python syntax check)
if: matrix.python-version == '3.12'
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
- name: Syntax at the oldest supported Python (3.10)
- name: Syntax at the oldest supported Python (3.11)
if: matrix.python-version == '3.12'
# The PR lane runs Python 3.12 only, so syntax that needs a newer
# Python than requires-python allows (a 3.12 f-string, say) passed it
Expand All @@ -333,7 +333,7 @@ jobs:
PYTHONPYCACHEPREFIX: ${{ runner.temp }}/pycache-oldest
run: |
ruff check --isolated --select E9 --target-version py310 .
uv run --no-project --python 3.10 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
uv run --no-project --python 3.11 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
- name: Test
run: pytest -q

Expand Down Expand Up @@ -437,7 +437,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]
python-version: ["3.11", "3.12"]
services:
postgres:
image: postgres:16-alpine
Expand Down Expand Up @@ -562,7 +562,7 @@ jobs:
run: python scripts/check_engine_generality.py
- name: Install uv (for the oldest-Python syntax check)
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
- name: Syntax at the oldest supported Python (3.10)
- name: Syntax at the oldest supported Python (3.11)
# The PR lane runs Python 3.12 only, so syntax that needs a newer
# Python than requires-python allows (a 3.12 f-string, say) passed it
# and failed only after merge. Check every file at the minimum.
Expand All @@ -572,7 +572,7 @@ jobs:
PYTHONPYCACHEPREFIX: ${{ runner.temp }}/pycache-oldest
run: |
ruff check --isolated --select E9 --target-version py310 .
uv run --no-project --python 3.10 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
uv run --no-project --python 3.11 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
- name: Ruff format check
run: ruff format --check openadapt_flow tests benchmark/harness benchmark/phase_latency
- name: Mypy
Expand Down Expand Up @@ -1105,7 +1105,7 @@ jobs:
# GHSA-36p7-vc44-83pf; revisit when one ships), and current releases
# need mcp<2 and openai<3. The adapter is tested against this one
# version, in this job only.
run: uv pip install --require-hashes -r ci/crewai-1.6.1.txt
run: uv pip install --no-config --require-hashes -r ci/crewai-1.6.1.txt
- name: Install and launch Playwright browser
timeout-minutes: 12
run: >-
Expand Down Expand Up @@ -1282,13 +1282,13 @@ jobs:
needs: scope
if: github.event.pull_request.draft != true && (needs.scope.outputs.capture == 'true')
# Exercise the oldest Python on pre-2.80 GLib without adding a matrix leg.
runs-on: ${{ matrix.python-version == '3.10' && 'ubuntu-22.04' || 'ubuntu-latest' }}
runs-on: ${{ matrix.python-version == '3.11' && 'ubuntu-22.04' || 'ubuntu-latest' }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
# PR and queue tiers: one Python; main runs all three.
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.10", "3.11", "3.12"]') }}
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.11", "3.12"]') }}
defaults:
run:
working-directory: packages/capture
Expand All @@ -1309,20 +1309,20 @@ jobs:
install-recommends: "true"
packages: ffmpeg libportaudio2
- name: Install native AT-SPI build and smoke dependencies
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.11'
uses: OpenAdaptAI/OpenAdapt/.github/actions/apt-install@94f724c7dc0b0995a7108b7b99bbb53f0749cb68
with:
install-recommends: "true"
packages: >-
libgirepository1.0-dev libcairo2-dev pkg-config
gir1.2-atspi-2.0 gir1.2-gtk-3.0 at-spi2-core dbus-x11 xvfb
- name: Check the GLib and GObject introspection versions
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.11'
run: pkg-config --modversion glib-2.0 gobject-introspection-1.0
- name: Install
run: uv sync --locked --extra dev ${{ matrix.python-version == '3.10' && '--extra linux' || '' }}
run: uv sync --locked --extra dev ${{ matrix.python-version == '3.11' && '--extra linux' || '' }}
- name: Verify native AT-SPI dependency compatibility
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.11'
env:
OPENADAPT_TEST_LINUX_ATSPI: "1"
NO_AT_BRIDGE: "0"
Expand Down Expand Up @@ -1427,7 +1427,7 @@ jobs:
run: uv sync --locked --extra dev
- name: Ruff
run: uv run --no-sync ruff check openadapt_capture/
- name: Syntax at the oldest supported Python (3.10)
- name: Syntax at the oldest supported Python (3.11)
# The PR lane runs Python 3.12 only, so syntax that needs a newer
# Python than requires-python allows (a 3.12 f-string, say) passed it
# and failed only after merge. Check every file at the minimum.
Expand All @@ -1437,7 +1437,7 @@ jobs:
PYTHONPYCACHEPREFIX: ${{ runner.temp }}/pycache-oldest
run: |
uv run --no-sync ruff check --isolated --select E9 --target-version py310 .
uv run --no-project --python 3.10 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
uv run --no-project --python 3.11 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
- name: Verify the maintained changelog
# --skip-tags: the monorepo's v* tags are the launcher's. Capture's
# release tags through v1.2.2 live in OpenAdaptAI/openadapt-capture.
Expand All @@ -1459,7 +1459,7 @@ jobs:
fail-fast: false
matrix:
# PR and queue tiers: one Python; main runs all three.
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.10", "3.11", "3.12"]') }}
python-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '["3.12"]' || '["3.11", "3.12"]') }}
defaults:
run:
working-directory: packages/privacy
Expand Down Expand Up @@ -1528,7 +1528,7 @@ jobs:
run: uv sync --locked --python 3.12 --extra dev
- name: Ruff
run: uv run --no-sync ruff check openadapt_privacy tests scripts
- name: Syntax at the oldest supported Python (3.10)
- name: Syntax at the oldest supported Python (3.11)
# The PR lane runs Python 3.12 only, so syntax that needs a newer
# Python than requires-python allows (a 3.12 f-string, say) passed it
# and failed only after merge. Check every file at the minimum.
Expand All @@ -1538,7 +1538,7 @@ jobs:
PYTHONPYCACHEPREFIX: ${{ runner.temp }}/pycache-oldest
run: |
uv run --no-sync ruff check --isolated --select E9 --target-version py310 .
uv run --no-project --python 3.10 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
uv run --no-project --python 3.11 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
- name: Changelog matches the version and the release workflow
run: uv run --no-sync pytest tests/test_release_config.py -v
- name: Build wheel and source distribution
Expand All @@ -1565,9 +1565,9 @@ jobs:
strategy:
fail-fast: false
matrix:
# PR and queue tiers: Linux on Python 3.12. Main adds 3.10, 3.11,
# PR and queue tiers: Linux on Python 3.12. Main adds 3.11,
# macOS and Windows, where the tray's platform handlers differ.
include: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '[{"os":"ubuntu-latest","python-version":"3.12"}]' || '[{"os":"ubuntu-latest","python-version":"3.10"},{"os":"ubuntu-latest","python-version":"3.11"},{"os":"ubuntu-latest","python-version":"3.12"},{"os":"macos-latest","python-version":"3.12"},{"os":"windows-latest","python-version":"3.12"}]') }}
include: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'merge_group') && '[{"os":"ubuntu-latest","python-version":"3.12"}]' || '[{"os":"ubuntu-latest","python-version":"3.11"},{"os":"ubuntu-latest","python-version":"3.12"},{"os":"macos-latest","python-version":"3.12"},{"os":"windows-latest","python-version":"3.12"}]') }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
defaults:
Expand Down Expand Up @@ -1616,7 +1616,7 @@ jobs:
# The whole package, including examples/ and the root helper scripts.
- name: Ruff
run: uv run --no-sync ruff check .
- name: Syntax at the oldest supported Python (3.10)
- name: Syntax at the oldest supported Python (3.11)
# The PR lane runs Python 3.12 only, so syntax that needs a newer
# Python than requires-python allows (a 3.12 f-string, say) passed it
# and failed only after merge. Check every file at the minimum.
Expand All @@ -1626,7 +1626,7 @@ jobs:
PYTHONPYCACHEPREFIX: ${{ runner.temp }}/pycache-oldest
run: |
uv run --no-sync ruff check --isolated --select E9 --target-version py310 .
uv run --no-project --python 3.10 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
uv run --no-project --python 3.11 python -m compileall -q -x '(^|/)(\.venv|node_modules|build|dist)/' .
- name: Build wheel and source distribution
run: uv build
- name: Versions agree and both distributions exist
Expand Down
Loading
Loading