Skip to content

Conversation

@lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Jan 14, 2025

Evergreen sets DEV_VERSION_IDENTIFIER to an empty string for beta/ga builds and we don't want to pass that to hadron build info because it will use '' and then throw an error when it tries to parse it with semver. Furthermore target.js (used by hadron build info) already uses all sorts of env vars and has all sorts of fallbacks and logic that end up just interfering with what we try and set as a parameter, so rather than try and second-guess that let's rather leave it up to hadron build info to do all that.

see https://spruce.mongodb.com/task/10gen_compass_testing_smoketest_ubuntu_compass_smoketest_compass_8c8e61ee1d97ed7e5d8b9cef01553c57a968bdab_25_01_13_05_05_18/logs?execution=1

This also logs the relevant env vars that target.js might be using as a reminder to us that things are happening behind the scenes.

@lerouxb lerouxb added no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) labels Jan 14, 2025
@lerouxb lerouxb changed the title Do not use process.env.DEV_VERSION_IDENTIFIER if it is an empty string fix(e2e): do not use process.env.DEV_VERSION_IDENTIFIER if it is an empty string Jan 14, 2025
@github-actions github-actions bot added the fix label Jan 14, 2025
@lerouxb lerouxb changed the title fix(e2e): do not use process.env.DEV_VERSION_IDENTIFIER if it is an empty string fix(e2e): do not pass version to hadron build info - have it figure it out on its own COMPASS-8812 Jan 14, 2025
@lerouxb lerouxb merged commit 2f61cda into main Jan 14, 2025
32 of 34 checks passed
@lerouxb lerouxb deleted the do-not-set-empty-version branch January 14, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants