Skip to content

fix-onchanges-requisite#68710

Draft
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:fix-68593-onchanges-requisite
Draft

fix-onchanges-requisite#68710
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:fix-68593-onchanges-requisite

Conversation

@harshang03
Copy link

What does this PR do?

Prevents self‑referential requisites from creating recursive cycles, improves onchanges evaluation for prereq‑only runs, and adds docs guidance plus a functional test for the same‑ID onchanges case.

What issues does this PR fix or reference?

Fixes #68593

Previous Behavior

States with multiple declarations sharing the same ID could trigger “Recursive requisite found” with onchanges, even for the docs example pattern.

New Behavior

Self‑referential requisites are ignored with a warning, onchanges uses prereq test results when applicable, and the same‑ID example runs without recursive errors.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

@bdrx312
Copy link
Contributor

bdrx312 commented Feb 14, 2026

As I commented with test results here: #68593 (comment), I believe #68593 is already fixed in master.

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.

[Bug]: onchange example: recursive requisite found

2 participants