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

remote test data: add test for multiple=true #16495

Closed

Conversation

bernt-matthias
Copy link
Contributor

(Please replace this header with a description of your pull request. Please include BOTH what you did and why you made the changes. The "why" may simply be citing a relevant Galaxy issue.)
(If fixing a bug, please add any relevant error or traceback)
(For UI components, it is recommended to include screenshots or screencasts)

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.

@bernt-matthias bernt-matthias marked this pull request as draft July 31, 2023 15:33
@github-actions github-actions bot added this to the 23.2 milestone Jul 31, 2023
@bernt-matthias
Copy link
Contributor Author

Hi @davelopez just discovered that remote test data does not work yet for the multiple="true" case. I stumbled around in the code for some hours but have no idea how to fix this.

Any ideas where to start would be appreciated.

@mvdbeek
Copy link
Member

mvdbeek commented Jul 31, 2023

What did you try ? The framework tests do not use the test interactor.

@bernt-matthias
Copy link
Contributor Author

bernt-matthias commented Jul 31, 2023

I tried to planemo test this tool and in my attempts to debug it appeared that the upload got the comma separated URLs. Test just told me input staging problem.

What did you try ? The framework tests do not use the test interaction.

Now I remember. So uploading the test was quite useless...

@davelopez
Copy link
Contributor

davelopez commented Jul 31, 2023

I guess the comma-separated URLs is not supported as util.download_to_file will not like it here:

https://github.com/davelopez/galaxy/blob/ecbf0972b57934c3f03fab34482339abd45e7a9f/lib/galaxy/tool_util/verify/interactor.py#L869

Not sure how to handle multiple files there though...

@bernt-matthias
Copy link
Contributor Author

Where/how is the test_data_downloader used for staging input data? I can only understand how it works for output verification.

@davelopez
Copy link
Contributor

You're right, sorry, I already forgot the test_data_downloader is only used on outputs. In that case, my assumption will be that here:

tool_input.update({"files_0|url_paste": location})

Could the upload1 tool require one files_#|url_paste for each comma-separated URL? I'm not sure how multiple URLs are handled there.

@bernt-matthias
Copy link
Contributor Author

I guess we need to do the splitting earlier. It appeared to me that for value the splitting is done here:

param_value = _split_if_str(param_value)
(seems that this code is called when preparing the test dictionary ).

Location is also used there, but only for determining the basename. I tried to also split it there .. but then realised that its not used :(

At this point I got stuck yesterday.

@davelopez davelopez self-assigned this Aug 2, 2023
@davelopez
Copy link
Contributor

I'll try to take a look at this in detail, soonish

bernt-matthias added a commit to bernt-matthias/galaxy that referenced this pull request Oct 24, 2023
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.

3 participants