Skip to content

Ensure --batch-wait and other batch options appear in man page salt.1 - #60678

Merged
garethgreenaway merged 7 commits into
saltstack:masterfrom
ScriptAutomate:batch-wait-arg
Sep 8, 2021
Merged

garethgreenaway merged 7 commits into
saltstack:masterfrom
ScriptAutomate:batch-wait-arg

Conversation

@ScriptAutomate

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds some args missing from the documentation of the CLI, and for the man pages (salt.1) specifically. This PR addresses missing batch-related args.

What issues does this PR fix or reference?

Fixes: #60629

A follow-up issue has been made for a more thorough audit: #60677

Previous Behavior

--batch-wait was only within the salt.7 man pages and online topics/targeting/batch.html documentation. It was missing as an arg within the salt.1 man pages, which get generated from doc/ref/cli/salt.rst for the CLI.

Various other args are missing. Many args can be found via salt --help that aren't present in the CLI documentation.

New Behavior

Adds batch-related arg docs:

  • --batch-wait
  • --batch-safe-limit
  • --batch-safe-size

Additional comments

salt.1 man pages are only generated when docs are generated for a release, so the generated man pages are not included in this PR. I did confirm that salt.1 will properly list the new args.

# Generate, and not overwrite, man pages
nox -e 'docs-man(compress=False, update=False, clean=False)'

# man pages are generated in doc/_build/man/
grep -irn batch doc/_build/man/salt.1

Output:

117:.B \-b BATCH, \-\-batch\-size=BATCH
125:.B \-\-batch\-wait=BATCH_WAIT
127:freeing the slot in the batch of the next one.
131:.B \-\-batch\-safe\-limit=BATCH_SAFE_LIMIT
132:Execute the salt job in batch mode if the job would have executed
137:.B \-\-batch\-safe\-size=BATCH_SAFE_SIZE
138:Batch size to use for batch jobs created by \-\-batch\-safe\-limit.

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

@ScriptAutomate
ScriptAutomate requested a review from a team as a code owner August 5, 2021 16:15
@ScriptAutomate
ScriptAutomate requested review from dhiltonp and removed request for a team August 5, 2021 16:15
Comment thread doc/ref/cli/salt.rst Resolved
Comment thread doc/ref/cli/salt.rst Resolved
@sagetherage sagetherage added the Silicon v3004.0 Release code name label Aug 12, 2021
Comment thread changelog/60629.fixed Resolved
@ScriptAutomate ScriptAutomate added the documentation Relates to Salt documentation label Aug 30, 2021
@ScriptAutomate ScriptAutomate added this to the Silicon milestone Aug 30, 2021
@garethgreenaway
garethgreenaway merged commit e8bcb54 into saltstack:master Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Relates to Salt documentation Silicon v3004.0 Release code name

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] --batch-wait is not documented in the salt(1) man page

6 participants