Skip to content

Fix running workflow tests when there are multiple tests#1407

Merged
mvdbeek merged 3 commits intogalaxyproject:masterfrom
mvdbeek:robust_error_reports
Nov 16, 2023
Merged

Fix running workflow tests when there are multiple tests#1407
mvdbeek merged 3 commits intogalaxyproject:masterfrom
mvdbeek:robust_error_reports

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

Looks good to me.

@lldelisle
Copy link

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
"""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
@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