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

Edge case platforms support (SmartOS, AIX, and gzip fallback) #117

Closed
wants to merge 2 commits into from

Conversation

refack
Copy link
Contributor

@refack refack commented Nov 29, 2018

Fixes: #114

  1. edge case uname parsing and workaround tar limitations
  2. exclude AIX from xz detection, and add gzip download fallback

@jasongin
Copy link
Owner

remove auto XZ upgrade

Discussion in the referenced issue doesn't appear to be settled, so it seems premature to drop all use of XZ packages. They are significantly smaller, so this would have a performance impact for all users.

Also there is a CI failure on Git Bash on Windows, where it is trying to download https://nodejs.org/dist/v10.12.0/node-v10.12.0-win-.7z

@refack
Copy link
Contributor Author

refack commented Nov 29, 2018

Discussion in the referenced issue doesn't appear to be settled, so it seems premature to drop all use of XZ packages. They are significantly smaller, so this would have a performance impact for all users.

Ack. I'll just exclude AIX.

Also there is a CI failure on Git Bash on Windows, where it is trying to download https://nodejs.org/dist/v10.12.0/node-v10.12.0-win-.7z

Looking into that, I'm also waiting on access to AIX and SmartOS for more testing.

@refack refack force-pushed the edge-case-platforms branch 2 times, most recently from 4344aad to 6527971 Compare December 1, 2018 21:56
@refack refack force-pushed the edge-case-platforms branch from 6527971 to 3c9ee08 Compare December 1, 2018 21:59
@refack
Copy link
Contributor Author

refack commented Dec 1, 2018

  • Restored xz promotion logic.
  • Added a retry download
  • Fixed sed replacing.

Both CIs are green, PTAL.

@refack refack changed the title Edge case platforms Edge case platforms support (SmartOS, AIX, and gzip fallback) Dec 1, 2018
@@ -75,6 +80,18 @@ nvs() {
curl -L -# "${NODE_URI}" -o "${NODE_ARCHIVE}"
fi

if [ ! -f "${NODE_ARCHIVE}" ] && [ "${NODE_ARCHIVE_EXT}" = ".tar.xz" ]; then
NODE_ARCHIVE_EXT=".tar.xz"
Copy link
Owner

Choose a reason for hiding this comment

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

I think this was intended to switch to .tar.gz?

@@ -75,6 +80,18 @@ nvs() {
curl -L -# "${NODE_URI}" -o "${NODE_ARCHIVE}"
fi

if [ ! -f "${NODE_ARCHIVE}" ] && [ "${NODE_ARCHIVE_EXT}" = ".tar.xz" ]; then
NODE_ARCHIVE_EXT=".tar.xz"
TAR_FLAGS="-Jxvf"
Copy link
Owner

Choose a reason for hiding this comment

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

I think it should be -zxvf for gzip instead of xzip extraction.

local NODE_ARCH="$(uname -m | sed -e 's/x86_64/x64/;s/i86pc/x64/;s/i686/x86/')"
# On AIX reports `uname -m` reports the machine ID number of the hardware running the system.
if [ "${NVS_OS}" = "aix" ]; then
local NODE_ARCH="ppc64"
Copy link
Owner

Choose a reason for hiding this comment

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

nit: local is not needed here since the local variable is already declared above.

@jasongin jasongin mentioned this pull request Jul 17, 2020
@jasongin
Copy link
Owner

Closing because this is superseded by #169

@jasongin jasongin closed this Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some edge cases with IBM / smartOS platforms
2 participants