Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1363

Raise job warnings in case of output in the stderr channel of shell jobs

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.4.1
    • None
    • None

    Description

      Current Situation

      • The Job Instruction in a workflow can be configured from the "Job Options" tab to "Fail on output to stderr".

      Desired Behavior

      • The Job Instruction should be added the option "Warn on output to stderr".
      • If output in the stderr channel is detected then a warning is raised:
        • a notification of type warning is created
        • the job is considered being successfully executed
      • Only one of the options to "Fail on output to stderr", to "Warn on output to stderr" or not to check the stderr channel can be selected from the GUI.

      Test Instructions

      • Configure a notification to use the type WARNING
      • Configure a workflow shell job with the Job Option -> Warn on output to stderr = true
      • Test 1 (core functionality)
        • configure the Job Script to create the output to strerr
          • e.g. Windows:
            echo my_stderr 1>&2
          • run workflow
        • Expected result : a notification will be created with the Warn Message: Job reports output to stderr: my_stderr
      • Test 2
        • configure multiple stderr outputs mixed with sleeps or stdout outputs
          • e.g. Windows:
            echo my_stderr_1 1>&2
            ping -n 10 localhost
            echo my_stderr_2 1>&2
            ping -n 10 localhost
            echo my_stderr_3 1>&2
        • Expected result : only one notification should be created
      • Test 3
        • Configure a job that uses the different warning types (e.g. Warn on longer execution, Return code on Warning, Warn on output to stderr)
        • Expected result : a separate notification should be created for each type of warning

      Attachments

        Issue Links

          Activity

            People

              re Robert Ehrlich
              ap Andreas PĆ¼schel
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: