-
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
Remove unused __orchestration__ ret key #59917
Conversation
d324920
to
f2f398b
Compare
This feels like something we should follow the normal deprecation path for. Add a warning that it will be removed in 2 releases and then delete it then. |
Does it mean a warning during each orchestration run? Seems to be too noisy for the majority of users who have no idea what this field means |
@max-arnold If it's not actively used anywhere in the code we can probably just have a note there and something in the release notes saying it will be removed in the future. I'd just hate to remove something that someone might be relying on in some capacity without adequate warning. |
It is not used anywhere in the Salt codebase (see the PRs linked in my first message) @mattp- Are your Salt installs depend on it in any way? |
@max-arnold nope, no use that I am aware of |
@max-arnold @mattp- If we're confident that no one would be using this information from the return data then I'm comfortable merging this PR. |
I have to second @garethgreenaway initial concerns about deprecating this over a couple of releases. Just because we don't see a use for it and don't make use of it, and don't think anyone is using it, doesn't mean that an existing user is not relying on it. Prefer deprecation |
Just echoing above, and as far as mechanisms go, I'd say something like this would be effective:
That would give them the ability:
|
@waynew i really dont think that is necessary for something im 99.9% sure noone uses, and adds more churn to an already churned set of config options. why not just document the deprecation and then slate the removal for N releases away |
I do not like the log warning, because it will add unnecessary noise for the majority of Salt users who have no idea what this obscure field means and who will be forced to look into the new setting. How do you all feel about the following idea (a little bit more aggressive deprecation):
This means smooth sailing with no distractions for 99.99% of Salt users, a minor inconvenience (enable the opt-in setting) for those from 0.01% who rely on the field AND read the changelog before upgrading to a new major Salt version, and a fixable problem for those who do not read the changelog |
@max-arnold I'm OK with that approach. (And after writing the below, I actually really like that approach) I think you're right that probably nobody is using it. But I'm also pretty sure that because there's always someone relying on some sort of weird edge case for some reason, removing it without remedy will require folks to downgrade. Like. there's probably some unmanned server that's been boarded up in a wall in a basement somewhere that's relying on this key being in the dictionary, and removing it will cause a meltdown in the financial systems of some township or something. But your approach - completely remove it, with a note in the log, and allow them to add a flag to re-enable (and then warn if they do that it will be completely removed following our regular deprecation cycle) - is I think the right blend of pragmatism and dogmatic adherence to our deprecation policy. 👍 |
Well @terminalmage add this back in the 2015 days
And I am wondering if this still applies but seeing nothing to check and suppress an error, unused internally as it said. Fine with it as @waynew state above |
508e54a
f2f398b
to
508e54a
Compare
@waynew I implemented the proposed change. The only strange thing is that I do not see any warnings from Is To trigger the warning, add the following snippet to
Then run the following orch using
|
508e54a
to
df21999
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.
🚀
@max-arnold I think there was something that happened recently that mucked with some warnings, but I haven't had time to track it down |
☝️ see the above mentions. I had some time this morning to track it down and add a fix 🎉 |
What does this PR do?
Remove obsolete
__orchestration__
key from return data.It is set in
salt.runner
andsalt.wheel
orchestration states and was supposed to be used in the highstate outputter: #35290However, it is no longer used in the codebase after the highstate outputter became recursive: #46022
CC: @mattp-
Merge requirements satisfied?
Commits signed with GPG?
No