[JAVA-4791] Remove legacy shell from test scripts Created: 25/Oct/22  Updated: 07/Dec/23  Resolved: 07/Dec/23

Status: Closed
Project: Java Driver
Component/s: Evergreen Tools
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Task Priority: Minor - P4
Reporter: PM Bot Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2328 Remove legacy shell from test scripts Implementing
Upstream Changes Summary:

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.

Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

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



 Comments   
Comment by Githook User [ 07/Dec/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Install legacy shell

JAVA-4791
Branch: 4.11.x
https://github.com/mongodb/mongo-java-driver/commit/b155d88c8dd89f453b45af87d46c6a528dd724ca

Comment by Githook User [ 07/Dec/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Install legacy shell

JAVA-4791
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/24f7df9ed5c27f60e404f006cf874eaca6d2b5ed

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