Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix #30971: Handle requisites correctly for empty SLS files#68534

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dwoz wants to merge1 commit intosaltstack:3006.x
base:3006.x
Choose a base branch
Loading
fromdwoz:issue/30971/3006.x

Conversation

@dwoz
Copy link
Contributor

Empty SLS files were not being tracked properly for requisite checking, causing 'requisite not found' errors. This fix ensures empty SLS files are processed and tracked correctly for requisite dependencies.

  • Added _processed_sls_files set to track processed SLS files
  • Track SLS files in compile_high_data even if they produce no chunks
  • Check _processed_sls_files when validating SLS requisites
  • Handle empty SLS requisites in call_chunk execution
  • Track SLS files in render_state and get_highstate
  • Added test case to test_require.py to verify the fix

Fixes#30971

Empty SLS files were not being tracked properly for requisite checking,causing 'requisite not found' errors. This fix ensures empty SLS filesare processed and tracked correctly for requisite dependencies.- Added _processed_sls_files set to track processed SLS files- Track SLS files in compile_high_data even if they produce no chunks- Check _processed_sls_files when validating SLS requisites- Handle empty SLS requisites in call_chunk execution- Track SLS files in render_state and get_highstate- Added test case to test_require.py to verify the fix
@dwozdwoz requested a review froma team as acode ownerDecember 14, 2025 02:20
@dwozdwoz added the test:fullRun the full test suite labelDec 14, 2025
fromsalt.serializers.msgpackimportserializeasmsgpack_serialize
fromsalt.templateimportcompile_template,compile_template_str
fromsalt.utils.datastructuresimportDefaultOrderedDict,HashableOrderedDict
fromsalt.utils.odictimportDefaultOrderedDict,HashableOrderedDict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This doesn't look right. Weren't all the usages intentionally moved out of odict to datastructures and odict deprecated?

twangboy reacted with thumbs up emoji
@twangboy
Copy link
Contributor

Changelog

Comment on lines -1234 to -1235
ifisinstance(low_data["check_cmd"],str):
low_data["check_cmd"]= [low_data["check_cmd"]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This looks like it was inadvertently removed

# Track all SLS files that were processed, even if they produced no chunks
# This is needed to handle SLS files that produce no output but are still
# required by other states (Issue #30971)
processed_sls_files=set()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thisprocessed_sls_files variable appears to be unused. It is added to below but I don't see where it is ever read.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@bdrx312bdrx312bdrx312 left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

@dwozdwoz

Labels

test:fullRun the full test suite

Projects

None yet

Milestone

Sulfur v3006.18

Development

Successfully merging this pull request may close these issues.

3 participants

@dwoz@twangboy@bdrx312

[8]ページ先頭

©2009-2025 Movatter.jp