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

Avoid hardcoding path to evergreen configuration file in resmoke

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Server Development Platform
    • Fully Compatible

      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

            Assignee:
            mikhail.shchatko@mongodb.com Mikhail Shchatko
            Reporter:
            mikhail.shchatko@mongodb.com Mikhail Shchatko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: