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

quick fixes #153

Merged
merged 2 commits into from
Oct 1, 2024
Merged

quick fixes #153

merged 2 commits into from
Oct 1, 2024

Conversation

charles-cowart
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Sep 19, 2024

Pull Request Test Coverage Report for Build 11132933430

Details

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 81.895%

Changes Missing Coverage Covered Lines Changed/Added Lines %
sequence_processing_pipeline/Job.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
sequence_processing_pipeline/Job.py 1 65.98%
Totals Coverage Status
Change from base Build 10862698601: -0.03%
Covered Lines: 2090
Relevant Lines: 2378

💛 - Coveralls

@charles-cowart charles-cowart self-assigned this Sep 19, 2024
Copy link
Contributor

@antgonza antgonza left a comment

Choose a reason for hiding this comment

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

Looks good, some minor questions.

@@ -257,6 +260,8 @@ def query_slurm(job_ids):
jobs = {}
child_jobs = {}
for job_id, unique_id, state in lines:
# ensure unique_id is of type string for downstream use.
unique_id = str(unique_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this actually possible? I mean, lines is an array of strings (x.split).

@@ -226,6 +226,9 @@ def wait_on_job_ids(self, job_ids, callback=None):
# them before returning, optionally submitting callbacks for each
# job-id.

# ensure all ids are strings to ensure proper working w/join().
job_ids = [str(x) for x in job_ids]
Copy link
Contributor

Choose a reason for hiding this comment

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

What edge case caused problems here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I once passed in a list of job-ids that had been converted to int()s in the process of error checking and it made the entire job fail because of a downstream str.join(). IMHO this is prudent as there's nothing else checking the input parameters for this method and this kind of error is the kind that can be hard to debug for some down the road. Moreover because it uses a list comprehension it should be pretty cheap.

@antgonza antgonza merged commit b1249a3 into biocore:master Oct 1, 2024
2 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