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
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.
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>
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>
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>
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
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>
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.
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`).
- 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>
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>
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.
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``.
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 ============================
```