astral-sh/setup-uv changed the default of `prune-cache` from "true" to "false" in v9.0.0, and the actions bump in #23222 moved dev from v8 to v9; release_26.2 now runs v10.2.0 with the same default. Since then the uv cache is saved with every wheel the run downloaded: about 330 MB per entry instead of about 30 MB. Each ref saves several of these (one per OS and Python version), so a few open PRs push the repository's Actions cache past its 10 GB limit and evict the `galaxy-static` client build that the test jobs restore with `fail-on-cache-miss`, the same failure #23754 fixed on 26.1 by dropping the virtualenv cache. Set `prune-cache: true` on every setup-uv step that saves a cache; `publish_artifacts.yaml` keeps `enable-cache: false` and is left alone.
Part of #24966
Python 3.10 reached its end-of-life in October 2026.
Also:
- Run `make pyupgrade` and `make format`
- Fix new ruff and mypy errors
- Run `uv lock` and `sh lib/galaxy/dependencies/update.sh --export-only`
- Run `make update-client-api-schema`
test/unit/data is the galaxy-data package's test suite, which does not
ship galaxy.celery, so importing the Celery task module there broke test
collection. The tests now live in test/unit/app and set up their own
PostgreSQL database instead of importing helpers from test/unit/data,
which the galaxy-app package's tests don't include.
galaxy-delete-sessions removed eligible old sessions in one DELETE
using a whole-table window ranking. That held locks in one long
transaction and offered no way to preview, pace, limit, or resume.
It now walks the primary key in ascending pages below a starting
watermark, committing and pausing between pages. Page size, page
count, pause, and ID range are configurable. PostgreSQL pages use
transaction-local statement and lock timeouts. SQLite pages roll back
as a unit.
--dry-run is SELECT-only and READ ONLY on PostgreSQL. Each registered
user's newest session remains protected. The DELETE re-evaluates age,
ownership, newest-session protection, and the selected history/job
policies.
Defaults are unchanged. Opt-in --anonymous-only and
--preserve-anonymous-histories narrow scope.
--preserve-sessions-with-jobs keeps sessions referenced by jobs with
job.user_id IS NULL. Admin docs describe semantics.
Tests cover paging, resume, dry-run, rechecks, rollback, and validation,
and are wired into PostgreSQL CI. Shared DB test cleanup now uses a
savepoint per DELETE, so FK retries keep earlier deletes.
Cover library datasets, purged HDAs and histories, datasets shared with
another user, the file_size fallback and labeled quota sources, and run
the quota tests against PostgreSQL in the unit-postgres workflow.
A late job cache hit in JobWrapper.prepare points each output HDA at the
cached job's dataset, propagates that to existing copies and purges the
old dataset. A copy of the output made concurrently, for instance by
__BUILD_LIST__, could read the old dataset and commit after the runner
had looked for copies. That copy then kept the purged dataset and stayed
queued forever.
copy_from now takes FOR UPDATE on the HDA row before collecting copies,
and re-queries them so copies committed by other transactions are found.
copy() of a non-ready HDA re-reads the source's dataset_id under FOR KEY
SHARE and reloads the source if it changed. Whichever transaction locks
the row first, the other sees its committed result. KEY SHARE does not
conflict with ordinary updates, so copies never block job finishing.
copy_from_job locks all outputs in id order before swapping them.
GitHub is rolling ubuntu-latest over to the Ubuntu 26.04 image, which
lacks Playwright chromium support, Python 3.8, mercurial, and breaks the
apptainer apt install.
wheels.galaxyproject.org intermittently returns 503s for package lookups
during dependency resolution, e.g. for `uvx twine check` resolving rich.
uv gives up after its default 3 retries (about 10s), so set
UV_HTTP_RETRIES=6 in the workflows that install Python dependencies.
Building and checking package dists does not need Galaxy's wheel index,
so don't query it there.
OIDC account confirmation (#24084 via 26.0/26.1): dev's PKCE cookie
code goes away the same way as on 26.1, and the integration test helpers
drop the remove_cookie option. The two dev-only authenticate() scope tests
patch out FlowState, since their mocked do_auth sets no OAuth state.
flow_state.py gets the type arguments dev's strict mypy needs. The
NewUserConfirmation tests are ported to Vue 3 test utils (props/global,
setValue, currentRoute.value, aria-disabled on GButton).
#24071: keep dev's requests-based http.py, as the PR asks; port the two
tests whose behaviour dev shares (unsafe query characters are encoded,
already-encoded URLs are unchanged) to the responses mock. Dev normalizes
invalid and unreserved escapes and IDNA-encodes hosts, so the other new
26.1 tests don't apply.
The pulsar-galaxy-lib cap (#24056) is not carried to dev, per that PR.
Port the OIDC account confirmation fix to 26.1's PSA backend. The
authentication record in FlowState now carries the PKCE code verifier
to the callback, replacing the encrypted verifier cookie from #23836
(the cookie helpers, their constants and the cookie test go away, and
the admin PKCE docs describe the server-side record). Deferred account
creation keeps 26.1's activation policy (create_and_activate_oidc_user)
and the GALAXY_TRANS pipeline config. The Keycloak integration tests
keep 26.1's driver restart and extra_provider_config setup.
Keep the pulsar-galaxy-lib <0.16 cap on top of 26.1's >=0.15.15 floor.
release_26.0 no longer has the legacy custos backend that #24084 changes
on release_25.1, so the 25.1 version of the OIDC account confirmation fix
cannot be merged as is. Resolve it with the release_26.0 version of the
same fix (oidc-account-creation-plan: bind deferred account creation in
the PSA pipeline to the authenticated browser flow), plus the
CursorResult cast from 25.1. custos_authnz.py, test_custos_authnz.py and
test_custos_confirmation.py stay deleted.
Keep the pulsar-galaxy-lib <0.16 cap from #24056 in packages/app/setup.cfg.
Adapt the Keycloak OIDC integration tests to the separate legacy and PSA implementations on 25.1. Cover confirmation and cancellation, POST/CSRF enforcement, browser isolation, session renewal and callback replay with PKCE enabled. Add PostgreSQL CI coverage for atomic flow-state consumption.
Validated all 16 tests via ./run_tests.sh -integration test/integration/oidc/test_auth_oidc.py against real Docker Keycloak.
Conflicts in .github/workflows were resolved by keeping origin/dev's
paths-filter structure (catch-all `**`, `!.github/workflows/**`, and the
trailing positive re-includes) while taking the ignored-path set from
this branch: `lib/galaxy_test/selenium/**` is no longer ignored and
`packages/**` is narrowed to `packages/test_selenium/**`, since the
selenium suite moved into packages/test_selenium and the remaining
packages are now real Galaxy dependencies.
.github/workflows/selenium.yaml was deleted on origin/dev (its work
split into playwright.yaml and integration_selenium.yaml); the deletion
is accepted.
Rename root coordinator to galaxy-workspace, move explicit
workspace members/sources from packages/pyproject.toml, remove
nested coordinator and packages/uv.lock, add .uv-version (0.12.23),
update package commands/docs to use root workspace, wire CI
setup-uv to version-file and drop packages/** startup exclusion.
Each workflow cached its own `galaxy root/.venv` (~400 MB) under a
per-workflow, per-ref key, which is ~6 GB of the repository's 10 GB
Actions cache quota: 5 entries saved from release_26.1 pushes plus one
per workflow for every PR against release_26.1. At the quota, GitHub
evicts the least recently used entries, including the client builds
downstream jobs need to restore within the same run.
This removes only the cache of the finished virtualenv. uv's own
package cache is still there: every workflow keeps its
`astral-sh/setup-uv@v7` step, which by default restores and saves uv's
cache (`setup-uv-*` keys, pruned to ~21 MB, one per OS and Python
version shared by all workflows) and points `UV_CACHE_DIR` at it. The
venv is still built by `uv venv` and `uv pip`, as before whenever the
venv cache missed.
That rebuild is cheap. In a release_26.1 Selenium job where both the
venv cache and uv's cache missed, uv created the venv and installed all
417 packages from PyPI in ~7.5 s, and saving the venv cache afterwards
took 4-5 s. Because of the eviction these venv caches mostly miss
anyway. dev dropped them in 3788424644.
JobNotReadyException normally leaves a job NEW, so PostgreSQL's per-user
rank limit can select the same deferred prefix forever. Sweep subsequent
input-ready candidates after a mapper wait, without enlarging the window.
Cap each sweep at its initial eligible tail so continued arrivals cannot
postpone retries of earlier jobs indefinitely.
Keep only two IDs per active user/session, discard empty or completed
sweeps on each poll, and retain the existing wrapper cleanup. Separate
anonymous session IDs from user IDs so unrelated principals cannot share
a window or cursor. Ordinary limit waits do not initiate a sweep, and
explicit exception states, resubmission and unwindowed queues retain their
existing handling. An active sweep finishes through ordinary waits to
avoid stranding runnable work behind another blocked window.
Exercise real PostgreSQL handler polls and dynamic mapping with window 2
and deferred backlogs of 5 and 21: both starvation cases fail on the base
and pass here. Cover finite retries under arrivals, cancellation, handler
transfer/restart, anonymous fairness, input/activation checks, limits,
cached destinations, exception states, resubmission and SQLite/in-memory
queues. Add the tests to PostgreSQL CI because SQLite bypasses ranking.
Document the bounded-sweep/retry-latency tradeoff in both sample configs.
Validation: 96 targeted tests passed; all 25 handler cases also passed
using CI's GALAXY_TEST_DBURI. Repository Ruff, Flake8 and formatting checks
passed. Full make mypy reports the same 13 pre-existing unused-ignore
errors in 10 files on the base and this tree, with no new errors.
Pushes to branches on galaxyproject/galaxy duplicate the pull_request
run for the same commits: dependabot/*, copilot/* and topic branches are
pushed directly to the repository, and the concurrency group
(`${{ github.workflow }}-${{ github.ref }}`) does not dedupe them
because a push run's ref is refs/heads/<branch> while the pull request
run's is refs/pull/<n>/merge.
A `branches:` filter on the push trigger cannot express this, since
trigger filters take no expressions and so would apply to forks too,
where a contributor may legitimately want CI on their own branches
before opening a pull request. Gate at the job level instead, so the
restriction only applies to galaxyproject.
The two jobs that are disabled with `if: false` are left alone.
Most workflows had an unfiltered `push:` trigger, so every push to any
branch in the repository or in a fork started a full CI run, duplicating
the `pull_request` run for the same commits. Add the same
`branches: [dev, release_*]` filter that build_container_image.yaml
already uses.
`pull_request` triggers are unchanged, so PR CI is unaffected;
codeql-analysis.yml keeps its narrower dev-only filter.