Skip to content

Address corner case when generating version file#641

Merged
Binyang2014 merged 19 commits intomainfrom
binyli/version-fix
Oct 7, 2025
Merged

Address corner case when generating version file#641
Binyang2014 merged 19 commits intomainfrom
binyli/version-fix

Conversation

@Binyang2014
Copy link
Contributor

@Binyang2014 Binyang2014 commented Sep 30, 2025

Address corner case for version file generation

@Binyang2014
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Binyang2014 Binyang2014 changed the title address corner case Address corner case when generating version file Oct 3, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a corner case in version file generation by ensuring the MSCCLPP_HOME environment variable is set early in the initialization process and improving version string handling.

  • Moved MSCCLPP_HOME environment variable setup earlier in the initialization process
  • Improved version string pattern matching to handle different version formats
  • Updated comments to use generic version format examples

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
python/mscclpp/init.py Moved MSCCLPP_HOME environment variable setup to the top of the file before version retrieval
_build_version_metadata.py Improved regex pattern for version string manipulation and updated comments with generic examples

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Binyang2014 and others added 3 commits October 3, 2025 16:07
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Binyang2014
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Binyang2014
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@seagater seagater left a comment

Choose a reason for hiding this comment

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

The changes looks good to me. Since we use default version format "mscclpp-0.8.0.post1.dev0+gc632fee37.d20251007". It's ok to remove the special _build_version_metadata.py

@Binyang2014 Binyang2014 merged commit ddca185 into main Oct 7, 2025
26 of 30 checks passed
@Binyang2014 Binyang2014 deleted the binyli/version-fix branch October 7, 2025 21:32
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