Skip to content

Provide command-line option for loading a custom powershell.config.json #5847

Closed

Description

This enhancement is primarily driven by testing use cases including the following:

1: On Linux, syslog imposes a measurable overhead impacting test runtimes. (James Truher (@JamesWTruher): Please provide data)

2: For testing syslog and os_log there is a need to override the source name and output log to provide reliable verification.

One solution to both issues is to support launching an instance of PowerShell with a custom powershell.config.json file as a command-line option. For test runs, the json could restrict log output to error and critical messages. For syslog testing, the log file can be changed to ensure only the expected output is captured. For syslog and os_log, the source name can be changed to enable filtering and verifying the expected log messages.

Activity

  1. JamesWTruher commented on Jan 10, 2018

    @JamesWTruher
    Collaborator

    During GA testing I observed that many tests were taking many seconds (I didn't capture any specific data, but it was considerable), after disabling systemd-journald the time dropped considerably. It should be noted that the system under test was a single vcpu system, which may have some impact on logging efficiency

  2. iSazonov commented on Jan 12, 2018

    @iSazonov
    Collaborator

    Should the command-line option be only in debug code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions