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
Fixes to check_requisite to account for parallelization #58976
Fixes to check_requisite to account for parallelization #58976
Conversation
…quisite states not all running states.
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.
I would also prefer, and this is a personal preference, if we stopped piling up .sls
files in out test suite state tree.
See https://github.com/saltstack/salt/blob/master/tests/integration/states/test_pkgrepo.py#L356
The reason behind this preference is because it's easy to stop using an sls file on a test and not delete the actual sls file, leaving it in the state tree forever, not being used.
Additionally, the bigger the state tree the less performat it is? ... This is almost a question.
Anyway, I tend to prefer that a test is self contained in it's test function so we always know, by reading the test function, and not having to look elsewhere, what's going on.
If we make it only sleep 2 or 3 seconds, it still tests the issue right? Even if they only sleep 1 second we can still test it right? Just trying to make it not so slow... |
@s0undt3ch Yes. The issue is tested if the sleep is only for 2 or 3 seconds as opposed to 5. |
Update sleep from 5 seconds to 2 seconds to bump up the run time.
re-run full all |
So I tried to run the following state:
The parallelization works as expected, but the total run time is confusing, because it is still about ~30 seconds:
|
What does this PR do?
When we are checking requisites, run reconcile_procs just on those requisite states not all running states.
What issues does this PR fix or reference?
Fixes: #49273
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.