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] Allow selecting the Node.js binary OSD uses #3637

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport cb472dc from #3508.

New reusable use_node scripts take care of selecting the correct Node.js binary based OSD_NODE_HOME, OSD_HOME, and whatever is in the PATH. It also takes care of finding the binary on FreeBSD.
* The startup scripts check `OSD_NODE_HOME` and `NODE_HOME` before falling back to use the bundled or system-wide Node.js binary.
* Update `package.json` to replace `node` with `use_node`.
* Update file templates and shell scripts to internally use `use_node`.
* Update the build scripts to copy `use_node` into releases
* Make tests that execute node internally, honor the binary being used.

Signed-off-by: Miki <miki@amazon.com>
(cherry picked from commit cb472dc)
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 March 20, 2023 23:21
@codecov-commenter
Copy link

codecov-commenter commented Mar 21, 2023

Codecov Report

Merging #3637 (69c8685) into 2.x (90b4373) will decrease coverage by 0.01%.
The diff coverage is n/a.

📣 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    #3637      +/-   ##
==========================================
- Coverage   66.46%   66.46%   -0.01%     
==========================================
  Files        3206     3206              
  Lines       61597    61597              
  Branches     9503     9503              
==========================================
- Hits        40941    40940       -1     
  Misses      18383    18383              
- Partials     2273     2274       +1     
Flag Coverage Δ
Linux 66.40% <ø> (-0.01%) ⬇️
Windows 66.41% <ø> (-0.01%) ⬇️

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

see 1 file with indirect coverage changes

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

Signed-off-by: Josh Romero <rmerqg@amazon.com>
@AMoo-Miki
Copy link
Collaborator

Since this PR does not change the default behavior, it should be safe to backport to 2.x

@abbyhu2000 abbyhu2000 merged commit a7fd42c into 2.x Mar 23, 2023
@github-actions github-actions bot deleted the backport/backport-3508-to-2.x branch March 23, 2023 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants