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

fix(robot-server): ignore trailing empty lines in csv rtps #16185

Merged
merged 7 commits into from
Sep 4, 2024

Conversation

y3rsh
Copy link
Collaborator

@y3rsh y3rsh commented Sep 3, 2024

Overview

https://opentrons.atlassian.net/browse/RQA-3134

Since it’s commonplace to put an empty line at the end of a file, parse_as_csv() should ignore such lines.

Test Plan and Hands on Testing

Unit tests cover the scenarios. Will test actual CSV file in bug verification on the next alpha.

Risk assessment

  • Low other than this deviates from how the standard library csv.reader behaves.

@y3rsh y3rsh self-assigned this Sep 3, 2024
@y3rsh y3rsh requested a review from a team as a code owner September 3, 2024 22:29
@y3rsh y3rsh changed the title Rqa 3134 no empty trailing lists RQA-3134 no empty trailing lists Sep 3, 2024
Copy link
Member

@sfoster1 sfoster1 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; if you want to clone rather than modify you can use this example.

@sfoster1 sfoster1 changed the title RQA-3134 no empty trailing lists fix(robot-server): ignore trailing empty lines in csv rtps Sep 4, 2024
@y3rsh y3rsh merged commit d045115 into chore_release-8.0.0 Sep 4, 2024
21 checks passed
@y3rsh y3rsh deleted the RQA-3134-no-empty-trailing-lists branch September 4, 2024 15:27
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