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

chore: fix archive version while logging #144

Merged

Conversation

rebornplusplus
Copy link
Member

@rebornplusplus rebornplusplus commented Feb 23, 2024

Archive version was being changed to 23.1 instead 23.10 for values with trailing zeroes. This PR fixes the bug.

https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=14

@rebornplusplus rebornplusplus changed the title chore: fix archive version while logging chore: use updated scripts for Push, PR to main Feb 23, 2024
@rebornplusplus rebornplusplus marked this pull request as draft February 23, 2024 05:04
@rebornplusplus rebornplusplus force-pushed the ci/install-slices/archive-version branch from e2c9759 to 25cabd1 Compare February 23, 2024 05:29
@rebornplusplus rebornplusplus changed the title chore: use updated scripts for Push, PR to main chore: fix archive version while logging Feb 23, 2024
Archive version was being changed to 23.1 instead 23.10 for values with
trailing zeroes. This commit fixes the bug.

https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=143
@rebornplusplus rebornplusplus marked this pull request as ready for review February 23, 2024 05:45
str(archive_data["version"]), archive_data["components"], archive_data["suites"]
)
version = archive_data["version"]
if isinstance(version, float):
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there ever a time where this won't be a float?

Choose a reason for hiding this comment

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

is there ever a time where this won't be a float?

I think that may happen if something encloses the version with quotes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Since the chisel tool expects and reads version as a string, someone can enclose it in quotes as Anas mentioned.

Copy link
Collaborator

@cjdcordeiro cjdcordeiro left a comment

Choose a reason for hiding this comment

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

good catch. lgtm

@cjdcordeiro cjdcordeiro requested a review from linostar February 23, 2024 07:15
@cjdcordeiro cjdcordeiro self-assigned this Feb 23, 2024
Copy link

@linostar linostar left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@linostar
Copy link

The CI tests are showing us now what we have missed in several slices because we couldn't manually test them on every architecture :)
image

@cjdcordeiro cjdcordeiro merged commit a5cf4a0 into canonical:main Feb 23, 2024
18 of 29 checks passed
gregory-schiano pushed a commit to gregory-schiano/chisel-releases that referenced this pull request Jun 24, 2024
Archive version was being changed to 23.1 instead 23.10 for values with
trailing zeroes. This commit fixes the bug.

https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=143
clay-lake pushed a commit to clay-lake/chisel-releases that referenced this pull request Nov 18, 2024
Archive version was being changed to 23.1 instead 23.10 for values with
trailing zeroes. This commit fixes the bug.

https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=143
clay-lake pushed a commit to clay-lake/chisel-releases that referenced this pull request Nov 21, 2024
Archive version was being changed to 23.1 instead 23.10 for values with
trailing zeroes. This commit fixes the bug.

https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=143
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