[SERVER-80536] Avoid hardcoding path to evergreen configuration file in resmoke Created: 30/Aug/23  Updated: 29/Oct/23  Resolved: 19/Oct/23

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

Type: Improvement Priority: Major - P3
Reporter: Mikhail Shchatko Assignee: Mikhail Shchatko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Participants:

 Description   

While 7.1 branching found that we have hardcoded path to evergreen configuration file here. On 7.1 it was fixed by updating the path: https://github.com/mongodb/mongo/commit/9238c05d066ca360509efd73ee5b084f0c464963

We should avoid that and use evergreen_config_file_path parameter that we have in both evergreen.yml and evergreen_nightly.yml with the default "etc/evergreen.yml" value.

I would suggest to do something similar that we have here:
https://github.com/mongodb/mongo/blob/a4837acbd304b879a35026a34fcb9da6a96f2ef6/buildscripts/evergreen_task_timeout.py#L371-L372
https://github.com/mongodb/mongo/blob/8e004a1aa0450a52a7a5665f5f6d47b131128cfc/evergreen/functions/task_timeout_determine.sh#L52



 Comments   
Comment by Githook User [ 19/Oct/23 ]

Author:

{'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com', 'username': 'MikhailShchatko'}

Message: SERVER-80536 Avoid hardcoding path to evergreen configuration file in resmoke
Branch: master
https://github.com/mongodb/mongo/commit/5ba33a3e45b8500bc9e5a0f489f56eb1762abbeb

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