Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-3164

Remove legacy shell from test scripts

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Evergreen Tools, Spec Comp
    • None
    • Hide

      DRIVERS-2328:
      The legacy shell will no longer be installed in the near future. Drivers are encouraged to remove all usages of the legacy shell in their drivers with this Go driver PR serving as inspiration.

      All drivers that require the use of the legacy library are required to define the INSTALL_LEGACY_SHELL environment variable to a non-zero value when running MongoDB installation (either by running run-orchestration.sh or by manually invoking download_and_extract() from download-mongoldb.sh). This variable replaces the current SKIP_LEGACY_SHELL variable which will no longer be respected.

      The upcoming changes can be tested by using the development branch for this change. In your evergreen functions, locate the git clone command that clones the drivers-evergreen-tools repository and replace it with this command:

      git clone https://github.com/alcaeus/drivers-evergreen-tools.git --depth 1 --branch skip-legacy-shell-by-default $DRIVERS_TOOLS
      

      This will show which of your build tasks still need the legacy shell, which can be installed using the INSTALL_LEGACY_SHELL environment variable in that specific task.

      Show
      DRIVERS-2328 : The legacy shell will no longer be installed in the near future. Drivers are encouraged to remove all usages of the legacy shell in their drivers with this Go driver PR serving as inspiration. All drivers that require the use of the legacy library are required to define the INSTALL_LEGACY_SHELL environment variable to a non-zero value when running MongoDB installation (either by running run-orchestration.sh or by manually invoking download_and_extract() from download-mongoldb.sh ). This variable replaces the current SKIP_LEGACY_SHELL variable which will no longer be respected. The upcoming changes can be tested by using the development branch for this change. In your evergreen functions, locate the git clone command that clones the drivers-evergreen-tools repository and replace it with this command: git clone https: //github.com/alcaeus/drivers-evergreen-tools.git --depth 1 --branch skip-legacy-shell-by- default $DRIVERS_TOOLS This will show which of your build tasks still need the legacy shell, which can be installed using the INSTALL_LEGACY_SHELL environment variable in that specific task.
    • Fully Compatible
    • Not Needed

      This ticket was split from DRIVERS-2328, please see that ticket for a detailed description.


      The Ruby driver and Mongoid are not affected by the change described in the upstream ticket, because Ruby implements its own support code on top of the drivers-evergreen-tools scripts (https://github.com/mongodb-labs/mongo-ruby-spec-shared). However, we ought to make some time to update our tooling so that it installs mongosh, so that we can (1) remove our limited dependency on the legacy shell, and (2) update certain tests to use newer server versions, which are currently held back by said dependency on the legacy shell.

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: