Repository navigation
Conversation
Re-scopes CONTRIBUTING.rst to the gates maintainers actually enforce (CI green, changelog fragment, regression test, correct base branch) and cuts the aspirational asks. Refreshes the pyenv, pre-commit, and nox command examples; documents the .. deprecated:: directive; updates the git policy page with the current 3006.x/3007.x/3008.x/master branch matrix; expands the changelog page; documents formula state ID naming and pytest patterns; cleans up the 3000-era jinja filter samples. Adds tools/check_pr_ready.py and a pre-commit hook that asserts the documented PR gates (changelog fragment, no skipif TODO dodges, no debug print, no AI attribution trailer). Addresses: saltstack#36962 saltstack#56192 saltstack#56560 saltstack#57203 saltstack#57988 saltstack#58208 saltstack#59854 saltstack#62498
This was referenced Jul 1, 2026
The check-pr-ready pre-commit hook was scanning every passed file end to end, so a pre-commit --all-files run (as CI does) reported all of the pre-existing stray print() calls in salt/ and every legacy TODO-reason skipif in tests/ as violations. That failed the PR readiness gate on branches that did not introduce any of those lines. Restrict skipif, debug-print, and changelog-fragment reporting to lines that the current diff actually adds. The base ref is resolved from the upstream tracking branch, origin/HEAD, or HEAD^1 (which is the base tip on GitHub Actions' refs/remotes/pull/N/merge shallow checkout). Files that the PR did not touch produce zero violations. Add an --all-lines flag for a full audit when needed. Files supplied via test fixtures (not tracked by git) keep the old scan-everything behaviour, so the existing unit tests still exercise the detection logic.
Contributor
|
We are no longer accepting bug fixes on the 3006.x branch. Please rebase against the 3008.x branch. |
This was referenced Oct 17, 2026
Contributor
Author
|
@dwoz 3006.x has entered security only. Please rebase these changes on 3008.x |
Contributor
Author
|
Closing — 3006.x has entered security-only and this change doesn't apply or port cleanly to 3008.x. Reopen a fresh PR against 3008.x if you'd like to continue. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
3006.x companion of #69546. See that PR for the policy review checklist.
Adjusted from master:
NEEDS MAINTAINER REVIEW
Same as master PR.
Issues addressed
#62498 #57988 #57203 #64216 #68538 #56560 #59854 #66021 #58208 #36962 #56192
Test plan