common_startup.sh uses uv when it is on PATH, which cuts the dependency install from about 3 minutes to about 10 seconds without a pip cache.
Co-authored-by: mvdbeek <m.vandenbeek@gmail.com>
The macOS startup job rebuilds the client on a cache miss under tox, which dropped NODE_OPTIONS, so node ran out of memory at the default heap. Allow it through tox passenv and set the same 4 GB heap the other client builds use.
The setup-python pip cache is the last one left on current branches, and PR runs re-save its 444 MB entry. The job installs its requirements through scripts/common_startup.sh, so it does not depend on the cache. Drop cache-dependency-path too, since only the cache used it.
Part of #24966
Point the converter lint at the checkout's datatypes_conf.xml.sample via
DATATYPES_CONF, so it knows datatypes added in the same change instead of
only those in planemo's installed galaxy-tool-util release.
Call the declared sniff_prefix(FilePrefix(...)) in the unit test, as the
parquet and mzspeclib tests do; mypy cannot see the decorator-added sniff.
Co-authored-by: David Molik <9337053+molikd@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The test jobs that restore the client cache do not set up Node.js, because on a hit they never needed it. Now that a miss rebuilds the client instead of failing, the rebuild would run on whatever Node.js the runner image ships, which can differ from the version in client/.node_version that the build-client job uses, and scripts/common_startup.sh would install pnpm from conda on the macOS job.
Give the cache step an id and, only when the entry was not restored, mirror the build-client job: set up Node.js from client/.node_version and set up the pnpm version pinned in package.json with pnpm/action-setup. With pnpm already on PATH, common_startup.sh does not install it. The Selenium, Playwright and integration Selenium jobs also export NODE_OPTIONS through GITHUB_ENV for the rebuild; the two startup jobs run under tox, which does not pass it through.
Part of #24966.
The client build is handed from the build-client job to the test jobs through an Actions cache entry keyed on the commit. When the entry is evicted before a test job restores it, fail-on-cache-miss fails the job, and re-running only the failed job fails again because the entry stays missing.
Drop the flag in the five consumers. On a miss, run_tests.sh -selenium/-playwright and scripts/common_startup.sh (through run.sh) find no static/client_build_hash.txt and build the client, and the cache post step then saves the rebuilt static/ under the same key.
Part of #24966.
The scheduled and `workflow_dispatch` `python-version` matrix in
`unit.yaml` and `toolshed.yaml` listed `"3.11"` twice, so every
nightly run executed identical jobs for Python 3.11 (two extra jobs for
the Tool Shed tests, crossed with `test-install-client`), and their
failure artifacts would have collided on the same name.
https://github.com/galaxyproject/galaxy/pull/24131 added these
matrices to dev as `["3.10", "3.11", "3.12", "3.13", "3.14"]`. When
`release_26.2`, which drops support for Python 3.10, was merged into dev
in aa0f6246b8, the conflict resolution replaced `"3.10"` with `"3.11"`,
duplicating the existing entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The weekly scheduled integration run set GALAXY_CONFIG_OVERRIDE_METADATA_STRATEGY=extended.
load_app_properties applies GALAXY_CONFIG_OVERRIDE_* after a test class's config kwds, so
the override replaced every metadata_strategy a test class sets, and the _celery suffix
UsesCeleryTasks adds. Tests that need a specific strategy failed every week, and tests
that set directory ran as extended.
GALAXY_TEST_METADATA_STRATEGY seeds the test driver's config before
handle_galaxy_config_kwds runs. Classes that set a strategy keep it, and
UsesCeleryTasks turns the default into extended_celery.
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
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.
(cherry picked from commit 5284b5b394)
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`
"Re-run failed jobs" of the Integration workflow reuses the result of the
prepare job, but the seed artifact it uploaded is kept for one day only,
so a later rerun failed every test shard with "Artifact not found for
name: mulled-resolution-cache-seed". The seed is optional, so write the
same empty fallback the prepare job writes when indexing fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.