From 39c5552f2b3d0bbc169e5b535645f1ed965ec00f Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 19 May 2026 07:59:46 +0200 Subject: [PATCH] LazyTool: round-4 _MATERIALIZE_OK additions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eight more execution-path attrs surfaced by API tests: - ``execute`` — the tool execute method itself. - ``expand_incoming`` — parameter expansion for multi-run / map-over. - ``params_to_strings`` — parameter serialisation. - ``tool_action`` — execution action dispatch. - ``tool_dir`` — on-disk directory accessor (read by some callers). - ``completed_jobs`` — job-search-by-tool API. - ``get_default_history_by_trans`` — default-history lookup during execute. - ``regenerate_imported_metadata_if_needed`` — import/export job path. All execution-path; correct to materialise on first read. --- lib/galaxy/tools/lazy_toolbox.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/galaxy/tools/lazy_toolbox.py b/lib/galaxy/tools/lazy_toolbox.py index a028a5af491..376f93673b1 100644 --- a/lib/galaxy/tools/lazy_toolbox.py +++ b/lib/galaxy/tools/lazy_toolbox.py @@ -139,6 +139,14 @@ class LazyTool: "tool_source", # raw ToolSource; some callers walk it directly "dynamic_tool", # dynamic-tool linkage on execution "produces_entry_points", # interactive tool entry points + "execute", # actual tool execute method + "expand_incoming", # parameter expansion for multi-run/map + "params_to_strings", # parameter serialisation + "tool_action", # execution action dispatch + "tool_dir", # on-disk tool directory accessor + "completed_jobs", # job-search via tool + "get_default_history_by_trans", # default-history lookup on execute + "regenerate_imported_metadata_if_needed", # import/export path # Job runner reads this on the tool to decide environment setup. "requires_galaxy_python_environment", }