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

Remove balsamic r flag #2723

Merged
merged 13 commits into from
Dec 6, 2023
Merged

Remove balsamic r flag #2723

merged 13 commits into from
Dec 6, 2023

Conversation

seallard
Copy link
Contributor

@seallard seallard commented Nov 30, 2023

Description

This PR replaces the -r --run-analysis with the dry run flag. Closes #2722.

The -r flag ensured that slurm jobs only were run for balsamic with the --run-analysis option if it was provided to the cli initiating the balsamic run. It seems like this is no longer desired, the dry run flag now replaces this behavior. So the --run-analysis will not be used for the balsamic run if dry run is provided.

Fixed

  • Replace the -r flag with just the dry run flag for balsamic

This version is a

  • PATCH - when you make backwards compatible bug fixes or documentation/instructions

@seallard seallard marked this pull request as ready for review November 30, 2023 15:31
@seallard seallard requested a review from a team as a code owner November 30, 2023 15:31
Copy link
Contributor

@fevac fevac left a comment

Choose a reason for hiding this comment

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

❤️ yes, this looks like what we want to me. Note that merging this has to be sync with cron/systemd

Copy link
Contributor

@ivadym ivadym left a comment

Choose a reason for hiding this comment

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

Nice ⚡ 💯 Left you a tiny comment so we have the same expected behaviour with the dry-run as before

tests/cli/workflow/balsamic/test_run.py Outdated Show resolved Hide resolved
cg/cli/workflow/balsamic/base.py Show resolved Hide resolved
@seallard seallard requested review from ivadym and fevac December 4, 2023 12:49
Copy link

sonarqubecloud bot commented Dec 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@ivadym ivadym left a comment

Choose a reason for hiding this comment

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

Tests look fine in Stage 🥳 👍

We need to update automation and atlas documentation. I will do the latter in this PR: https://github.com/Clinical-Genomics/atlas/pull/2167

@seallard
Copy link
Contributor Author

seallard commented Dec 6, 2023

Tests look fine in Stage 🥳 👍

We need to update automation and atlas documentation. I will do the latter in this PR: Clinical-Genomics/atlas#2167

I checked the servers repo and from what I can see we only use the start available cli command to queue balsamic jobs (which does not use the --run-analysis flag). So I do not think any update is necessary. Unless I've missed something @ivadym

Copy link

sonarqubecloud bot commented Dec 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ivadym
Copy link
Contributor

ivadym commented Dec 6, 2023

Yes, you're right we had the run_analysis flag set to True in start available, so the logic was in CG 👍

@seallard seallard merged commit 5806d9d into master Dec 6, 2023
9 checks passed
@seallard seallard deleted the replace-balsamic-r-flag branch December 6, 2023 09:09
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.

Remove required -r option from cg workflow balsamic
3 participants