-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPC-2510 Install evergreen tools using git submodule #1797
base: v1.x
Are you sure you want to change the base?
Conversation
.github/dependabot.yml
Outdated
- package-ecosystem: "gitsubmodule" | ||
directory: "/tests/" | ||
schedule: | ||
interval: "weekly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want dependabot to push updates for libmonc and libmongocrypt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to specify the path to the actual submodule, or does this need to be a level above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try with the submodule path; it should work.
Update drivers-evergreen-tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the installation instructions for evergreen tools to use a Git submodule rather than cloning during the build process.
- Updated .evergreen/README.md to reflect the new installation method.
- Changed the description to indicate that the package is installed as a Git submodule in the tests repository.
Files not reviewed (6)
- .evergreen/config/functions.yml: Language not supported
- .github/dependabot.yml: Language not supported
- .github/workflows/tests.yml: Language not supported
- .github/workflows/windows-tests.yml: Language not supported
- .gitmodules: Language not supported
- tests/drivers-evergreen-tools: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the installation instructions for evergreen tools, switching from cloning during the build process to using a Git submodule.
- Updated README in the .evergreen directory with new installation instructions.
- Clarified that the evergreen tools package is now installed as a Git submodule in the tests repository.
Files not reviewed (6)
- .evergreen/config/functions.yml: Language not supported
- .github/dependabot.yml: Language not supported
- .github/workflows/tests.yml: Language not supported
- .github/workflows/windows-tests.yml: Language not supported
- .gitmodules: Language not supported
- tests/drivers-evergreen-tools: Language not supported
.evergreen/config/functions.yml
Outdated
else | ||
git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS | ||
fi | ||
git submodule update --init --depth 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The --depth 1
was not in PHPLIB. I can add it also to reduce the Git history that get downloaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to revert this change, there is a git checkout inside the libmongoc submodule when LIBMONGOC_VERSION
is set (always). Maybe I can fetch the tag directly.
mongo-php-driver/.evergreen/config/functions.yml
Lines 139 to 145 in bf34d5b
working_dir: "src/src/libmongoc" | |
add_expansions_to_env: true | |
script: | | |
if [ -n "${LIBMONGOC_VERSION}" ]; then | |
echo "Checking out libmongoc version: ${LIBMONGOC_VERSION}" | |
git fetch | |
git checkout ${LIBMONGOC_VERSION} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose you could initialize the submodules independently by passing their path as an argument to git submodule update
, although that would make this more fragile if additional submodules are introduced to the project.
Assuming it works, fetching the tag for libmongoc does seem more resilient, and then you could keep that logic local to the LIBMONGOC_VERSION
handling.
I don't understand the evergreen errors.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions you can address on your own.
.github/dependabot.yml
Outdated
- package-ecosystem: "gitsubmodule" | ||
directory: "/tests/" | ||
schedule: | ||
interval: "weekly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to specify the path to the actual submodule, or does this need to be a level above?
Co-authored-by: Jeremy Mikola <[email protected]>
PHPC-2510
Same as mongodb/mongo-php-library#1584