Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tool-centric annotation of out of memory errors.
- Update explicit stdio definitions as well as detect_errors-based definitions to allow this. - Update runner code to allow resubmission in such cases.
- Loading branch information
Showing
16 changed files
with
222 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<tool id="exit_code_oom" name="exit_code_oom"> | ||
<!-- tool errors out with identified OOM error if less than 10MB are allocated. --> | ||
<command detect_errors="exit_code" oom_exit_code="42"><![CDATA[ | ||
echo 'Hello' > '$out_file1'; | ||
echo "\$GALAXY_MEMORY_MB"; | ||
: \${GALAXY_MEMORY_MB:=20}; | ||
echo "\$GALAXY_MEMORY_MB"; | ||
if [ "\$GALAXY_MEMORY_MB" -lt 10 ]; | ||
then | ||
exit 42; | ||
else | ||
exit 0; | ||
fi | ||
]]></command> | ||
<inputs> | ||
<param name="input" type="integer" label="Dummy" value="6" /> | ||
</inputs> | ||
<outputs> | ||
<data name="out_file1" /> | ||
</outputs> | ||
<help> | ||
</help> | ||
<tests> | ||
<test> | ||
<param name="input" value="5" /> | ||
<output name="out_file1"> | ||
<assert_contents> | ||
<has_line line="Hello" /> | ||
</assert_contents> | ||
</output> | ||
</test> | ||
</tests> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.