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

[24.2] Add bwa_mem2_index directory datatype, framework enhancements for testing directories #19694

Open
wants to merge 17 commits into
base: release_24.2
Choose a base branch
from

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Feb 25, 2025

This is essentially a one-liner with a lot of testing work 😅.

The basic need is for a directory datatype, subclasses like bwa_mem2_index can represent most if not all reference data.
Here I've switched our primary tool testing function over to target __FETCH_DATA__ (workflow tests are already using this), and I fixed up cwl-style directory uploads which (at least currently) are not working.
It is now possible to upload directories in xml tool tests and workflow tests (via planemo and our internal framework).
Also adds format into the expression input object, so we can use format to decide if a workflow step needs to run.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

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

@mvdbeek mvdbeek changed the title Add bwa_mem2_index directory datatype, framework enhancements for testing directories [24.2] Add bwa_mem2_index directory datatype, framework enhancements for testing directories Feb 25, 2025
@github-actions github-actions bot added this to the 25.0 milestone Feb 25, 2025
@mvdbeek mvdbeek force-pushed the bwa_index_directory_datatype branch from 1374fff to 84e3350 Compare February 25, 2025 13:45
@mvdbeek mvdbeek force-pushed the bwa_index_directory_datatype branch 2 times, most recently from bc1dcaa to a43e655 Compare February 25, 2025 14:43
@jmchilton
Copy link
Member

Why 24.2 😅 - I mean I think switching the upload API for the tool tests is a long standing issue that I'm so excited to see resolved but it is a big thing that should probably be against dev right?

@mvdbeek mvdbeek force-pushed the bwa_index_directory_datatype branch from 5a0e23b to 23a623d Compare February 25, 2025 17:10
@mvdbeek mvdbeek force-pushed the bwa_index_directory_datatype branch from 66cd66f to 7770878 Compare February 26, 2025 11:33
@mvdbeek mvdbeek force-pushed the bwa_index_directory_datatype branch from bc8e424 to b7238a0 Compare February 26, 2025 12:16
@mvdbeek mvdbeek force-pushed the bwa_index_directory_datatype branch from 2bebf19 to e6b27a3 Compare February 26, 2025 12:18
@mvdbeek
Copy link
Member Author

mvdbeek commented Feb 26, 2025

As a nice side effect the tool framework tests are almost twice as fast, since __FETCH_DATA__ uploads are handled in celery.

@mvdbeek
Copy link
Member Author

mvdbeek commented Feb 26, 2025

Why 24.2 😅 -

These are (almost, with the exception of being able to set metadata on composite datasets) exclusively client-side changes in tool-util that enable directory datasets to be used in tests ... that's what I meant with "essentially a one-liner". All of this should already work against galaxy going back as far as 18.05, when __FETCH_DATA__ was added. There might be minor fallout in the weekly iuc tests, but if there is I'm positive we can fix this pretty easily.

@mvdbeek
Copy link
Member Author

mvdbeek commented Feb 26, 2025

Test failures are unrelated ... should I build a planemo branch that uses this against the IUC codebase or are we ok as is ?

@mvdbeek mvdbeek requested a review from a team February 27, 2025 15:00
@jmchilton
Copy link
Member

exclusively client-side changes in tool-util that enable directory datasets to be used in tests

Which is an extensive code base with large implications and worthy some sort of versioning I think. I wouldn't say just because something doesn't affect the backend - it isn't part of the versioned interface of Galaxy. That said - I'm excited about this and I trust you will handle any Planemo fallout. I'm a +1 as is despite the branch target reservations.

@mvdbeek
Copy link
Member Author

mvdbeek commented Feb 27, 2025

Thank you, I appreciate that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants