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

[21.05] Wait for uploaded datasets in API tests #12144

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Jun 15, 2021

Most methods that stage datasets already do that anyway. Might be nice
in the future if we could just cancel running jobs at the end of a test
and not wait for uploads where not necessary, but this should increase
test stability in the short term.

Fixes #12136 (comment)

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

Most methods that stage datasets already do that anwyway. Might be nice
in the future if we could just cancel running jobs at the end of a test
and not wait for uploads where not necessary, but this should increase
test stability in the short term.

Fixes galaxyproject#12136 (comment)
@mvdbeek mvdbeek force-pushed the wait_for_uploaded_datasets branch from d5ba389 to 8008c36 Compare June 15, 2021 15:05
@@ -1573,6 +1573,7 @@ def __datasets(self, history_id, count, contents=None):
if contents:
new_kwds["content"] = contents[i]
datasets.append(self.dataset_populator.new_dataset(history_id, **new_kwds))
Copy link
Member

Choose a reason for hiding this comment

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

Can just pass wait=True here I guess instead.

@mvdbeek mvdbeek modified the milestones: 21.09, 22.01 Sep 8, 2021
@mvdbeek mvdbeek modified the milestones: 22.01, 22.05 Jan 14, 2022
@mvdbeek
Copy link
Member Author

mvdbeek commented May 25, 2022

We're largely doing that now that we've switched to __DATA_FETCH__ in most tests.

@mvdbeek mvdbeek closed this May 25, 2022
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.

None yet

2 participants