-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Convert relative paths to absolute as their associated sls file is processed #61659
Convert relative paths to absolute as their associated sls file is processed #61659
Conversation
7e90d28
to
f75659b
Compare
Want deeply reviewed since state system |
f75659b
to
96e1ca6
Compare
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.
Well, the only thing that I was particularly worried about was something like the IDs changing - it does change __sls__
if you're using --out=json
, but aside from that, based on some internal discussion/exploration it doesn't seem to be a problem, and all of the tests are passing, especially saltcheck which looks like one of the main places that __sls__
is being used.
I don't have any reason to block this, and I've tested it locally and it appears to do what it says on the tin 👍
03cb0ff
to
10033ff
Compare
re-run fedora |
re-run freebsd |
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.
🚀
What does this PR do?
Converts the relative path sls files to their equivalent absolute path when initially rendering their state.
What issues does this PR fix or reference?
Fixes: #54179
Previous Behavior
Would get conflicting ID's for the same sls file when rendering the paths for relative and absolute paths to the same file. For example:
salt/bug.bug
salt/bug/bug
are the same sls file from the perspective of the salt/bug directory, but would generate conflicting ids
New Behavior
When rendering the relative path salt/bug.bug, it is now converted to it's absolute path salt/bug/bug.
This is similar to converting all local time to UTC such that comparisons are simplified, likewise using absolute paths.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.