inspec/lib/plugins/inspec-parallel
Nikita Mathur c83733bf9e
CHEF-3833 Added delay for InSpec parallel status reporter (#6993)
* Added delay in status reporter for inspec-parallel for clear reporting

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Made chef-licensing warning silent between parallel runs

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Code review changes for setting output config

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* As a safe measure added logic to reset output stream

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-05-08 18:56:53 +05:30
..
lib CHEF-3833 Added delay for InSpec parallel status reporter (#6993) 2024-05-08 18:56:53 +05:30
test CHEF-6439 Mandatory Profile Signing (Preview) (#6705) 2023-11-09 08:20:43 -05:00
inspec-parallel.gemspec CFINSPEC-120 inspec parallel feature (#5975) 2022-06-13 13:58:41 -04:00
README.md CFINSPEC-120 inspec parallel feature (#5975) 2022-06-13 13:58:41 -04:00

Parallel Plugin

Plugin to handle parallel InSpec scan operations over multiple targets.

parallel cli_command

Implements the inspec parallel exec CLI command.

child-status Plugin

This reporter is an InSpec Streaming Reporter. It is used internally by inspec parallel to provide status updates on child processes.

What This Plugin Does

For each control executed, after it is complete, the plugin emits a line to STDOUT like:

12/P/24/Control Title Here

When the run is complete, the single line 'EOF_MARKER' is emitted.

Where:

  • 12 is the number of the control (12th seen out of all controls in all profiles)
  • P indicates that it Passed (Also F = Failed, S = Skipped, E = Errored)
  • 24 is the total number of controls in the run
  • "Control Title Here" is the title (or if title is missing, id) of the last executed control