82 Commits
Author SHA1 Message Date
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
mvdbeek 66a9bdfd8d Reuse visit_input_values for data table usage detection
Replace the custom pruned parameter tree with the existing parameter
traversal: has_data_table scans Tool.input_params and is_using_data_table
walks each JSON-decoded top-level job parameter with visit_input_values.

- Only select parameters count as table-backed; a data input with
  <options from_data_table> no longer raises "Unresolved data table
  parameter value".
- State that no longer matches the tool no longer raises (which failed
  the job in the job mapper). Each top-level parameter is skipped on
  error, like params_from_strings(ignore_errors=True) in the job wrapper,
  so unrelated stale state does not hide a valid selection.
- Tests serialize state with Tool.params_to_strings instead of
  hand-written JSON and drop tests of private caching details.
- Trim the admin docs and fix the rst heading underline.
2026-10-19 16:03:54 +02:00
Bjoern Gruening e422db94d8 add 2 signals into the job and tool metadata to indicate if a tool and/or jobs is using a data_table 2026-10-17 14:07:37 +02:00
John Chilton a0ec8cc0d9 Address nightly CI review and remove unused performance suite 2026-10-16 08:53:04 +02:00
John ChiltonandClaude Opus 5.5 84087f5855 Rename pulsar_transfer job metrics plugin to pulsar
One plugin for every metric Pulsar reports (transfers now, versions next);
neither this nor the Pulsar side is released yet. The files it reads keep
their names - transfer_<phase> under plugin pulsar is still
__instrument_pulsar_transfer_<phase>.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 19:06:52 -04:00
John ChiltonandClaude Opus 5 86cf767b29 Add pulsar_transfer job metrics plugin
Reports how long Pulsar spent staging a job's files, how many and how many
bytes, separately for inputs in and outputs out. Unlike the other plugins it
injects nothing into the job script - Pulsar writes the measurements either
side of it and this only reads them. The existing __instrument_ naming is what
gets the files staged back, so no runner change is needed.

Galaxy side of galaxyproject/pulsar#35.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-28 14:02:33 -04:00
Nicola SoranzoandClaude Sonnet 5 877f9f3b47 Type five tool_shed.managers modules, delete the unused groups one
Removes `tool_shed.managers.categories`, `.model_cache`, `.tools`, `.trs`
and `.users` from `mypy.ini`'s legacy list. `repositories.py`, the
remaining module in the package, holds most of the subpackage's errors
and is left for a separate PR.

`tool_shed.managers.groups` is deleted instead: nothing in the codebase
references `GroupManager` or its module-level `get_group_by_name()`.
Typing it surfaced that `GroupManager.update()` already tries to set a
`description` attribute the `Group` model doesn't have, dead code that
was never going to run.

`CategoryManager.get()` and `shed_util_common.get_category()` can return
`None` for an id that doesn't exist; existing callers already assume the
category exists, so `get()` asserts rather than propagating
`Category | None`.

`tool_shed.webapp.search.tool_search.ToolSearch.search()` is now typed
too (a `ToolBoosts` NamedTuple replaces the ad-hoc `namedtuple` `tools.py`
built inline), which also removes its `mypy.ini` legacy entry.
`test/unit/tool_shed/test_search.py` picks up matching annotations, even
though test code is exempt from the strict defaults.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-28 13:44:42 +01:00
John ChiltonandClaude Opus 5 01d6c02052 Delete tool shed modules with no importers.
search_util, webapp/util/ratings_util, util/web_util and the
util/tool_dependency_util star-import shim are unreachable - the routers, grids
and makos that used them are gone. Drop their Sphinx automodule entries too.

managers/groups is also unreferenced but kept: the Group, UserGroupAssociation
and GroupRoleAssociation models are still in webapp/model, so the manager stays
as the service layer for them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E9YcoCtru5ctQ2SK48A25h
2026-09-10 15:27:19 -04:00
Nicola SoranzoandClaude Sonnet 5 e1180b47e8 Remove remaining Reports webapp config and docs
Follow-up to https://github.com/galaxyproject/galaxy/pull/21076 , which
removed the `galaxy.webapps.reports` Python package. This finishes the
removal by dropping the `reports` app from `config_manage.py`'s `APPS`,
its config schema and sample YAML, admin docs, Sphinx autodoc stubs, and
associated `Makefile`, `mypy.ini`, `.github/labeler.yml`, and
`.ci/first_startup.sh` entries, plus the now-dead `test_config_manage.py`
tests and fixture.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 19:50:27 +01:00
John Chilton 5d8d77b238 Record resubmission_count from core, rather than a plugin to switch on
Resubmission count is the kind of thing you want to have been collecting before you go
looking for it: it answers "which tools keep getting resubmitted, and are their TPV rules
allocating badly", and an admin only asks that question after the interesting jobs have
already run. An opt-in plugin means the answer is empty on every instance that had not
already guessed it would want one.

Folding it into core costs nothing to justify that. The count reads the state history the
session already holds, since set_final_state loads the collection just before metrics are
collected, so there is no extra query on the path every job takes.

Recorded only when non-zero. Almost no job is ever resubmitted, and writing a zero for
each one is a job_metric_numeric row per job that carries no information; a missing value
reads as zero. That is the same shape core already uses for container details.

Drops the separate plugin, which needed galaxy.model and SQLAlchemy inside a package that
ships to Pulsar compute nodes with only galaxy-util, and whose app-is-None path silently
collected nothing for per-destination metrics configurations.

Keeps Gabriel Saudade's tests and documentation, retargeted at core.
2026-08-26 09:56:59 +02:00
gsaudade99 3fe2844b82 add resubmission as job_metrics 2026-08-26 09:56:58 +02:00
davelopez 455bb23d91 Removes redundant test and documentation
The deleted module validated exception-handling utilities already covered by existing unit tests.
2026-08-12 14:23:20 +02:00
davelopez fe3de345a4 Modularizes storage operation logic and refactors related code
Splits storage operation schema, logic, and execution into a dedicated module for improved maintainability and clarity.
2026-05-20 18:37:23 +02:00
Bjoern Gruening 0efeb42836 Rename condor2 runner to htcondor 2026-05-08 00:00:07 +02:00
Bjoern Gruening 081f536535 Document and sample config for condor2 runner 2026-05-08 00:00:07 +02:00
mvdbeek b3f54e5553 Delete dead legacy tag controller
The `tag_autocomplete_data`, `add_tag_async`, and `remove_tag_async`
endpoints served a long-removed jQuery/YUI autocomplete widget and have
zero non-self references in the codebase. Modern tagging uses
`PUT /api/tags` (`FastAPITags.update`).
2026-04-11 12:24:01 +02:00
mvdbeek 8b339780d8 Merge branch 'release_26.0' into dev 2026-03-28 11:20:58 +01:00
mvdbeek a129ca81e3 Remove unused error controller that only raises a fake exception
fixes https://github.com/galaxyproject/galaxy/issues/22245
2026-03-24 14:52:54 +01:00
John ChiltonandClaude Opus 4.6 c7eed028fd Delete dead code: is_path_within_*, empty framework dir, stale refs.
- Remove is_path_within_dependency_dir() and is_path_within_repo() (no callers)
- Remove unused os import from shed_util_common
- Delete empty tool_shed/webapp/framework/ package
- Remove stale mypy.ini and Sphinx doc references

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 08:21:24 -04:00
John ChiltonandClaude Opus 4.6 9a4e3984bc Migrate image endpoint to FastAPI, delete WSGI repository controller.
Move display_image_in_repository to FastAPI with hardened security:
realpath symlink validation, image-only MIME type restriction, stdlib
mimetypes fallback. Delete controllers/repository.py, remove image
route from buildapp, clean stale mypy/sphinx refs, drop orphaned
test_0140/test_1160 image tests. Add 5 new API tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 08:21:24 -04:00
guerler 8131793a24 Remove unused visualizations/genome subfolder 2026-01-21 00:01:59 +03:00
guerler 2d1a045821 Remove unused resource parser and utilities 2026-01-21 00:01:57 +03:00
Nuwan Goonasekera 59a9c9e403 Remove defunct custos auth provider 2025-12-02 22:13:27 +05:30
Dannon Baker b818245b46 Drop userskeys (admin only) controller. This is unused. 2023-06-27 10:42:04 -04:00
Nicola Soranzo 5ca0aea54a Drop nose
It's deprecated and unmaintained, and is broken under Python 3.10 .
2022-11-01 18:45:07 +00:00
Nicola Soranzo 95326249cd Update application documentation
with:

```
make -C doc/ updaterst
```
2022-08-19 17:37:27 +01:00
Nicola Soranzo 961472cfff Merge branch 'release_22.01' into release_22.05 2022-08-16 23:25:42 +01:00
Nicola Soranzo 6a3804ba27 Update application documentation
with:

```
make -C doc/ updaterst
```
2022-08-14 18:39:19 +01:00
John Chilton 2613512327 Remove job metrics CollectL plugin.
The project seems to be a deadend and it was never adopted in production as far as I am aware. The cgroup plugin seems to provide similar information with much less overhead and with easier to manage dependencies.
2022-03-31 09:25:52 -04:00
mvdbeek 6794d6be93 Resolve circular dependency for ToolEvaluator
by placing ComputeEnvironment and ActionBox under job_execution.
2021-11-29 11:22:42 +01:00
John Chilton 5661e0db9f Exploratory Jupyter environment for `galaxy-selenium`.
The new Makefile-based command ``make serve-selenium-notebooks`` will serve notebooks in lib/galaxy_test/selenium/jupyter.

The notebooks will target a Galaxy host running on port 8080 - but are parameterized to be run with papermill (https://papermill.readthedocs.io/) for automate targeting different Galaxy servers, remote Selenium servers, etc..

Screenshots will be embedded right into the notebook.

Example notebooks setup to target just the library code in ``galaxy-selenium`` as well as one appropriate to leverage the Galaxy testing framework are included and documented in depth via modules docstring for ``galaxy_test.selenium.jupyter``.
2021-01-18 17:24:28 -05:00
John Chilton 99186b6294 Remove sphinx stub generated due to local, non-branch changes. 2021-01-12 09:34:28 -05:00
John Chilton 8d06cffae4 Remove now unused .gitignore file.
Or am I missing how that file is generated in someway...
2021-01-12 09:29:54 -05:00
John Chilton 9bd66edc0b Re-do API documentation to avoid duplicate labels. 2021-01-12 09:29:53 -05:00
John Chilton e1d0a1d049 Rebuild rst lib structure. 2021-01-11 13:03:57 -05:00
Nicola Soranzo 79210e8ed7 Update application documentation
with:

```
make -C doc/ updaterst
```
2020-12-18 02:37:10 +00:00
mvdbeek 8be1ac07e6 Merge branch 'release_20.01' into dev 2020-05-05 21:04:03 +02:00
mvdbeek f6a79f6341 Rename galaxy.util.logging to galaxy.util.custom_logging
Otherwise there may be import issues:
```
==================================== ERRORS ====================================

________________________ ERROR collecting test session _________________________

.tox/py27-unit/lib/python2.7/site-packages/py/_path/common.py:383: in visit

    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):

.tox/py27-unit/lib/python2.7/site-packages/py/_path/common.py:425: in gen

    if p.check(dir=1) and (rec is None or rec(p))])

.tox/py27-unit/lib/python2.7/site-packages/_pytest/main.py:667: in _recurse

    ihook = self.gethookproxy(dirpath)

.tox/py27-unit/lib/python2.7/site-packages/_pytest/main.py:482: in gethookproxy

    my_conftestmodules = pm._getconftestmodules(fspath)

.tox/py27-unit/lib/python2.7/site-packages/_pytest/config/__init__.py:424: in _getconftestmodules

    mod = self._importconftest(conftestpath.realpath())

.tox/py27-unit/lib/python2.7/site-packages/_pytest/config/__init__.py:463: in _importconftest

    raise ConftestImportFailure(conftestpath, sys.exc_info())

E   ConftestImportFailure: (local('/home/circleci/repo/test/unit/queue_worker/conftest.py'), (<type 'exceptions.AttributeError'>, AttributeError("'module' object has no attribute 'getLogger'",), <traceback object at 0x7fabd96b7eb0>))

----- generated html file: file:///home/circleci/repo/run_unit_tests.html ------

!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!

=========================== 1 error in 1.83 seconds ============================

```
2020-05-03 21:50:12 +02:00
Nicola Soranzo addb73c1c4 Update documentation
- Fixes for `interactivetools.rst`
- Run `make updaterst`
2020-05-01 01:20:06 +01:00
John Chilton 559b664b07 Refactor tool_shed webapp out of Galaxy. 2019-11-11 12:32:19 -05:00
Sergey Golitsynskiy df5252c887 Update RST files to reflect code structure changes
Also, clean out obsolete RST files.
2019-07-21 12:42:58 -04:00
Dannon Baker 3072975897 Drop mimeparse docs 2019-07-09 14:14:37 +01:00
Marius van den Beek d22d7beaf4 Merge pull request #8305 from jmchilton/axe_log_tempfile
Remove log_tempfile.
2019-07-09 14:42:43 +02:00
Dannon Baker f5f15e2dfc Drop log_tempfile docs 2019-07-08 20:04:03 -04:00
Dannon Baker ae11aaa5ec Drop psyco_full docs 2019-07-08 16:08:20 -04:00
Sergey Golitsynskiy b5f19e8466 Rerun make updaterst
First rm doc/source/lib/*, then rerun sphinx. Cleans out obsolete files.
2019-07-06 10:10:56 +02:00
Sergey Golitsynskiy 17beaef624 Update Sphinx RST files for lib/
Running sphinx 1.8.5 updates all files (one known update: periods are no
longer escaped)
2019-07-05 17:21:31 +02:00
Nicola Soranzo 57af073813 Update application documentation
with:
```
make -C doc/ updaterst
```

Also fix 2 links in `doc/source/api/guidelines.rst` .
2019-02-20 14:56:21 +00:00
Nicola Soranzo d5b306dd21 Remove OpenID auth from docs
Follow-up on https://github.com/galaxyproject/galaxy/pull/7028 .
2019-01-21 17:44:34 +00:00
Nicola Soranzo 77706a8e62 Update application documentation
With
```
make -C doc/ updaterst
```
2018-09-03 11:25:42 +01:00