Skip to content
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

[Backport 2.x] Make build scripts find and use the latest version of Node.js that satisfies engines.node #3468

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport f5ee06d from #3467.

…tisfies `engines.node` (#3467)

* While building distributables, Node.js runtime is downloaded to be placed in the archivea. This logicwas modified to honor a range for `engines.node` by fetching the latest release of Node.js that satisfied the range.
* Some tests covering the build, read a version from `.node-version` to compare with the results of actual function runs; these were changed to either use mocked values or honor the range and use the latest Node.js version.
* Some variable and functions referred to `engines.node` as a version; they were corrected to call it a range.

Signed-off-by: Miki <miki@amazon.com>
(cherry picked from commit f5ee06d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner February 21, 2023 01:34
@codecov-commenter
Copy link

Codecov Report

Merging #3468 (4472555) into 2.x (17ca299) will decrease coverage by 0.07%.
The diff coverage is 90.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##              2.x    #3468      +/-   ##
==========================================
- Coverage   66.54%   66.48%   -0.07%     
==========================================
  Files        3203     3203              
  Lines       61397    61410      +13     
  Branches     9453     9455       +2     
==========================================
- Hits        40859    40830      -29     
- Misses      18284    18317      +33     
- Partials     2254     2263       +9     
Flag Coverage Δ
Linux 66.48% <90.00%> (-0.01%) ⬇️
Windows ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/dev/build/tasks/nodejs/node_download_info.ts 88.88% <83.33%> (-11.12%) ⬇️
src/dev/build/lib/config.ts 79.41% <100.00%> (-5.89%) ⬇️
...ev/build/tasks/nodejs/download_node_builds_task.ts 100.00% <100.00%> (ø)
...dev/build/tasks/nodejs/extract_node_builds_task.ts 100.00% <100.00%> (ø)
...d/tasks/nodejs/verify_existing_node_builds_task.ts 100.00% <100.00%> (ø)
src/dev/build/lib/get_build_number.ts 57.14% <0.00%> (-42.86%) ⬇️
src/setup_node_env/harden/child_process.js 38.46% <0.00%> (-38.47%) ⬇️
packages/osd-cross-platform/src/path.ts 51.21% <0.00%> (-34.15%) ⬇️
...ges/osd-apm-config-loader/src/config.test.mocks.ts 91.30% <0.00%> (-8.70%) ⬇️
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@joshuarrrr joshuarrrr added v2.6.0 autocut Skip the changelog verification check on backports labels Feb 21, 2023
Copy link
Contributor

@seanneumann seanneumann left a comment

Choose a reason for hiding this comment

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

👍

@joshuarrrr joshuarrrr merged commit 7658a92 into 2.x Feb 21, 2023
@joshuarrrr joshuarrrr deleted the backport/backport-3467-to-2.x branch February 21, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports v2.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants