Skip to content

chore: Align Node.js and proxy-agent versions with upstream - #526

Merged
RomanNikitenko merged 10 commits into
che-incubator:mainfrom
RomanNikitenko:align-nodejs-and-deps-with-upstream
Apr 21, 2025
Merged

RomanNikitenko merged 10 commits into
che-incubator:mainfrom
RomanNikitenko:align-nodejs-and-deps-with-upstream

Conversation

@RomanNikitenko

@RomanNikitenko RomanNikitenko commented Mar 11, 2025 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

What issues does this PR fix?

https://issues.redhat.com/browse/CRW-7956

How to test this PR?

  1. Start a workspace using quay.io/che-incubator-pull-requests/che-code:pr-526-amd64 editor image or click
    https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/dashboard/#/load-factory?editor-image=quay.io/che-incubator-pull-requests/che-code:pr-526-amd64&url=https://registry.devfile.io/devfiles/nodejs/2.2.1
  2. Test any functionality, I tested the following:
  • open a file
  • create a terminal
  • create a terminal in a container
  • instal an extension
  • uninstall an extension
  • run a devfile command
  • run a command from the Command Palette

Does this PR contain changes that override default upstream Code-OSS behavior?

  • the PR contains changes in the code folder (you can skip it if your changes are placed in a che extension )
  • the corresponding items were added to the CHANGELOG.md file
  • rules for automatic git rebase were added to the .rebase folder

@github-actions

github-actions Bot commented Mar 11, 2025 •

Copy link
Copy Markdown
Contributor

Click here to review and test in web IDE: Contribute

@RomanNikitenko
RomanNikitenko force-pushed the align-nodejs-and-deps-with-upstream branch from 54b40af to d22fbe8 Compare March 18, 2025 15:30
@RomanNikitenko RomanNikitenko added the made-with-che Changes made with Che-Code label Mar 21, 2025
@RomanNikitenko

Copy link
Copy Markdown
Collaborator Author

It's not possible to align electron version with the upstream because of the problem with g++ version in the ubi8-based assembly.
The error is:

npm error code 1
npm error path /code/node_modules/@parcel/watcher
npm error command failed
npm error command sh -c node scripts/build-from-source.js
npm error make: Entering directory '/code/node_modules/@parcel/watcher/build'
npm error   CXX(target) Release/obj.target/watcher/src/binding.o
npm error make: Leaving directory '/code/node_modules/@parcel/watcher/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info find Python using Python version 3.9.20 found at "/usr/bin/python3"
npm error gyp http GET https://electronjs.org/headers/v34.1.0/node-v34.1.0-headers.tar.gz
npm error gyp http 200 https://artifacts.electronjs.org/headers/v34.1.0/node-v34.1.0-headers.tar.gz?force_headers_dist=1
npm error gyp http GET https://electronjs.org/headers/v34.1.0/SHASUMS256.txt
npm error gyp http 200 https://artifacts.electronjs.org/headers/v34.1.0/SHASUMS256.txt?force_headers_dist=1
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/code/node_modules/@parcel/watcher/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/opt/app-root/src/.cache/node-gyp/34.1.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/opt/app-root/src/.cache/node-gyp/34.1.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/opt/app-root/src/.cache/node-gyp/34.1.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/code/node_modules/@parcel/watcher',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error g++: error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?
npm error make: *** [watcher.target.mk:138: Release/obj.target/watcher/src/binding.o] Error 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 6.8.4-200.fc39.x86_64
npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /code/node_modules/@parcel/watcher
npm error gyp ERR! node -v v20.18.2
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /opt/app-root/src/.npm/_logs/2025-03-21T16_43_18_939Z-debug-0.log

Please pay attention on:

error g++: error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?

The cause of the problem is: gcc version 8.5.0 20210514 (Red Hat 8.5.0-24) (GCC) in the ubi8-based image that we use to prepare che-code assembly.

See https://github.com/electron/electron/blob/main/docs/breaking-changes.md:
image

So, I had to downgrade electron version for the che-code.

@RomanNikitenko
RomanNikitenko force-pushed the align-nodejs-and-deps-with-upstream branch from 1dbe67d to 11e9402 Compare April 8, 2025 10:54
@github-actions

github-actions Bot commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

@RomanNikitenko
RomanNikitenko force-pushed the align-nodejs-and-deps-with-upstream branch from c6048e4 to 9f0baff Compare April 11, 2025 11:39
@RomanNikitenko
RomanNikitenko marked this pull request as ready for review April 11, 2025 11:53
@github-actions

Copy link
Copy Markdown
Contributor

@RomanNikitenko RomanNikitenko changed the title chore: Align Node.js and some dependencies with upstream chore: Align Node.js and proxy-agent versions with upstream Apr 11, 2025
@RomanNikitenko
RomanNikitenko force-pushed the align-nodejs-and-deps-with-upstream branch from 5a08452 to cf4c5b6 Compare April 11, 2025 14:01
@github-actions

Copy link
Copy Markdown
Contributor

2 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@RomanNikitenko RomanNikitenko mentioned this pull request Apr 16, 2025
3 tasks done
},
proxyResolveTelemetry: () => { },
useHostProxy: isUseHostProxyEnabled(),
isUseHostProxyEnabled,

@vitaliy-guliy vitaliy-guliy Apr 21, 2025 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we add a rebase rule for this file and for code/build/npm/preinstall.js?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@vitaliy-guliy vitaliy-guliy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Everything I've tested in the editor works fine.

@RomanNikitenko
RomanNikitenko merged commit f0269c1 into che-incubator:main Apr 21, 2025
@RomanNikitenko
RomanNikitenko deleted the align-nodejs-and-deps-with-upstream branch April 21, 2025 07:44
@devspacesbuild

Copy link
Copy Markdown

Build 3.22 :: code_3.x/1585: Console, Changes, Git Data

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

Build 3.22 :: code_3.x/1586: Console, Changes, Git Data

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

Build 3.22 :: code_3.x/1586: SUCCESS

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

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

Build 3.21 :: code_3.21/2: Console, Changes, Git Data

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

Build 3.21 :: code_3.21/3: Console, Changes, Git Data

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

@devspacesbuild

Copy link
Copy Markdown

Build 3.21 :: get-sources-rhpkg-container-build_3.21/59: FAILURE

code : 3.21 ::
; copied to quay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

made-with-che Changes made with Che-Code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants