[DRIVERS-1971] MONGODB-AWS tests failing on v5.2.0-alpha-229-g02751b4 Created: 02/Nov/21  Updated: 28/Oct/23  Resolved: 02/Nov/21

Status: Closed
Project: Drivers
Component/s: Authentication
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Shane Harvey Assignee: Shane Harvey
Resolution: Fixed Votes: 0
Labels: drivers-evergreen-tools
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-58947 servers.js passes logComponentVerbosi... Closed
Driver Changes: Not Needed

 Description   

MONGODB-AWS tests failing on v5.2.0-alpha-229-g02751b4:

 [2021/11/01 23:32:08.149] sh4122| + /root/mongo --verbose --nodb ecs_hosted_test.js
.
 [2021/11/01 23:32:08.205] sh4122| MongoDB shell version v5.2.0-alpha-229-g02751b4
.
 [2021/11/01 23:32:09.093] sh4122| uncaught exception: Error: 1 is not greater than 1 : MongoDB versions must have at least two components to compare, but "mongodb" has 1 :
 [2021/11/01 23:32:09.093] sh4122| doassert@src/mongo/shell/assert.js:20:14
 [2021/11/01 23:32:09.093] sh4122| _assertCompare@src/mongo/shell/assert.js:993:9
 [2021/11/01 23:32:09.093] sh4122| assert.gt@src/mongo/shell/assert.js:1003:9
 [2021/11/01 23:32:09.093] sh4122| convertVersionStringToArray@src/mongo/shell/servers.js:188:5
 [2021/11/01 23:32:09.093] sh4122| _convertVersionToIntegerArray@src/mongo/shell/servers.js:620:9
 [2021/11/01 23:32:09.093] sh4122| convertVersionStringToInteger@src/mongo/shell/servers.js:199:35
 [2021/11/01 23:32:09.093] sh4122| appendSetParameterArgs@src/mongo/shell/servers.js:1183:36
 [2021/11/01 23:32:09.093] sh4122| runMongoProgram@src/mongo/shell/servers.js:1600:12
 [2021/11/01 23:32:09.093] sh4122| @ecs_hosted_test.js:30:15
 [2021/11/01 23:32:09.093] sh4122| @ecs_hosted_test.js:5:2
 [2021/11/01 23:32:09.093] sh4122| failed to load: ecs_hosted_test.js
 [2021/11/01 23:32:09.093] sh4122| exiting with code -3

https://evergreen.mongodb.com/task/mongo_python_driver_aws_auth_test__platform~ubuntu_18.04_python_version~system_python3_aws_auth_test_latest_8b2eb24c35689a6e6508cd694c2bd615d2fd20d8_21_11_01_21_26_47

I suspect the problem is that we are using runMongoProgram to run a shell script:

const program = "/root/src/.evergreen/run-mongodb-aws-ecs-test.sh";
 
// Try the command line
const smoke = runMongoProgram(program, uri);

https://github.com/mongodb-labs/drivers-evergreen-tools/blob/3b650a3/.evergreen/auth_aws/lib/ecs_hosted_test.js#L27-L30

We should probably use runProgram() or run() instead.



 Comments   
Comment by Githook User [ 02/Nov/21 ]

Author:

{'name': 'Shane Harvey', 'email': 'shnhrv@gmail.com', 'username': 'ShaneHarvey'}

Message: DRIVERS-1971 Stop using runMongoProgram to run shell scripts (#177)
Branch: master
https://github.com/mongodb-labs/drivers-evergreen-tools/commit/0b97ae4b529a5e7db93cdbb37cbaec79f0815a0e

Comment by Shane Harvey [ 02/Nov/21 ]

PR: https://github.com/mongodb-labs/drivers-evergreen-tools/pull/177

Comment by Shane Harvey [ 02/Nov/21 ]

I suspect this was caused by SERVER-58947.

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