Closed Bug 1788078 Opened 2 years ago Closed 2 years ago

Lando's `config/milestone.txt` parsing is broken

Categories

(Conduit :: Lando, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheehan, Assigned: sheehan)

Details

Attachments

(1 file)

Parsing of the config/milestone.txt file failed when trying to land an uplift to beta. Right now the parsing is done with a regex that parses the whole file. A more foolproof way to parse this version would be to just take the last line of the file and pass to a Version object, which is a more robust handling of the version.

It might be more bulletproof to parse the only line in the file that doesn't start with # and isn't empty.

Attached file GitHub Pull Request

(In reply to :glob ✱ from comment #1)

It might be more bulletproof to parse the only line in the file that doesn't start with # and isn't empty.

That was my original implementation, but in review it was suggested to change to a regex. The regex failed in practice and now we basically just .strip().splitlines()[-1]. You can check the PR attached. :)

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: