Skip to content

Extend firmware version handling for pre-release tests#17

Merged
MrKevinWeiss merged 2 commits into
masterfrom
feat/prerelease-fw-version
Jul 7, 2026
Merged

Extend firmware version handling for pre-release tests#17
MrKevinWeiss merged 2 commits into
masterfrom
feat/prerelease-fw-version

Conversation

@MrKevinWeiss

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@MrKevinWeiss MrKevinWeiss requested a review from Copilot July 7, 2026 07:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread src/lob_hlpr/lib_types.py
Comment on lines 41 to 49
_VERSION_REGEX = re.compile(
r"(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)"
# Pre-release tag per semver (e.g. rc.2, alpha.1)
# excludes reserved -dirty/-unknown suffixes
r"(?:-(?P<pre_release>"
r"(?!dirty(?:-|$)|unknown(?:-|$))[a-zA-Z][a-zA-Z0-9]*(?:\.[a-zA-Z0-9]+)*))?"
r"(?:-(?P<commits>\d+)-g(?P<commit>[0-9a-f]+))?"
r"(?P<dirty>-dirty)?(?P<unknown>-unknown)?"
)
Comment thread src/lob_hlpr/lib_types.py
r"^(?P<name>.+?)\s+"
# Version group, matches a semantic versioning pattern
r"v(?P<version>[0-9]+(?:\.[0-9]+){2}(?:-[\w]+)?(?:-\d+-g[0-9a-f]+)?)"
r"v(?P<version>[0-9]+(?:\.[0-9]+){2}(?:-[\w]+(?:\.[\w]+)*)?(?:-\d+-g[0-9a-f]+)?)"
Comment thread src/lob_hlpr/lib_types.py
r"^(?P<name>.+?)\+"
# Version group, matches a semantic versioning pattern
r"(?P<version>[0-9]+(?:\.[0-9]+){2}(?:-[\w]+)?(?:-\d+-g[0-9a-f]+)?)"
r"(?P<version>[0-9]+(?:\.[0-9]+){2}(?:-[\w]+(?:\.[\w]+)*)?(?:-\d+-g[0-9a-f]+)?)"
Comment on lines +61 to +62
def test_pre_release_rc():
"""Test with a semver pre-release tag like rc.2."""
@MrKevinWeiss MrKevinWeiss merged commit 72ce14b into master Jul 7, 2026
6 of 9 checks passed
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