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

Remove node 14 dns check in start.sh #304

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

1000TurquoisePogs
Copy link
Member

@1000TurquoisePogs 1000TurquoisePogs commented Jun 14, 2024

In node 18, node prefers ipv6 results in dns by default and so we override that with a flag. This flag does not exist on node 14.
So, we had a check by which we'd run node and if it crashed, we'd know the flag wasnt allowed and then not use it.

This is no longer needed because node 14 is no longer supported by zowe.
By removing this check, we save some startup time because we do not need to spawn node just to figure out if it works or not.

Note: you cannot even start with node14 anymore.
This is prevented in the "zwe" startup process by the validation phase of prepare.
It will say "node ${version} is less than the minimum level required of v${NODE_MIN_VERSION}"

Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
Copy link

@skurnevich skurnevich left a comment

Choose a reason for hiding this comment

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

Node docs state that --dns-result-order was added in: v16.4.0, v14.18.0, so there could be a case with Node 16.0.0 - 16.3.0 which will not be handled, however Node v16 going to be end of support Sep 2024, so it looks minor and should be ok.

@1000TurquoisePogs
Copy link
Member Author

Agreed @skurnevich but I couldn't find evidence z/OS ever had a v16 that old.
I checked and found v16.13 as minimum https://www.ibm.com/support/pages/fix-list-ibm-open-enterprise-sdk-nodejs
And I tried the one I had without issue, so, I think it's ok!

@1000TurquoisePogs 1000TurquoisePogs merged commit 83cb2e1 into v2.x/staging Jun 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3 participants