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

Add $GALAXY_SLOTS and $GALAXY_MEMORY_MB to bbmerge #5937

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

natefoo
Copy link
Member

@natefoo natefoo commented Apr 9, 2024

Worth noting that setting -Xmx via $_JAVA_OPTIONS in the job env as many admins do still overrides this. I pulled the clever bit of handling for that from bbnorm.

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)

@@ -39,7 +39,12 @@
ln -s '${read2}' '${read2_file}' &&
#end if

bbmerge.sh
if [[ "\${_JAVA_OPTIONS}" != *-Xmx* && "\${JAVA_TOOL_OPTIONS}" != *-Xmx* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit scared of the unquoted * characters.

If we use the same code in different tools we should use a macro token.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is in a bash double bracket evaluation which I believe is safe (patterns are not matched)?

Copy link
Contributor

Choose a reason for hiding this comment

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

shellcheck also does not complain. should be fine.

@bgruening bgruening merged commit 1cd738c into galaxyproject:main Apr 12, 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.

3 participants