-
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
prereq doesn't detect the prereq'd state's changes when using test=True #22024
Comments
@boboli I think you're right - there looks to be a bug here. I suspect we just didn't think through this case where |
I've actually chatted with @basepi about both of your issues, and I think that while these are similar bugs, this one demonstrates a better "proof of concept" bug where the other one could have a likely work around. This one seems like a more general "we didn't think this interaction through and now we're hitting the bug" while the other one, while exhibiting the same behavior, has a useful workaround. Though @basepi might disagree here and I have misunderstood him. |
Hehe, depends on your definition of "interact nicely". |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Easier to explain with examples:
asdf.sls:
I expect all 3 states to be run in the order of: fdsa, prereq_command, asdf
test=True output:
The test=True output claims that prereq_command won't be run, which is incorrect. Interesting enough, the state that is prereq'd (asdf) shows that it will be run but is shown in green not bold yellow.
When I run the state normally:
actual output (no test=True):
This exhibits the correct and expected behavior, however test=True mode didn't seem to agree. Reading the documentation on prereq, I believe having test=True mode be truthful is critical to the correctness of prereq states.
The text was updated successfully, but these errors were encountered: