Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to Tool Test Parsing #18560

Merged
merged 8 commits into from
Jul 19, 2024

Conversation

jmchilton
Copy link
Member

Building on various commits that add some useful test cases, typing, and refactoring parsing logic for reuse out of tools/__init__.py and basic.py, I've reworked the building of ToolTestDescription objects to use ToolSource abstractions instead of the Tool object internals and basic.py abstractions.

I kept trying to force Pydantic models in to the tool test APIs in the tool state branch but they kept breaking Galaxy tests. Bringing all this code under type checking and having a bunch of unit tests should help track down whatever problems those were. Being required to have Galaxy loads these descriptions in order to build test descriptions... has always been a little odd. Planemo should be able to reason about tool tests with the same abstractions as Galaxy now and catch more problems, etc... faster.

If you walk through the commits, you'll see I built up some before and after unit tests to make sure the test parsing changes didn't break anything. We will see if the framework tests catch anything else - if they do I'll add the relevant tests.

How to test the changes?

(Select all options that apply)

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@jmchilton jmchilton added kind/refactoring cleanup or refactoring of existing code, no functional changes area/tools area/packaging labels Jul 18, 2024
@jmchilton jmchilton force-pushed the test_parsing_work branch 2 times, most recently from 25ada78 to ca53185 Compare July 18, 2024 15:00
Add to tool_util, drop all the Galaxy mocking required using the older tool based logic.
@jmchilton jmchilton force-pushed the test_parsing_work branch 2 times, most recently from 33bf596 to 71d5aa8 Compare July 18, 2024 17:32
@jmchilton jmchilton force-pushed the test_parsing_work branch from 71d5aa8 to 7d4c9f4 Compare July 18, 2024 17:37
@jmchilton jmchilton marked this pull request as ready for review July 18, 2024 19:50
@github-actions github-actions bot added this to the 24.2 milestone Jul 18, 2024
Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks a lot!

@mvdbeek mvdbeek merged commit 21289b9 into galaxyproject:dev Jul 19, 2024
50 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging area/tools kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants