A stored step at a version no longer installed, e.g. __BUILD_LIST__ 1.0.0
with 1.1.0 and 1.2.0 installed, now invokes under
require_exact_tool_versions and runs 1.1.0, the newest version in its
WORKFLOW_SAFE_TOOL_VERSION_UPDATES range.
- The exact-version pre-flight accepts the safe update when the pinned
version misses.
- ToolModule swaps to the safe update for non-exact loads too. Stored steps
load non-exact at invocation, so they ran the newest version (1.2.0) even
though the run form treated the step as a safe upgrade.
- ToolModule.execute looks up the version the module resolved, not the
stored one, so its inputs match the module's state.
get_safe_version_tool backs both lookups.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A step with tool id .../compose_text_param/0.1.1 and tool_version 0.1.0
was reported as "(version 0.1.0, installed: 0.1.0, 0.1.1)" when both
versions are installed, which reads as if 0.1.0 were installed and
missing at once. When the requested version is installed under the same
versionless guid, the error now says the tool id names another version:
"(version 0.1.0, but the tool id names version 0.1.1)".
get_tool(exact=True) means exact tool id. On the eager toolbox a
versioned guid pinned to a version that isn't installed still resolved
to the newest installed version through lineage, so the invocation
pre-flight passed and the workflow ran another version. The cached
toolbox rejected the same step.
get_tool_at_version now also requires that the step's id names the tool
it found: the tool's id, its short id or its versionless guid. A
versioned guid names only its own version, the rule ToolsService applies
to exact lookups on dev. The pre-flight uses it as the only lookup for
exact steps that give a version, and ToolModule keeps another version
only for the workflow-safe update check.
When require_exact_tool_versions rejects a step, the 400 said the tool was
"not installed" even when other versions of it were. Append the versions
installed under that id, e.g. "compose_text_param (version 0.0.1, installed:
0.1.0)", so a version mismatch is not mistaken for a missing tool.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The invocation pre-flight passed require_exact_tool_versions as the toolbox's
exact argument, which means exact tool id. A step naming a Tool Shed tool by
its unversioned guid (or short id) plus tool_version missed the lookup, so API
invocations reported installed tools as "not installed". Saving missed the
same way, so updating such a workflow was refused for missing tools.
Add ToolBox.get_tool_at_version, which resolves an id through lineage but only
at the requested version, and fall back to it in the pre-flight and in
ToolModule.__init__ when the exact-id lookup misses. Version mismatches are
still reported as missing.
Fixes#24722
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin the toolbox's exact-id lookup semantics and the invocation pre-flight's
current handling of an unversioned Tool Shed tool_id: non-exact invocation
works, and an exact request for a version that isn't installed is rejected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test that a workflow with a collection input whose datasets have ext='auto'
delays scheduling and succeeds once extensions are resolved.
Related to galaxyproject/galaxy#22261