-
Notifications
You must be signed in to change notification settings - Fork 116
RHAIENG-1475: enablement(s390x): changes for codeserver #2575
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
Merged
jiridanek
merged 5 commits into
opendatahub-io:main
from
aryabjena:s390x-codeserver-upstream
Oct 15, 2025
+90
−11
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
39326db
s390x changes for codeserver
b71d268
Update get_code_server_rpm.sh
aryabjena e0274b5
Update devel_env_setup.sh
aryabjena f04382c
Merge branch 'opendatahub-io:main' into s390x-codeserver-upstream
aryabjena 389a447
add files via lfs
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ UNAME_TO_GOARCH["s390x"]="s390x" | |
|
||
ARCH="${UNAME_TO_GOARCH[$(uname -m)]}" | ||
|
||
if [[ "$ARCH" == "amd64" || "$ARCH" == "arm64" ||"$ARCH" == "ppc64le" ]]; then | ||
if [[ "$ARCH" == "amd64" || "$ARCH" == "arm64" || "$ARCH" == "ppc64le" || "$ARCH" == "s390x" ]]; then | ||
|
||
export MAX_JOBS=${MAX_JOBS:-$(nproc)} | ||
export NODE_VERSION=${NODE_VERSION:-22.18.0} | ||
|
@@ -62,12 +62,57 @@ if [[ "$ARCH" == "amd64" || "$ARCH" == "arm64" ||"$ARCH" == "ppc64le" ]]; then | |
# build codeserver | ||
git clone --depth 1 --branch "${CODESERVER_VERSION}" --recurse-submodules --shallow-submodules https://github.com/coder/code-server.git | ||
cd code-server | ||
|
||
#patch taken from vscodium s390x IBM : https://github.com/VSCodium/vscodium/blob/master/patches/linux/reh/s390x/arch-4-s390x-package.json.patch | ||
if [[ "$ARCH" == "s390x" ]]; then | ||
cat > s390x.patch <<EOL | ||
diff --git a/lib/vscode/package-lock.json b/lib/vscode/package-lock.json | ||
index 0d0272a92b2..73e8feb92dd 100644 | ||
--- a/lib/vscode/package-lock.json | ||
+++ b/lib/vscode/package-lock.json | ||
@@ -18236,10 +18236,11 @@ | ||
} | ||
}, | ||
"node_modules/web-tree-sitter": { | ||
- "version": "0.20.8", | ||
- "resolved": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.20.8.tgz", | ||
- "integrity": "sha512-weOVgZ3aAARgdnb220GqYuh7+rZU0Ka9k9yfKtGAzEYMa6GgiCzW9JjQRJyCJakvibQW+dfjJdihjInKuuCAUQ==", | ||
- "dev": true | ||
+ "version": "0.23.0", | ||
+ "resolved": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.23.0.tgz", | ||
+ "integrity": "sha512-p1T+ju2H30fpVX2q5yr+Wv/NfdMMWMjQp9Q+4eEPrHAJpPFh9DPfI2Yr9L1f5SA5KPE+g1cNUqPbpihxUDzmVw==", | ||
+ "dev": true, | ||
+ "license": "MIT" | ||
}, | ||
"node_modules/webidl-conversions": { | ||
"version": "3.0.1", | ||
diff --git a/lib/vscode/package.json b/lib/vscode/package.json | ||
index a4c7a2a3a35..d7f816248af 100644 | ||
--- a/lib/vscode/package.json | ||
+++ b/lib/vscode/package.json | ||
@@ -227,6 +227,9 @@ | ||
"node-gyp-build": "4.8.1", | ||
"[email protected]": { | ||
"node-addon-api": "7.1.0" | ||
+ }, | ||
+ "@vscode/[email protected]": { | ||
+ "web-tree-sitter": "0.23.0" | ||
} | ||
}, | ||
"repository": { | ||
EOL | ||
|
||
git apply s390x.patch | ||
fi | ||
|
||
source ${NVM_DIR}/nvm.sh | ||
while IFS= read -r src_patch; do echo "patches/$src_patch"; patch -p1 < "patches/$src_patch"; done < patches/series | ||
nvm use ${NODE_VERSION} | ||
npm cache clean --force | ||
npm install | ||
npm run build | ||
VERSION=${CODESERVER_VERSION/v/} npm run build:vscode | ||
export KEEP_MODULES=1 | ||
npm run release | ||
npm run release:standalone | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify comment vs condition.
Block runs on non-ppc64le, but the comment mentions “other ppc64le”. Reword to match behavior.
📝 Committable suggestion
🤖 Prompt for AI Agents