Skip to content

Automatically detect PHP patch version #1201

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

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Feb 15, 2021

This PR changes the evergreen build config to no longer set a specific patch version for PHP, instead only setting the minor version to be used (e.g. "7.4"). This reduces the workload associated with updating the PHP toolchain, since we no longer need to update the evergreen config when the toolchain brings new patch releases for PHP. The path to PHP binaries is now also prepended to the PATH environment variable.

The script will attempt to fetch the latest patch version for the requested PHP version (by using the version sort functionality of sort) and error if none was found. The logic will need adjusting if we want to start testing against thread-safe versions of PHP.

These changes will be ported to the PHPLIB evergreen config once they've been merged here.

@alcaeus alcaeus requested a review from jmikola February 15, 2021 13:01
@alcaeus alcaeus self-assigned this Feb 15, 2021
@@ -92,8 +107,10 @@ functions:
export PROJECT_DIRECTORY="$PROJECT_DIRECTORY"

export TMPDIR="$MONGO_ORCHESTRATION_HOME/db"
export PATH="$MONGODB_BINARIES:$PATH"
export PATH="$PHP_PATH:$MONGODB_BINARIES:$PATH"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows you to remove the PATH concatenation in compile-unix.sh, correct?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is correct

@alcaeus alcaeus merged commit 500cc82 into mongodb:master Feb 17, 2021
@alcaeus alcaeus deleted the autodetect-php-patch-version branch February 17, 2021 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants