[SERVER-30107] set_sudo in evergreen.yml can cause errexit Created: 12/Jul/17  Updated: 30/Oct/23  Resolved: 29/Sep/17

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

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 2017-10-23
Participants:

 Description   

The expansion key set_sudo can cause an errexit, since it uses the following logic:

set -o | grep errexit | grep on

It would better if we did the following:

set -o > /tmp/settings.log
set +o errexit
grep errexit /tmp/settings.log | grep on
errexit_on=$?



 Comments   
Comment by Githook User [ 29/Sep/17 ]

Author:

{'email': 'jonathan@mongodb.com', 'name': 'Jonathan Abrahams', 'username': 'hptabster'}

Message: SERVER-30107 Fix set_sudo in evergreen.yml to prevent errexit
Branch: master
https://github.com/mongodb/mongo/commit/0385e6b9514f7856cfbcd4f850930ebbd0895021

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