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

Merge 17.09. #5227

Merged
merged 13 commits into from Dec 15, 2017
Merged

Merge 17.09. #5227

merged 13 commits into from Dec 15, 2017

Conversation

jmchilton
Copy link
Member

Tricky merge of #5217 - I'd like to see the API tests pass.

jmchilton and others added 12 commits December 6, 2017 20:18
before checking whether stderr and exit code combination should result in a
failed job. This should fix galaxyproject#5214.
…led outputs.

I like this better for three reasons:

- Since usually it is scripts producing this JSON - we have the most control at that point for determining the failure and we don't have to deal with an artificial dependency between the tool's stdio and the output.
- At some point we could potentially allow some datasets to be ok now even though the job fails.
- It is a cleaner interface at the Python level between job finish and output collection IMO (no need for isinstance checking).
…to_stderr

Let ToolProvidedMetadata interface more directly decide if it has failed outputs.
…n_tools_write_to_stderr

[17.09] Fail job if tools that use galaxy.json write to stderr
run = run_response.json()
assert run_response.status_code == 200, run
job = run["jobs"][0]
self.wait_for_job(job["id"], timeout=timeout)
self.wait_for_history(history_id, assert_ok=True, timeout=timeout)
self.wait_for_history(history_id, assert_ok=assert_ok)
Copy link
Member Author

Choose a reason for hiding this comment

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

And that isn't right - the PR was a good choice.

@@ -145,15 +145,15 @@ def new_dataset_request(self, history_id, content=None, wait=False, **kwds):
payload = self.upload_payload(history_id, content=content, **kwds)
run_response = self.tools_post(payload)
if wait:
self.wait_for_tool_run(history_id, run_response)
self.wait_for_tool_run(history_id, run_response, kwds.get('assert_ok', True))
Copy link
Member

Choose a reason for hiding this comment

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

That should be assert_ok=kwds.get('assert_ok', True)

@nsoranzo nsoranzo merged commit 6d3eade into galaxyproject:dev Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants