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

CASMTRIAGE-7457: Fix bug causing some Python script symlinks from not being created #624

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

mharding-hpe
Copy link
Contributor

@mharding-hpe mharding-hpe commented Nov 5, 2024

An error in the regular expressions used in the create-python-script-symlinks.sh script resulted in no symlinks being created for some Python scripts in the virtual environment. Specifically, any scripts whose names contained numbers were omitted.

This PR refactors the build shell scripts to remove the need for that kind of regular expression. Now the script that creates the symlinks does not need to parse and transform the output from the script which updates pyproject.yaml. Instead, that latter script now adds two different types of lines to pyproject.yaml. One is the same as before, to be consumed by Python setuptools when building the package. The second is a comment line which provides exactly the data needed as input for the script that creates the Python symlinks.

This hopefully reduces the chances of a bug like the one we saw, where the script was registered with the Python module, but no symlink was created.

I have tested this on mug and verified that the missing symlinks are now created.

This PR also adds me and @jacobsalmela to the codeowners file, since we do a lot of work in the repo, and probably should get tagged as PR reviewers.

@mharding-hpe mharding-hpe requested a review from a team as a code owner November 5, 2024 18:44
Copy link
Contributor

@jacobsalmela jacobsalmela left a comment

Choose a reason for hiding this comment

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

I didn't extensively test #617, just some quick manual smoke tests 🍳

@mharding-hpe
Copy link
Contributor Author

I didn't extensively test #617, just some quick manual smoke tests 🍳

I ran a fair amount of tests, but I guess I missed running the one test which used the one script whose symlink wasn't being created. :)

@mharding-hpe mharding-hpe merged commit 07d4dbd into release/1.6 Nov 5, 2024
3 checks passed
@mharding-hpe mharding-hpe deleted the CASMTRIAGE-7457 branch November 5, 2024 18:59
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