Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34033

Powercycle script fails to complete in evergreen.yml

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Story Points:
      5

      Description

      The evergreen script to run the powercycle test is as follows:

        "run powercycle test" :
          - command: shell.exec
            params:
              working_dir: src
              shell: bash
              script: |
                set -o verbose
                set -o errexit
      ...
                set +o errexit
                $python -u pytests/powertest.py --configFile=$config_file
                test_status=$?
                aws_ec2=$($python buildscripts/aws_ec2.py --imageId ${instance_id} --mode status)
                echo "Test completed, AMI EC2 instance ${instance_id} status: $aws_ec2"
                exit $test_status
      

      The shell.exec script exits after $python -u pytests/powertest.py --configFile=$config_file, irregardless of the exit code from python. This does not appear to be an Evergreen issue, but seem be be due to the powertest.py itself. Perhaps it is killing the parent PID by mistake?

        Attachments

          Activity

            People

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM)
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: