1479 Commits
Author SHA1 Message Date
mvdbeek ee3358c890 Merge branch 'release_26.2' into dev 2026-11-20 06:17:17 +01:00
Marius van den Beek 2b5d04ba5d Merge pull request #24953 from mvdbeek/remote-files-fetch-job-stall 2026-11-19 19:35:35 +01:00
Alireza Heidari a40a22c914 Merge pull request #24720 from itisAliRH/feat/another-galaxy-picker
Choose items from another Galaxy in a popup when importing
2026-11-19 15:46:26 +01:00
mvdbeek 429475ab33 Schedule run notification checks in memory instead of polling SQL
The eligibility statement had to find every finished run among all
pending requests on each poll. PostgreSQL misestimated it by orders of
magnitude, and even with JIT off it read seconds of data per poll on a
large backlog, every few seconds.

The elected monitor now keeps a schedule of pending request ids in
memory. Each tick it looks up only ids above the highest it has seen,
and every 5 minutes it reloads all pending ids, which catches requests
committed out of id order and drops requests completed elsewhere. Each
due request is checked with the per-request check; an unfinished run is
checked again after a tenth of its age, at least every 5 minutes.
Requests found at election start at the longest interval.

Once the user has been told about paused jobs, the run cannot finish
without them, and most paused runs are never resumed. Their checks back
off again from the attention notification, up to hourly, so a quick
resume is still noticed quickly. Requests in deleted histories are
closed without a notification.

The per-request workflow check fetches the invocation ids before using
them: with the recursive CTE inside IN, PostgreSQL joined every
mapped-over job first.
2026-11-19 13:17:27 +01:00
mvdbeek aa0f6246b8 Merge branch 'release_26.2' into dev 2026-11-19 06:09:44 +01:00
mvdbeek c15b630079 Merge branch 'release_26.2' into dev 2026-11-18 06:22:45 +01:00
Nicola Soranzo b86e88720c Drop support for Python 3.10
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`
2026-11-17 21:57:50 +00:00
Alireza Heidari 6241b5071d Add another_galaxy_servers config option
List the Galaxy servers that the "Import from Another Galaxy" upload method offers to choose items from, defaulting to usegalaxy.eu, usegalaxy.org and usegalaxy.org.au. Each entry takes a label and an http(s) URL, validated like subdomain_switcher, and the list is exposed to all users through the configuration API. Users can still type the URL of any other Galaxy.
2026-11-16 13:30:31 +01:00
mvdbeek b718d0bcc2 Notify once when runs need attention and again on completion 2026-11-16 08:42:23 +01:00
mvdbeek 245265a520 Keep completion notification admin guidance focused on setup 2026-11-15 15:06:36 +01:00
mvdbeek 5767b8c0b4 Keep per-run completion emails available with SMTP alone 2026-11-15 13:02:36 +01:00
mvdbeek 758d514728 Align notification coverage and docs with immediate email dispatch 2026-11-15 12:28:20 +01:00
mvdbeek 379b039791 Document completion notification setup and email action migration 2026-11-15 12:23:07 +01:00
Aysam Guerler 9489852b1f Merge pull request #24101 from guerler/widgets.000 2026-11-12 16:26:14 +03:00
mvdbeek 2fb53f3ed1 Merge branch 'release_26.2' into dev 2026-11-11 19:13:42 +01:00
mvdbeek 78f57fb1b2 Merge branch 'release_26.1' into release_26.2 2026-11-11 19:03:27 +01:00
guerler d3f672fbef Frame only link-accessible page and workflow widgets from any origin 2026-11-11 20:46:29 +03:00
guerler 0887f599eb Restrict the history graph widget to Galaxy and configured origins 2026-11-11 20:43:51 +03:00
guerler fa19247fcb Frame widgets from any origin unless restricted 2026-11-11 20:43:51 +03:00
John Chilton a73355ea2e Merge pull request #24798 from mvdbeek/implement-reference-data-access-udt
Add reference_data input for YAML tools
2026-11-11 14:56:29 +01:00
John Chilton fe2c635f26 Merge pull request #24803 from mvdbeek/extra-files-dir-access-udt
Expose input extra files path to user-defined tools
2026-11-11 14:52:35 +01:00
mvdbeek 50af35ba62 Explain that closed tables are not a file access boundary
Default container volumes mount the tool data and data manager paths
into every container, user-defined tools included, so user_accessible
only decides which entries a reference_data input offers. Say so, and
how to keep reference data out of reach.
2026-11-10 19:05:07 +01:00
mvdbeek 7d600b0b90 Add reference_data input for YAML tools
User-defined tools had no way to read reference data installed through
tool data tables. A `reference_data` input offers a table's entries as
a select and hands the chosen entry to expressions like a dataset, with
`path`, `basename`, `source` and the table's other columns under
`metadata`. `multiple: true` supplies a list of entries.

It has its own parameter model, ReferenceDataParameterModel
(gx_reference_data), which runtimeify, the YAML v1 parameter allowlist
and the test case conversions match on. The tool form renders it as a
select.

GalaxyUserTool can only read tables an admin marked `user_accessible`,
checked on the form and again when the job runs. Admin-installed
GalaxyTool YAML tools can read every table.

Refs #22700
2026-11-10 19:05:07 +01:00
mvdbeek 44726c4c42 Say that allowing every container is not for production
With an allowed list of * users can run any image from any registry, and
denied entries can't block copies of an image on other registries or
mirrors.
2026-11-10 17:04:49 +01:00
mvdbeek f6a5537e76 State that denied containers override an allowed list of *
A denied entry blocks every tag and digest of the image it names, also
under *. Only a copy published under another name or registry is a
different image to Galaxy.
2026-11-10 15:55:11 +01:00
mvdbeek d9f0cd01d5 Drop an explicit :443 port when canonicalizing registries
quay.io:443 is the same registry as quay.io, but compared as a different
one, so under an allowed list of * it could name a denied image.
2026-11-10 15:54:49 +01:00
mvdbeek fb29a06783 Merge branch 'release_26.1' into fix-udt-expression-error-message 2026-11-10 15:30:10 +01:00
mvdbeek f838161748 Say what a denied container entry can't block
Denied entries match names, so below an allowed list of * the same image
can still be named through a mirror or pushed to another registry. The
denied list is dependable only below a narrower allowed list.
2026-11-10 11:53:22 +01:00
mvdbeek 6d673326c3 Refuse a registry host as a denied container entry
A bare host such as quay.io parses as the Docker Hub image
docker.io/library/quay.io, so as a denied entry it silently denied
nothing on that registry. Point the admin to quay.io/* instead.
2026-11-10 11:52:41 +01:00
mvdbeek 7fc3ce2a24 Merge branch 'release_26.2' into dev 2026-11-10 06:06:04 +01:00
mvdbeek c74b5e5248 Add a deny list for user defined tool containers
user_defined_tool_denied_containers excludes repositories and namespaces from what the allowed list permits. Tag and digest entries are refused, since the same image can be named another way.
2026-11-09 14:06:53 +01:00
mvdbeekandClaude Opus 5.5 e16e70e816 Expose input extra files path to user-defined tools
Composite datatypes such as BLAST databases, pbed and velvet keep their
data in the dataset's extra files folder, so a user-defined tool only
reached the primary HTML file through `path`. Add `extra_files_path` to
the runtime input JSON, using the same compute environment rewrite as
`$input.extra_files_path` in XML tools.

The field is only set when the folder exists: rewriting the path makes
Pulsar stage the folder, and staging fails the job if it is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:57:24 +01:00
mvdbeek 5c8215b36a Merge remote-tracking branch 'upstream/release_26.2' into allowed-user-defined-tool-containers
# Conflicts:
#	test/unit/app/jobs/test_pulsar_runner.py
2026-11-09 13:45:42 +01:00
John Chilton e0ea8e820d Merge pull request #24750 from mvdbeek/session-cleanup-batches
[26.2] Batch session cleanup with read-only previews and retention controls
2026-11-09 07:22:13 -05:00
mvdbeek 3b771008fc Merge branch 'release_26.2' into dev 2026-11-07 06:23:43 +01:00
Marius van den Beek c71e0947e3 Merge pull request #24756 from nsoranzo/release_26.2_compliance_log
[26.2] Log user ID to `COMPLIANCE` logger and drop relative `compliance.log` handler
2026-11-06 19:33:46 +01:00
mvdbeek acb60b8e4a Batch galaxy_session cleanup with bounded, resumable pages
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.
2026-11-06 17:02:05 +01:00
Nicola SoranzoandClaude Opus 5.5 c306bbd279 Clarify that COMPLIANCE records also go to the main log
The `logging` example in the GDPR admin docs adds a handler for the
`COMPLIANCE` logger but does not disable propagation, so records are
written to the separate file as well as to the main Galaxy log, not
instead of it.

Suggested-by: mvdbeek <m.vandenbeek@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 14:51:32 +00:00
mvdbeek a637b07f60 Merge branch 'release_26.2' into dev 2026-11-06 06:13:01 +01:00
mvdbeek eb5fc39452 Merge branch 'release_26.1' into release_26.2 2026-11-06 06:12:44 +01:00
Nicola SoranzoandClaude Opus 5.5 186d7b1994 Log user ID to COMPLIANCE logger and drop relative compliance.log handler
When `enable_beta_gdpr` is set, Galaxy added a `compliance_log`
`RotatingFileHandler` writing to `compliance.log`, relative to the working
directory. With privilege separation (e.g. the ansible-galaxy `root-dir`
layout) the server directory is not writable by the Galaxy user, so Galaxy
fails to start:

```
PermissionError: [Errno 13] Permission denied: '/srv/galaxy/server/compliance.log'
...
ValueError: Unable to configure handler 'compliance_log': [Errno 13] Permission denied: '/srv/galaxy/server/compliance.log'
```

There is no setting for this path, so remove the dedicated handler: records
of the `COMPLIANCE` logger now go to the same destination as the rest of
Galaxy's log. Admins who want a separate file can still configure one in a
`logging` dictionary, as shown in the GDPR admin docs. This also stops
`enable_beta_gdpr` from modifying the module-level `LOGGING_CONFIG_DEFAULT`.

So that these records are not dropped when `log_level` is higher than
`INFO`, `default_log_config()` now applies `log_level` to the console handler
through a new `LogLevelFilter` instead of the handler level. The filter
passes records at or above `log_level` as before, plus all records of the
compliance logger (whose name is now the `COMPLIANCE_LOGGER_NAME` constant).

Also log the user ID instead of the username in the `delete-user-event`
record written by `UserManager.purge()`, as the docs describe. Logging the
username recorded in plain text the identifier that the purge is about to
redact.

Update the GDPR admin docs:
- fix the flag name (`enable_beta_gdpr`, not `gdpr_compliance`);
- describe where compliance records go by default;
- replace the full `logging` example, which referenced a non-existent
  `galaxy.web.stack` module, with the additions needed on top of the default
  logging configuration, using an absolute file path;
- correct what purging a user does (display name removed, addresses
  deleted rather than hashed) and note that this is pseudonymisation, not
  anonymisation;
- recommend keeping the compliance log at least as long as backups.

Replace the outdated "Get root logger" comment in `configure_logging()`,
left over since https://github.com/galaxyproject/galaxy/commit/28511e262e227afc0d3dd3ffdb13d267633e17c2
removed the corresponding code, with a note that the TRACE log level is
already registered when `galaxy.util.custom_logging` is imported.

Fix https://github.com/galaxyproject/galaxy/issues/24617.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 01:01:57 +00:00
Marius van den Beek f7ef344ccb Merge pull request #24748 from dannon/bound-udt-lift-headers-26.1
[26.1] Bound the lift-status response headers on user-defined tool endpoints
2026-11-05 19:50:07 +01:00
Dannon Baker 31c7125059 Update the user-defined tools doc for the bounded lift headers
The admin doc still said every dropped part goes into the
X-Galaxy-Deprecated-Fields header. Now the list endpoint sends no lift
headers and the single-tool endpoints send a capped summary, with the
full list only in representation_errors.
2026-11-05 11:40:01 -05:00
Nate Coraor e922a68237 Merge remote-tracking branch 'upstream/release_26.2' into dev
# Conflicts:
#	client/src/components/Visualizations/DisplayApplications.vue
#	lib/galaxy/managers/users.py
#	lib/galaxy/webapps/galaxy/api/mcp.py
#	lib/galaxy_test/api/test_framework.py
#	test/integration/oidc/test_auth_oidc.py
2026-11-03 16:30:59 -05:00
Marius van den Beek 23b0ab1fa1 Merge pull request #24561 from mvdbeek/limit-container-job-directory-mounts
[26.2] Don't mount the job directory into tool containers by default
2026-11-03 12:02:11 +01:00
John Chilton 64dad7223e Merge remote-tracking branch 'origin/release_26.2' into allowed-user-defined-tool-containers
# Conflicts:
#	lib/galaxy/jobs/runners/__init__.py
#	lib/galaxy/managers/tools.py
2026-11-01 14:15:26 -05:00
mvdbeek fe58bc8aee Merge branch 'release_26.2' into dev
# Conflicts:
#	client/src/components/admin/JobsList.test.ts
#	client/src/components/admin/JobsList.vue
#	lib/galaxy/dependencies/pinned-requirements.txt
2026-11-01 15:39:00 +01:00
mvdbeek d478c0854a Merge branch 'release_26.1' into release_26.2
# Conflicts:
#	client/src/api/jobs.ts
#	client/src/components/admin/JobsList.vue
#	lib/galaxy/tool_util/cwl/util.py
#	lib/galaxy/tool_util/deps/container_classes.py
#	lib/galaxy/tools/__init__.py
2026-11-01 15:34:08 +01:00
mvdbeek 17526b3df5 Restrict the container images user-defined tools may use
Add the user_defined_tool_allowed_containers option, a list of trusted
namespaces (quay.io/biocontainers/*) and individual images, optionally
pinned to a tag or digest. It defaults to quay.io/biocontainers/* only;
a lone * allows any image. Malformed entries prevent Galaxy from starting.

The image is checked when a user-defined tool is created, which covers the
API, the tool editor, workflow imports and the authoring assistant, and
again before each job of a user-defined tool, against the container the
tool declares rather than the one a resolver maps it to. The job-time
check fails tools created before an image was removed from the list. On
Pulsar the job is failed directly, not through fail_job, so resubmission
rules do not retry a refusal that would fail the same way.

The test driver allows any image, since existing tests use busybox,
python and similar images.
2026-11-01 14:53:30 +01:00
mvdbeek 405947f351 Remove Homebrew dependency resolvers and brew_exts
The homebrew and tool_shed_tap resolvers depend on `brew versions`,
`brew switch` and `brew vinstall`, none of which exist in current
Homebrew, and on the homebrew/science tap, which was archived in 2018.

Remove brew_exts, brew_util, both resolvers, the Homebrew mixins in
resolver_mixins, their mypy.ini sections and their documentation.

Fixes #24632
2026-11-01 11:59:46 +01:00