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

Fix running workflow tests when there are multiple tests #1407

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Nov 14, 2023

and also re-uses the galaxy instance for additional test.

Fixes galaxyproject/iwc#274 (comment)

@lldelisle
Copy link
Contributor

Looks good to me.

@lldelisle
Copy link
Contributor

Failed lint is in planemo/engine/interface.py:

              output_collectors.append(
-                lambda run_response, test_case=test_case: test_results.append(test_case.structured_test_data(run_response))
+                lambda run_response, test_case=test_case: test_results.append(
+                    test_case.structured_test_data(run_response)
+                )
             )

@mvdbeek mvdbeek force-pushed the robust_error_reports branch from e8828fa to c3ee580 Compare November 14, 2023 13:06
Otherwise the lambda runs with the last test case only.
@mvdbeek mvdbeek force-pushed the robust_error_reports branch from c3ee580 to cf90306 Compare November 14, 2023 13:08
@@ -89,7 +89,7 @@ def test_data_manager_docker_mount(self):
@skip_if_environ("PLANEMO_SKIP_GALAXY_TESTS")
def test_workflow_test_simple_yaml(self):
"""Test testing a simple YAML workflow with Galaxy."""
with self._isolate():
with self._isolate() as test_dir:
random_lines = os.path.join(PROJECT_TEMPLATES_DIR, "demo", "randomlines.xml")
Copy link
Member

Choose a reason for hiding this comment

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

Not related, but why is the random_lines1 tool added as --extra_tools below (and in another test), even if the tool is not used in the wf1.gxwf.yml workflow?

Copy link
Member Author

Choose a reason for hiding this comment

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

maybe to check that multiple --extra_tools work ?

@mvdbeek
Copy link
Member Author

mvdbeek commented Nov 14, 2023

Test error seems unrelated, quay.io timing out

@mvdbeek mvdbeek requested a review from nsoranzo November 15, 2023 13:42
@mvdbeek mvdbeek enabled auto-merge November 16, 2023 11:05
@mvdbeek mvdbeek disabled auto-merge November 16, 2023 11:05
@mvdbeek mvdbeek merged commit ec3661c into galaxyproject:master Nov 16, 2023
13 of 14 checks passed
@mvdbeek mvdbeek deleted the robust_error_reports branch November 16, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants