Skip to content

Attempt to address miscellaneous integration task errors on macos-14-arm64 #1327

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 5 commits into from
Jan 30, 2025

Conversation

eramongodb
Copy link
Contributor

Preemptive changes to address macos-14-arm64 task failures observed during work on CXX-2665.

  • The curl command to obtain the tag name of the latest release seems to spuriously fail due to unknown reasons specifically when executed on MacOS distros. Following CDRIVER-4809 add a VERSION_CURRENT file mongo-c-driver#1521, a VERSION_CURRENT file is guaranteed for latest releases, so that file is detected and used instead when available.

  • The start-mongod.sh script occasionally fails on MacOS distros due to permission errors. A call to chmod -x is added to ensure binaries under MONGODB_BINARIES are actually executable as they should be. An obsolete workaround for rhel9 distros is removed in favor of a simple fallback routine for legacy mongo shell binaries.

  • A -Wsign-conversion warning blocks compilation of examples on MacOS distros when maintainer flags are enabled. The warning is addressed by an explicit cast to std::size_t from std::int64_t.

@eramongodb eramongodb requested a review from kevinAlbs January 30, 2025 20:48
@eramongodb eramongodb self-assigned this Jan 30, 2025
# RegEx pattern to match SemVer strings. See https://semver.org/.
declare -r semver_regex="^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$"
if echo "${mongoc_version}" | perl -ne "$(printf 'exit 1 unless /%s/' "${semver_regex}")"; then
# If $VERSION is already SemVer compliant, use as-is.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# If $VERSION is already SemVer compliant, use as-is.
# If $mongoc_version is already SemVer compliant, use as-is.

@eramongodb eramongodb merged commit 5d1930f into mongodb:master Jan 30, 2025
1 check was pending
@eramongodb eramongodb deleted the cxx-evg-macos branch January 30, 2025 21:29
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