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

chore: Update from ubi8/nodejs-18:1-71 to ubi8/nodejs-18:1-81 #305

Merged
merged 8 commits into from
Nov 21, 2023

Conversation

che-incubator-bot
Copy link
Collaborator

Signed-off-by: Nick Boldt [email protected]

@openshift-ci-robot
Copy link

@che-incubator-bot: No Jira issue with key nodejs-18 exists in the tracker at https://issues.redhat.com/.
Once a valid jira issue is referenced in the title of this pull request, request a refresh with /jira refresh.

In response to this:

Signed-off-by: Nick Boldt [email protected]

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

github-actions bot commented Nov 18, 2023

Click here to review and test in web IDE: Contribute

@RomanNikitenko
Copy link
Contributor

RomanNikitenko commented Nov 20, 2023

I tried to rerun failed jobs few times, but they permanently fail with the error:

image

Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

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

Update of UBI from ubi8/nodejs-18:1-71 to ubi8/nodejs-18:1-81
updates Node.js from 18.16.1 to 18.18.2
which updates npm from 9.5.1 to 9.8.1

It seems they're not bundling node-gyp-bin with npm since 9.8.1. Now, it's up to the consumers to provide the required node-gyp version.
I suggest fixing it by something like npm i -g [email protected]

@azatsarynnyy
Copy link
Member

BTW, the same problem is in #306 which was merged to 7.77.x
@nickboldt could you please either revert it ^^ or install the node-gyp globally into the image?

Copy link

Pull Request Dev image published:
👉 quay.io/che-incubator-pull-requests/che-code-dev:pr-305-dev-amd64

@azatsarynnyy
Copy link
Member

I've pushed the changes that I think should fix the problem. If it works for main I can back-port it to 7.77.x

Copy link

Pull Request Dev image published:
👉 quay.io/che-incubator-pull-requests/che-code-dev:pr-305-dev-amd64

@@ -47,7 +47,8 @@ RUN { if [[ $(uname -m) == "s390x" ]]; then LIBSECRET="\
fi; } \
&& yum install -y $LIBSECRET $LIBKEYBOARD curl make cmake gcc gcc-c++ python3.9 git git-core-doc openssh less libX11-devel libxkbcommon bash tar gzip rsync patch \
&& yum -y clean all && rm -rf /var/cache/yum \
&& npm install -g [email protected]
&& npm install -g [email protected] \
&& npm install -g [email protected]
Copy link
Contributor

Choose a reason for hiding this comment

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

@azatsarynnyy @nickboldt
I guess the same changes are required for the downstream

Copy link

Pull Request Che-Code image published:
👉 quay.io/che-incubator-pull-requests/che-code:pr-305-amd64

@nickboldt
Copy link
Contributor

nickboldt commented Nov 20, 2023

It would be better to actually include node-gyp in the package.json since that's what I'll need downstream. yarn add doesn't work in an offline environment like OSBS/cachito. But adding deps to the package.json and pinning them in yarn.lock... that DOES work in both online and offline scenarios.

WDYT of this? 6645ca6 and https://github.com/che-incubator/che-code/pull/305/files#diff-51e4f558fae534656963876761c95b83b6ef5da5103c4adef6768219ed76c2de

This comment was marked as outdated.

Change-Id: I2f7bd96e2fa240ad6161fdb4b1826c4669a66dff
Signed-off-by: nickboldt <[email protected]>

This comment was marked as outdated.

Change-Id: I4314882f4fc4cc8f3a4535d912a9b762edb55356
Signed-off-by: nickboldt <[email protected]>

This comment was marked as outdated.

This comment was marked as outdated.

2 similar comments

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@@ -47,8 +47,7 @@ RUN { if [[ $(uname -m) == "s390x" ]]; then LIBSECRET="\
fi; } \
&& yum install -y $LIBSECRET $LIBKEYBOARD curl make cmake gcc gcc-c++ python3.9 git git-core-doc openssh less libX11-devel libxkbcommon bash tar gzip rsync patch \
&& yum -y clean all && rm -rf /var/cache/yum \
&& npm install -g [email protected] \
&& npm install -g [email protected]
Copy link
Contributor

Choose a reason for hiding this comment

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

it looks like removing this change leads to the original problem...
I mean - just adding the dependency to the package.json doesn't fix the problem

Copy link
Contributor

@nickboldt nickboldt Nov 21, 2023

Choose a reason for hiding this comment

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

Copy link

Pull Request Dev image published:
👉 quay.io/che-incubator-pull-requests/che-code-dev:pr-305-dev-amd64

@nickboldt nickboldt enabled auto-merge (squash) November 21, 2023 18:32
Copy link

Pull Request Che-Code image published:
👉 quay.io/che-incubator-pull-requests/che-code:pr-305-amd64

@nickboldt nickboldt merged commit 3a2d784 into main Nov 21, 2023
6 checks passed
@nickboldt nickboldt deleted the pr-update-base-images-1700267676 branch November 21, 2023 18:33
@devstudio-release
Copy link

Build 3.11 :: code_3.x/1011: Console, Changes, Git Data

nickboldt added a commit that referenced this pull request Nov 21, 2023
* chore: Update from ubi8/nodejs-18:1-71 to ubi8/nodejs-18:1-81

Signed-off-by: Nick Boldt <[email protected]>

* install node-gyp globally

* Update linux-libc.Dockerfile

* Update build/dockerfiles/linux-libc.Dockerfile

* add node gyp 9.4.1 as a dep; add node/npm/yarn versions as engines

Change-Id: I2f7bd96e2fa240ad6161fdb4b1826c4669a66dff
Signed-off-by: nickboldt <[email protected]>

* Add node-gyp to yarn.lock

Change-Id: I4314882f4fc4cc8f3a4535d912a9b762edb55356
Signed-off-by: nickboldt <[email protected]>

* remove node-gyp global install

* Revert "remove node-gyp global install"

This reverts commit c39f3c2.

---------

Signed-off-by: Nick Boldt <[email protected]>
Signed-off-by: nickboldt <[email protected]>
Co-authored-by: Nick Boldt <[email protected]>
Co-authored-by: Artem Zatsarynnyi <[email protected]>
Co-authored-by: nickboldt <[email protected]>
@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.11 :: code_3.x/1011: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/5340 triggered

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.11 :: sync-to-downstream_3.x/5342: SUCCESS

Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/5210 triggered; /job/DS_CI/job/dsc_3.x triggered;

@devstudio-release
Copy link

Build 3.11 :: operator-bundle_3.x/2307: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/5342 triggered

@devstudio-release
Copy link

Build 3.11 :: copyIIBsToQuay/2177: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.11 :: update-digests_3.x/4969: SUCCESS

Detected new images: rebuild operator-bundle
* code; /DS_CI/operator-bundle_3.x/2307 triggered

@devstudio-release
Copy link

Build 3.11 :: dsc_3.x/1573: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.11 :: dsc_3.x/1573: SUCCESS

3.11.0-CI

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.

6 participants