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

Prevent Silent Errors #666

Merged
merged 6 commits into from
Nov 8, 2024
Merged

Prevent Silent Errors #666

merged 6 commits into from
Nov 8, 2024

Conversation

sage-wright
Copy link
Member

@sage-wright sage-wright commented Oct 31, 2024

This PR closes #642

🗑️ This dev branch should be deleted after merging to main.

🧠 Summary

In tasks where python scripts are called, we are telling the WDL to actually stop when the exit code is 1.

⚡ Impacted Workflows/Tasks

This PR may lead to different results in pre-existing outputs: No

This PR uses an element that could cause duplicate runs to have different results: No

🛠️ Changes

⚙️ Algorithm

Truly, all I am doing is adding a pipefail warning

➡️ Inputs

⬅️ Outputs

🧪 Testing

Suggested Scenarios for Reviewer to Test

🔬 Final Developer Checklist

  • The workflow/task has been tested and results, including file contents, are as anticipated
  • The CI/CD has been adjusted and tests are passing (Theiagen developers)
  • Code changes follow the style guide
  • Documentation and/or workflow diagrams have been updated if applicable (Theiagen developers only)

🎯 Reviewer Checklist

  • All changed results have been confirmed
  • You have tested the PR appropriately (see the testing guide for more information)
  • All code adheres to the style guide
  • MD5 sums have been updated
  • The PR author has addressed all comments
  • The documentation has been updated

@sage-wright sage-wright changed the title Prevent Silence Errors Prevent Silent Errors Oct 31, 2024
@kapsakcj
Copy link
Contributor

kapsakcj commented Nov 4, 2024

FYI I found a bug in the export_taxon_tables task that causes a silent error:

Traceback (most recent call last):
File "<stdin>", line 365, in <module>
TypeError: bad operand type for unary ~: 'str'

It's due to a stray ~ in the code here:

"srst2_vibrio_version": "~{srst2_vibrio_version}",~

I'm fixing it over on PR #662 but you may want to add to this PR if you're testing the task/workflow via TheiaProk wfs

@sage-wright sage-wright marked this pull request as ready for review November 8, 2024 19:53
@sage-wright sage-wright requested a review from a team as a code owner November 8, 2024 19:53
Copy link
Contributor

@AndrewLangvt AndrewLangvt left a comment

Choose a reason for hiding this comment

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

Thanks for adding these @sage-wright. We should make this standard practice for all WDL task development, going forward.

@AndrewLangvt AndrewLangvt merged commit 2669f99 into main Nov 8, 2024
9 checks passed
@AndrewLangvt AndrewLangvt deleted the smw-pipefail-dev branch November 8, 2024 20:35
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.

[Transfer_Column_Content] Workflow fails silently when permissions issues encountered
4 participants