[SERVER-34033] Powercycle script fails to complete in evergreen.yml Created: 21/Mar/18  Updated: 27/Oct/23  Resolved: 05/Nov/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Gone away Votes: 0
Labels: stm, tig-evgconfig, tig-powercycle
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Tooling & Methods
Operating System: ALL
Participants:
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?



 Comments   
Comment by Brooke Miller [ 05/Nov/21 ]

We've re-written powercylce and this issue has gone away since then.

Generated at Thu Feb 08 04:35:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.