Commit Graph
1643 Commits
Author SHA1 Message Date
John ChiltonandClaude Opus 4.6 8981856d36 Fix ToolExpressionOutput.to_model() for boolean type.
to_model() checked "bool" but production expression tools (pick_value,
param_value_from_file) declare type="boolean". Fix to_model() to match
canonical "boolean" and fix lone test tool using non-canonical "bool".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 10:54:39 -04:00
mvdbeek 73ee2ba9ce Merge branch 'release_26.0' into dev 2026-03-04 16:42:49 +01:00
Claude fa4c9bd4ac Add trailing slash to dataset display URL and playwright test
Fix HTML datasets with extra files returning 404 errors when previewed.
Without a trailing slash on the display URL, the browser resolves
relative paths (e.g., image.jpg) against /datasets/{id}/ instead of
/datasets/{id}/display/, causing sub-resources to fail loading.

Adds a playwright test that verifies the trailing slash is present in
the iframe src and that extra files are accessible via relative paths.

https://claude.ai/code/session_01AvNoEjTngF3u59NJvSmPrg
2026-03-04 14:35:49 +01:00
John Chilton 05b93c04f7 Merge pull request #21927 from jmchilton/timelimit
Allow tools to specify timelimits.
2026-03-01 21:17:41 -05:00
Nicola Soranzo ce7c321691 Merge pull request #16970 from mr-c/galaxy_mit_license
Switch to only MIT license
2026-02-25 10:52:33 +00:00
John ChiltonandClaude Opus 4.6 df4272f175 Add timelimit resource requirement type for Galaxy XML/YAML tools.
Add timelimit to ResourceType literal, XSD schema, Pydantic model,
and cwl_to_galaxy mapping. Update test fixtures and assertions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 01:59:33 -05:00
Ahmed Awan 7004522c38 Merge remote-tracking branch 'upstream/release_26.0' into merge_26.0_into_dev_feb 2026-02-24 15:07:26 -06:00
Nicola Soranzo 720fae9afd Merge branch 'release_25.1' into release_26.0 2026-02-24 13:12:42 +00:00
Michael R. Crusoe 4d6519ae77 Switch to only MIT license 2026-02-23 14:35:30 +01:00
John ChiltonandClaude Opus 4.6 4f30b3efd5 Add any-collection-type YAML tool with comprehensive job_runtime specs.
New gx_data_collection_any_y tool accepts any collection type (no
collection_type constraint). Specs cover list, paired, list:paired,
and record in job_runtime_valid. Fix parameter_tool_source to handle
_y suffix convention matching functional_test_tool_source.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 15:58:17 -05:00
John ChiltonandClaude Opus 4.6 7285d3bf87 Normalize YAML tool naming scheme in test tools.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 15:58:17 -05:00
John ChiltonandClaude Opus 4.6 30b167c7ed Comma-separated collection type specs, deeper E2E tests.
- Add gx_data_collection_list_paired_or_list_list and
  gx_data_collection_list_or_list_paired tool definitions + specs
- Add job_runtime valid/invalid specs for comma-separated type unions
- Add E2E test for list:list:paired, record:paired dynamic models
- Tighten nested collection assertions to use dynamic model types

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 15:58:17 -05:00
John ChiltonandClaude Opus 4.6 7493fed862 Add 8 collection type functional tool definitions.
Tool YAMLs + sample_tool_conf.xml entries for record, sample_sheet,
paired_or_unpaired, list:paired, list:list, list:list:paired,
list_or_record, paired_or_pou.

Rebase note: squash into 419f415dbf (Add cross-type discrimination tests).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 15:58:17 -05:00
John ChiltonandClaude Opus 4.5 3f3a656535 Harden collection runtime models with discriminated unions.
Use Pydantic discriminated unions to enforce that collection_type
matches element structure:
- Add Literal types to simple models (list, paired, record, etc.)
- Add DataCollectionSampleSheetRuntime as separate model
- Split DataCollectionNestedRuntime into NestedList and NestedRecord
- Add collection_runtime_discriminator() for routing validation
- Create CollectionRuntimeDiscriminated tagged union
- Add structure mismatch tests (list with object elements, etc.)
- Add gx_data_collection_list_or_paired test tool

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 15:58:17 -05:00
John ChiltonandClaude Opus 4.5 1ac44a260c Wire job_runtime validation into parameter specification tests.
Add validate_job_runtime to validation layer and test runner. Add
job_runtime_valid/invalid specs for data, data_multiple, data_collection,
and typed collection (list/paired) params. New gx_data_collection_paired
test tool for paired collection_type coverage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 15:58:16 -05:00
John ChiltonandClaude Opus 4.5 3a08805237 Implement collection input runtimeify for YAML tools.
Removes NotImplementedError for DataCollectionParameterModel in
runtimeify() by implementing full collection-to-runtime conversion.
Collections produce normalized representations with class, name,
collection_type, tags, and elements. List-like types (list,
sample_sheet) get array elements; record-like types (paired,
paired_or_unpaired, record) get object elements.

Adds DataCollectionElementInternalJson subtype of DataInternalJson
for stronger typing of files within collections (adds
element_identifier, columns fields).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 15:58:16 -05:00
John Chilton f8decd4785 WIP: allow collection inputs to YAML tools. 2026-02-12 15:58:16 -05:00
John Chilton 8d84e3dd11 YAML test for collection WIP. 2026-02-12 15:58:16 -05:00
John Chilton 85d5d17321 claude infrastructure for managing test tools. 2026-02-12 15:58:16 -05:00
John Chilton 8276031c43 Failing gx_boolean_user.yml tool to develop against. 2026-02-12 15:58:16 -05:00
John Chilton 1bb986cdb1 Add a function tests for multiple selects from user tools. 2026-02-12 15:58:16 -05:00
John Chilton cc89081927 Modeling and validation of YAML tool test cases. 2026-02-12 10:50:13 -05:00
Arash a2bd20ee60 Add container requirement to secret_tool test fixture 2026-02-11 16:24:41 +01:00
John Chilton 3028bb6d29 Merge pull request #21495 from bernt-matthias/test-output_collections_min_max
Tool testing: add min/max attributes to test output collections
2026-01-27 08:09:40 -05:00
mvdbeek fc53dfb2e0 Merge branch 'release_25.1' into dev 2026-01-20 18:39:27 +01:00
mvdbeek e46f9e789c Add database operation tool to convert sample sheets to list collections
This tool converts sample sheet collections back to their corresponding
non-sample-sheet types by stripping the column_definitions and row
column metadata:

- sample_sheet -> list
- sample_sheet:paired -> list:paired
- sample_sheet:paired_or_unpaired -> list:paired_or_unpaired
- sample_sheet:record -> list:record

Useful when a sample sheet needs to be passed to a tool that expects
a regular list collection, or when discarding sample sheet metadata.
2026-01-20 15:07:22 +01:00
Aysam Guerler 8aa8f8836f Merge pull request #21501 from bernt-matthias/test-filter-repeat
Add functional test for filtering outputs by parameters in repeats
2026-01-20 11:19:11 +03:00
mvdbeek 2cdded1ea9 Add test that ensures irrelevant outputs are not copied back 2026-01-12 16:08:18 +01:00
Leonid Kostrykin e804adeff3 Fix for bool images` 2026-01-07 18:11:13 +01:00
Leonid Kostrykin 329d130b7f Add test for content assertions with bool image 2026-01-03 11:59:13 +01:00
Matthias Bernt 1dfa4dce6d Add function test for filtering outputs in repeats 2025-12-22 13:51:45 +01:00
Matthias Bernt 1b834a7a0b allow only count assertions it test outputs 2025-12-19 13:13:57 +01:00
Matthias Bernt 6178df3dcf tool testing add min/max attributes to test output collections 2025-12-19 11:44:15 +01:00
John Chilton 374cfe7a30 Fix tool request API for multiple select parameters with defaults. 2025-12-10 09:44:08 -05:00
Nicola Soranzo 9188de2f3b Merge branch 'release_25.1' into dev 2025-11-12 14:18:45 +00:00
Nicola Soranzo ba0bf2e868 Merge branch 'release_25.0' into release_25.1 2025-11-12 12:15:23 +00:00
John Chilton 7d251e76b2 Fixtures for manually ensuring we don't lexiographically sort tool versions. 2025-11-04 11:32:38 -05:00
John Chilton 154804985b Merge pull request #21204 from ahmedhamidawan/merge_25.1_into_dev_oct
Merge 25.1 into dev
2025-10-31 15:32:27 +01:00
John Chilton f72ce7c034 Implement collection references in tool request API.
Based on work in https://github.com/galaxyproject/galaxy/pull/20004.
2025-10-29 16:34:17 -04:00
Nicola Soranzo 9a520d5d28 Remove/replace unnecessary casts 2025-10-29 16:34:17 -04:00
John Chilton c5f5a3136d Implement text defaults in Tool Request API. 2025-10-29 16:33:27 -04:00
John Chilton 2e4a50a38c Tool Request API... 2025-10-29 16:33:22 -04:00
mvdbeek 20b691b7cd Resolve possible symlink before establishing tool file location
I don't think this is a security issue because adding entries to the
tool config files is controlled by admins.

Fixes pulsar tests that fail after required_files was added to the
Filter1 tool. Also allows dropping the the symlink to the tool script.
2025-10-27 18:12:52 +01:00
davelopez 3b65a05241 Add vault integration tests for credentials
Introduces tests to validate integration between user credentials and the vault, ensuring secure storage and deletion of secrets.
2025-10-07 16:07:09 +02:00
Arash afc933ba3f Add source_version, service_name, and service_version to user credentials and removing service_reference, optional, and multiple from user credentials definition and add optional tag to the credential definition and update related functionality 2025-10-07 16:05:45 +02:00
Arash 015a526aa1 Renames 'reference' to 'service_reference'
Applying suggestions from John Davis
2025-10-07 16:05:40 +02:00
Arash 56429fee15 updating the credentials to the new format 2025-10-07 16:04:47 +02:00
Arash ff8b00084d Add tests for secrets in tools 2025-10-07 16:04:42 +02:00
mvdbeek 9a69b5a3a0 Add `precreate_directory` flag 2025-10-01 09:01:58 +02:00
mvdbeek 9cdff7b7ae Add support for picking `from_work_dir` directory
Convenient for XML, required for the yaml version of tools.
2025-10-01 09:01:29 +02:00