Skip to content

Replace pchanges with changes to make onchanges/prereq work in test mode - #49832

Merged
rallytime merged 8 commits into
saltstack:developfrom
terminalmage:issue45895
Oct 2, 2018
Merged

rallytime merged 8 commits into
saltstack:developfrom
terminalmage:issue45895

Conversation

@terminalmage

Copy link
Copy Markdown
Contributor

Fixes #49753
Fixes #45895

@ghost
ghost requested review from a team September 29, 2018 02:38
@terminalmage terminalmage changed the title Replace pchanges with changes make onchanges/prereq work in test mode Replace pchanges with changes to make onchanges/prereq work in test mode Sep 29, 2018
@cachedout

Copy link
Copy Markdown
Contributor

@terminalmage There are some lint errors that need some attention, please. Thanks!

@terminalmage

Copy link
Copy Markdown
Contributor Author

@cachedout Done.

Since "pchanges" was never supported in the state compiler, and
"changes" is what these reqs always used, replacing "pchanges" with
"changes" will allow those requisites to work in test mode.
This allows for a state return dict to be repacked so that the top level
keys are the IDs, making it much easier to analyze and craft asserts
against the results.
this requisite passes a __prerequired__ kwarg so these need to support
**kwargs for that reason.

This also changes the comment for salt.function in test mode because
it's inaccurate and doesn't make sense.
@rallytime

Copy link
Copy Markdown
Contributor

@terminalmage

Copy link
Copy Markdown
Contributor Author

Test should pass now, just needed to be updated to reflect pchanges removal

@rallytime

Copy link
Copy Markdown
Contributor

There should probably be a notice about this in the Neon release notes.

@terminalmage

Copy link
Copy Markdown
Contributor Author

I'll add this on Tuesday.

@terminalmage

Copy link
Copy Markdown
Contributor Author

@rallytime Since I just opened a PR to make a documentation addition in the same section that documentation of onchanges/prereq would have needed to go, rather than making conflicting changes that would require a rebase I decided to add them to the other PR (#49864).

terminalmage added a commit to terminalmage/salt that referenced this pull request Oct 2, 2018
@rallytime
rallytime merged commit 014078d into saltstack:develop Oct 2, 2018
@Oloremo

Oloremo commented Mar 8, 2019

Copy link
Copy Markdown
Contributor

Really I'd like this to be ported to Fluorine. Test mode makes close to 0 sense without seeing diffs.

@gtmanfred

Copy link
Copy Markdown
Contributor

@saltstack/team-core based on comments from the community, it might be a good idea to backport this #45895 (comment)

@angeloudy

Copy link
Copy Markdown
Contributor

Which release will this PR be merged into?
I cannot believe that 2019.2.0 is released with such a huge bug not fixed.

@KChandrashekhar

Copy link
Copy Markdown

After discussion with Tom, it's been determined this needs to be back ported

@KChandrashekhar KChandrashekhar added the bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch label Mar 28, 2019
@Ch3LL Ch3LL added Bugfix - [Done] back-ported and removed bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch labels Apr 4, 2019
garethgreenaway added a commit that referenced this pull request Apr 12, 2019
@Ch3LL Ch3LL mentioned this pull request Mar 31, 2020
s0undt3ch added a commit to s0undt3ch/salt that referenced this pull request May 20, 2020
dwoz pushed a commit that referenced this pull request May 20, 2020
@terminalmage
terminalmage deleted the issue45895 branch February 13, 2024 00:13
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.

10 participants