-
Notifications
You must be signed in to change notification settings - Fork 902
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
comm: make sure that our version check is reliable #5880
comm: make sure that our version check is reliable #5880
Conversation
94c4af4
to
6707f15
Compare
What did he report? |
that our version check did not work with the version release |
Just an idea, notice that there exist: lightning/ccan/ccan/tal/str/str.h Lines 180 to 185 in 3a39c63
Which you could use to match the version string with a regex, maybe a release version should always match this |
great idea, I just think to search inside ccan for a function like that!
pushing the code and see if the tests works! thanks |
de135dd
to
7c2e8c1
Compare
NACK 7c2e8c1 I think you missed the correction, the regex should be
the IMHO |
This is wrong, we are in There is any spec like https://semver.org/ where I can understand that your option is the correct one regarding our versioning model? |
@SimonVrouwe do you note any mistake in my code that causes the CI failure? regex is pretty unreadable, I'm tented to revert the regex usage and match just the length as original proposed
|
I like the tests, but the fix is actually to just change |
7c2e8c1
to
20c081d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack 20c081d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, might want to make Changelog more explicit:
Changelog-Fixed: database: Correctly identity official release versions for database upgrade.
Rework the logic of the version check used in the database migration, and make sure that it is full functional to avoid confusion at release time. Changelog-Fixed: database: Correctly identity official release versions for database upgrade. Reported-by: @urza Signed-off-by: Vincenzo Palazzo <[email protected]>
20c081d
to
619746e
Compare
Yep, thanks! ACK 619746e Just a commit format change |
@vincenzopalazzo Again an incomprehensible sentence, is it a statement or a question? Please learn English. From above link you provided:
and the paragraph Is there a suggested regular expression (RegEx) to check a SemVer string?, with an example showing that |
@SimonVrouwe we are no longer using https://semver.org |
Rework the logic of the version check used in the
database migration, and make sure
that it is full functional to avoid confusion
at release time.
Fixes #5870
Reported-by: @urza
Signed-off-by: Vincenzo Palazzo [email protected]