Skip to content

Fix commands in the Contributing to Salt guide - #68539

Merged
dwoz merged 1 commit into
saltstack:3006.xfrom
sitepoint:68538-contributing_guide_fixes
Dec 17, 2025
Merged

dwoz merged 1 commit into
saltstack:3006.xfrom
sitepoint:68538-contributing_guide_fixes

Conversation

@boltronics

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes commands that are no longer accurate in the Contributing to Salt: A Guide for Contributors page.

What issues does this PR fix or reference?

Fixes #68538 and the page URL here.

Previous Behavior

The commands to stop the salt-master and salt-minion processes do not work.

(salt) abolte@debian12-salt-dev:~/salt$ ps auxf
abolte     82534  0.0  0.6  83132 54036 ?        S    15:04   0:00 /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon MainProcess
abolte     82647  0.0  0.7 164036 57428 ?        Sl   15:04   0:00  \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon PubServerChannel._publish_daemon
abolte     82648  0.0  0.6  90332 56888 ?        S    15:04   0:00  \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon EventPublisher
abolte     82652  0.0  0.6  82108 50556 ?        S    15:04   0:00  \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon ReqServer ReqServer_ProcessManager
abolte     82653  0.0  0.6 458964 52224 ?        Sl   15:04   0:00  |   \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon ReqServer MWorkerQueue
abolte     82654  0.0  0.8 242892 66120 ?        Sl   15:04   0:00  |   \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon ReqServer MWorker-0
abolte     82656  0.0  0.8 242892 65224 ?        Sl   15:04   0:00  |   \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon ReqServer MWorker-1
abolte     82657  0.0  0.7 250060 59964 ?        Sl   15:04   0:00  |   \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon ReqServer MWorker-2
abolte     82664  0.0  0.8 244172 65772 ?        Sl   15:04   0:00  |   \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon ReqServer MWorker-3
abolte     82665  0.0  0.8 244172 66388 ?        Sl   15:04   0:00  |   \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon ReqServer MWorker-4
abolte     95264  0.0  0.6 156864 51552 ?        Sl   18:05   0:00  \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon FileserverUpdate
abolte     95266  0.0  0.7  89796 61344 ?        S    18:05   0:01  \_ /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-master --config-dir=local/etc/salt/ --log-level=debug --daemon Maintenance
abolte     83349  0.0  0.9 405560 75184 ?        Sl   15:04   0:09 /home/abolte/.pyenv/versions/salt/bin/python /home/abolte/.pyenv/versions/salt/bin/salt-minion --config-dir=local/etc/salt/ --log-level=debug --daemon MultiMinionProcessManager MinionProcessManager
(salt) abolte@debian12-salt-dev:~/salt$ kill -INT $(pgrep salt-minion)
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
(salt) abolte@debian12-salt-dev:~/salt$ pgrep salt-minion
(salt) abolte@debian12-salt-dev:~/salt$ pgrep salt-master
(salt) abolte@debian12-salt-dev:~/salt$ 

Additionally, the example unit test commands do not work due to a path change.

(salt) abolte@debian12-salt-dev:~/salt$ ls -l tests/unit/cli/test_batch.py
ls: cannot access 'tests/unit/cli/test_batch.py': No such file or directory
(salt) abolte@debian12-salt-dev:~/salt$

New Behavior

They work if we use -f.

(salt) abolte@debian12-salt-dev:~/salt$ pgrep -f salt-minion
83349
(salt) abolte@debian12-salt-dev:~/salt$ pgrep -f salt-master
82534
82647
82648
82652
82653
82654
82656
82657
82664
82665
95264
95266
(salt) abolte@debian12-salt-dev:~/salt$ ls -l tests/pytests/unit/cli/test_batch.py
-rw-r--r-- 1 abolte abolte 3474 Dec 11 20:24 tests/pytests/unit/cli/test_batch.py
(salt) abolte@debian12-salt-dev:~/salt$ 

Merge requirements satisfied?

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

Tests are not applicable here since this is exclusively a change to the documentation.

Commits signed with GPG?

Yes

@twangboy twangboy added the test:full Run the full test suite label Dec 16, 2025
@twangboy twangboy linked an issue Dec 16, 2025 that may be closed by this pull request
@twangboy twangboy added this to the Sulfur v3006.18 milestone Dec 16, 2025
@dwoz
dwoz merged commit 5014c0a into saltstack:3006.x Dec 17, 2025
@boltronics
boltronics deleted the 68538-contributing_guide_fixes branch December 18, 2025 01:30

This branch was previously deployed

1 inactive deployment
ci — aa0b7601 Deployed Dec 16, 2025 by twangboy
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.

[DOCS] Update commands in the Contributing guide page

3 participants