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 glimmer tools error handling #6641

Merged

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Dec 16, 2024

All the tools that call into python scripts wouldn't fail on non-zero exit codes. They also didn't write to stderr, so in fact they could never fail. Also fixes the remaining lint errors.

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

All the tools that call into python scripts wouldn't fail on non-zero
exit codes. They also didn't write to stderr, so in fact they could
never fail. Also fixes the remaining lint errors.
@@ -16,8 +16,8 @@
<param name="infile" type='data' format="genbank" label="gene bank file"/>
</inputs>
<outputs>
<data name="aa_output" format="fasta" />
<data name="nc_output" format="fasta" />
<data name="aa_output" format="fasta" label="${tool.name}: Amino acids"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add on_string?

Copy link
Member Author

Choose a reason for hiding this comment

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

I absolutely think recording the input datasets in the dataset name is one of the worst ideas that still survives. Feel free to add it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess we'll eventually figure out a better way to do this. I wish we'd just not fill in ${on_string} and template that on the frontend ...

Copy link
Contributor

Choose a reason for hiding this comment

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

100%

Sorry did not see you suggestions...

@@ -16,8 +16,8 @@
<param name="infile" type='data' format="genbank" label="gene bank file"/>
</inputs>
<outputs>
<data name="aa_output" format="fasta" />
<data name="nc_output" format="fasta" />
<data name="aa_output" format="fasta" label="${tool.name}: Amino acids"/>
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
<data name="aa_output" format="fasta" label="${tool.name}: Amino acids"/>
<data name="aa_output" format="fasta" label="${tool.name} on ${on_string}: Amino acids"/>

<data name="aa_output" format="fasta" />
<data name="nc_output" format="fasta" />
<data name="aa_output" format="fasta" label="${tool.name}: Amino acids"/>
<data name="nc_output" format="fasta" label="{tool.name}: Nucleotides"/>
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
<data name="nc_output" format="fasta" label="{tool.name}: Nucleotides"/>
<data name="nc_output" format="fasta" label="{tool.name} on ${on_string}: Nucleotides"/>

Copy link
Contributor

@bernt-matthias bernt-matthias left a comment

Choose a reason for hiding this comment

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

We should probably bump this one. Maybe also use the version macro token in the requirements.

@bernt-matthias bernt-matthias merged commit a80e3e4 into galaxyproject:main Dec 16, 2024
14 checks passed
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.

2 participants