Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@al-rigazzi
Copy link
Collaborator

@al-rigazzi al-rigazzi commented Oct 12, 2021

Most parsers use startswith to check that a line contains a given step id. This fails if there are two steps, where the step id are one the prefix of the other, e.g. 1111.1 and 1111.10. If the results are sorted so that 1111.10 appears before 1111.1, then the line of 1111.10 will be parsed even if the user requests 1111.1. The same applies to the more rare case where the job ids are 1 and 11 (this is frequent on LSF, due to jslist behavior).

This PR addresses this bug by computing an exact match of the step id and the line field.

Copy link
Contributor

@Spartee Spartee left a comment

Choose a reason for hiding this comment

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

LGTM

@al-rigazzi al-rigazzi merged commit 066e151 into CrayLabs:develop Oct 13, 2021
@al-rigazzi al-rigazzi deleted the wlm_parser_fix branch October 13, 2021 12:21
Spartee pushed a commit that referenced this pull request Dec 9, 2021
Replace usage of pandas library with smaller
pure python Tabulate package to reduce build
size and download time.

[ committed by @MattToast ]
[ reviewed by @Spartee ]
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