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

Powercycle script fails to complete in evergreen.yml

    XMLWordPrintable

Details

    • ALL
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: