Skip to content

Rewrite contributor docs to match current PR review policy [DRAFT - 3006.x] - #69549

Closed
dwoz wants to merge 3 commits into
saltstack:3008.xfrom
dwoz:docs-pr11-contributing-3006
Closed

dwoz wants to merge 3 commits into
saltstack:3008.xfrom
dwoz:docs-pr11-contributing-3006

Conversation

@dwoz

@dwoz dwoz commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

3006.x companion of #69546. See that PR for the policy review checklist.

Adjusted from master:

  • pyenv version pinned to 3.10.20 to match 3006.x CI.

NEEDS MAINTAINER REVIEW

Same as master PR.

Issues addressed

#62498 #57988 #57203 #64216 #68538 #56560 #59854 #66021 #58208 #36962 #56192

Test plan

  • sphinx build clean on changed files
  • pytest tests/pytests/unit/test_pr_ready_checker.py - 15/15 PASSED
  • Maintainer policy sign-off

dwoz added 2 commits June 25, 2026 16:19
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
@dwoz dwoz added this to the Sulphur v3006.26 milestone Jun 25, 2026
@dwoz dwoz added the test:full Run the full test suite label Jun 25, 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.
@twangboy

twangboy commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

We are no longer accepting bug fixes on the 3006.x branch. Please rebase against the 3008.x branch.

@dwoz

dwoz commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@dwoz 3006.x has entered security only. Please rebase these changes on 3008.x

@dwoz

dwoz commented Oct 22, 2026

Copy link
Copy Markdown
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.

@dwoz dwoz closed this Oct 22, 2026

This branch was previously deployed

1 inactive deployment
ci — a12ba813 Deployed Jul 6, 2026 by dwoz via Build Onedir Packages / Windows (amd64) #25317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants