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

Don't add comment printing command if there are no comments to print #706

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

jmarshall
Copy link
Contributor

Followup to #695, which made this check in server/ar.py but neglected it in server/cromwell.py:

When get_batch_comments() returns [], this invoked job.command('') which leads to a syntax error in the eventual job's shell script.

When get_batch_comments() returns [], this invoked `job.command('')`
which leads to a syntax error in the eventual job's shell script.
Copy link
Contributor

@MattWellie MattWellie left a comment

Choose a reason for hiding this comment

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

LGTM, but I'm not sure if this treats my current problem as I'm finding this error mode in a non-Cromwell run

@jmarshall
Copy link
Contributor Author

jmarshall commented Sep 24, 2024

Turns out the same problem in non-Cromwell runs was only fixed recently in 3.1.0, and deploying that failed (for possibly spurious reasons see #707). So we'll merge this and try to deploy both fixes.

@jmarshall jmarshall merged commit 3af5c3e into main Sep 24, 2024
4 checks passed
@jmarshall jmarshall deleted the avoid-empty-command branch September 24, 2024 01:26
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