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

Ensure the we use the local releases.yml file on master

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Correctness
    • Fully Compatible
    • ALL
    • Correctness 2025-04-01
    • 200
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      From the logs of a patch testing the FCV 8.2 upgrade, it appears the future git tag variant always tries to fetch releases.yml remotely:

       [2025/03/13 11:56:59.318] [resmoke] 2025-03-13T15:56:59.318Z resmoke.py invocation with params for local usage:  buildscripts/resmoke.py run --suites=multiversion_auth_future_git_tag --continueOnFailure --excludeWithAnyTags=multiversion_incompatible,backport_required_multiversion,multiversion_auth_future_git_tag_backport_required_multiversion,requires_fcv_81 --excludeWithAnyTags=future_git_tag_incompatible --jobs=2 --shuffle --storageEngineCacheSizeGB=1 --mongodSetParameters='{}' --mongosSetParameters='{}'
       [2025/03/13 11:56:59.350] 2025-03-13 15:56:59 [info     ] Got releases.yml file remotely: https://raw.githubusercontent.com/mongodb/mongo/master/src/mongo/util/version/releases.yml
      

      This is used to determine the lastLTS and lastContinuous FCVs for the test. As a result, if we update releases.yml as part of the patch, for the future git tag variant, the test FCVs will be out of sync with the mongod FCVs.

      Later on, it appears we do then use the local releases.yml to determine what binaries to run. In my patch's case, we added 8.2 to releases.yml, so we try to run an 8.2 binary that doesn't exist since it was not set up.

       [2025/03/13 11:56:27.987] 2025-03-13 15:56:27 [info     ] Found releases.yml file locally: src/mongo/util/version/releases.yml
       [2025/03/13 11:56:27.991] /bin/sh: mongo-8.2: command not found
       [2025/03/13 11:56:27.991] Traceback (most recent call last):
       [2025/03/13 11:56:27.991]   File "/data/mci/944b0b255bffee449cb74cb961fca9e4/src/buildscripts/resmoke.py", line 20, in <module>
       [2025/03/13 11:56:27.991]     entrypoint()
       [2025/03/13 11:56:27.991]   File "/data/mci/944b0b255bffee449cb74cb961fca9e4/src/buildscripts/resmoke.py", line 16, in entrypoint
       [2025/03/13 11:56:27.992]     cli.main(sys.argv)
       [2025/03/13 11:56:27.992]   File "/data/mci/944b0b255bffee449cb74cb961fca9e4/src/buildscripts/resmokelib/cli.py", line 35, in main
       [2025/03/13 11:56:27.992]     subcommand.execute()
       [2025/03/13 11:56:27.992]   File "/data/mci/944b0b255bffee449cb74cb961fca9e4/src/buildscripts/resmokelib/run/__init__.py", line 101, in execute
       [2025/03/13 11:56:27.992]     self.generate_multiversion_exclude_tags()
       [2025/03/13 11:56:27.992]   File "/data/mci/944b0b255bffee449cb74cb961fca9e4/src/buildscripts/resmokelib/run/__init__.py", line 163, in generate_multiversion_exclude_tags
       [2025/03/13 11:56:27.992]     generate_multiversion_exclude_tags.generate_exclude_yaml(
       [2025/03/13 11:56:27.992]   File "/data/mci/944b0b255bffee449cb74cb961fca9e4/src/buildscripts/resmokelib/run/generate_multiversion_exclude_tags.py", line 177, in generate_exclude_yaml
       [2025/03/13 11:56:27.992]     old_version_commit_hash = get_backports_required_hash_for_shell_version(
       [2025/03/13 11:56:27.992]   File "/data/mci/944b0b255bffee449cb74cb961fca9e4/src/buildscripts/resmokelib/run/generate_multiversion_exclude_tags.py", line 63, in get_backports_required_hash_for_shell_version
       [2025/03/13 11:56:27.992]     shell_version = check_output(f"{mongo_shell} --version", shell=True, env=env_vars).decode(
       [2025/03/13 11:56:27.992]   File "/opt/mongodbtoolchain/revisions/fb8eb86be2e5ed5f91e7b4108f38f3bd36ddba4b/stow/python3-v4.ceI/lib/python3.10/subprocess.py", line 420, in check_output
       [2025/03/13 11:56:27.992]     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
       [2025/03/13 11:56:27.992]   File "/opt/mongodbtoolchain/revisions/fb8eb86be2e5ed5f91e7b4108f38f3bd36ddba4b/stow/python3-v4.ceI/lib/python3.10/subprocess.py", line 524, in run
       [2025/03/13 11:56:27.992]     raise CalledProcessError(retcode, process.args,
       [2025/03/13 11:56:27.992] subprocess.CalledProcessError: Command 'mongo-8.2 --version' returned non-zero exit status 127.
      

            Assignee:
            trevor.guidry@mongodb.com Trevor Guidry
            Reporter:
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: