Overview
Release artifact tasks can system-fail before source checkout when custom build version overrides are configured.
Background
BF-45945 showed that the shared get and apply version expansions function invoked src/evergreen/custom_builds/set_version_override.sh before the src checkout. The script therefore exited with code 127, and the subsequent post-task failures were cascading failures.
Scope of Work
- Keep the source-dependent custom version override out of the shared pre-checkout version-expansion function.
- Apply the override after checkout and virtual-environment setup in the custom-build, package-test, and compile task paths.
- Add regression coverage for the Evergreen command ordering.
Acceptance Criteria
- The affected release artifact task paths no longer invoke a repository script before source checkout.
- Custom-build package tests and delivery paths continue to use the overridden version.
- The ordering regression test passes.
- The change is backported to v9.0.
References
- BF-45945
- PR 10gen/mongo#61912
- Evergreen verification patch 6a919e5f3cb6d3000775b20a