-
Notifications
You must be signed in to change notification settings - Fork 114
Creates hashes for different compliers/setups #981
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
base: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 4a57558
Previous suggestionsSuggestions up to commit 4a57558
Suggestions up to commit d42a0f7
✅ Suggestions up to commit 4952826
|
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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.
Pull Request Overview
This PR replaces the existing SHA256 hash-based build staging directory naming system with human-readable identifiers to improve debugging and build artifact organization. The change makes it easier to identify different compiler configurations and build setups at a glance.
Key Changes:
- Replace SHA256 hash generation with descriptive slug components
- Add compiler detection through CMake cache parsing
- Include configuration options, chemistry info, and compiler type in directory names
compiler = "unknown" | ||
return compiler | ||
|
||
pat = re.compile(r"CMAKE_.*_COMPILER:FILEPATH=(.+)", re.IGNORECASE) |
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.
The regex pattern is compiled inside the method on every call. Consider moving this to module level or class level as a constant to avoid recompilation.
pat = re.compile(r"CMAKE_.*_COMPILER:FILEPATH=(.+)", re.IGNORECASE) | |
pat = CMAKE_COMPILER_REGEX |
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
/improve |
Persistent suggestions updated to latest commit 4a57558 |
User description
Avoid hashes for staging that are obscure character strings.
PR Type
Enhancement
Description
Replace SHA256 hash-based slugs with human-readable identifiers
Add compiler detection for build staging directories
Include configuration options and chemistry info in slugs
Improve build artifact organization and debugging
Diagram Walkthrough
File Walkthrough
build.py
Replace hash slugs with readable identifiers
toolchain/mfc/build.py
slugs