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

test: build fixes for aarch64 #1485

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ koalaman
lcov
lextudio
libgbm
libonig
libssh
libyaml
lightspeed
Expand Down
6 changes: 6 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export HOSTNAME="${HOSTNAME:-${HOST:-$(hostname)}}"
# for build and testing purposes.
export VIRTUAL_ENV="${HOME}/.local/share/virtualenvs/vsa"

# Command such `yarn webpack-dev` might fail with
# Reached heap limit Allocation failed - JavaScript heap out of memory
# https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-megabytes
# default 16 MiB for 64-bit systems and 8 MiB for 32-bit systems
export NODE_OPTIONS="--max-old-space-size=4096"

# Activate virtualenv (creates it if needed)
layout python3
source_up 2>/dev/null || true
2 changes: 2 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"timeout": 30000,
"port": 6010,
"restart": true,
"runtimeArgs": ["--max-old-space-size=4096"],
"outFiles": ["${workspaceRoot}/out/server/src/**/*.js"]
},
{
Expand All @@ -63,6 +64,7 @@
"timeout": 30000,
"port": 6010,
"restart": true,
"runtimeArgs": ["--max-old-space-size=4096"],
"outFiles": ["${workspaceRoot}/out/server/src/**/*.js"],
"preLaunchTask": "npm: watch-server"
},
Expand Down
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@
".vscode-test": true
},
"redhat.telemetry.enabled": false,
"eslint.useESLintClass": true,
"eslint.experimental.useFlatConfig": true
"eslint.useESLintClass": true
}
11 changes: 9 additions & 2 deletions tools/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if [[ -f "/usr/bin/apt-get" ]]; then
# qemu-user-static is required by podman on arm64
# python3-dev is needed for headers as some packages might need to compile

DEBS=(curl git python3-dev python3-venv python3-pip qemu-user-static xvfb x11-xserver-utils libgbm-dev libssh-dev)
DEBS=(curl git python3-dev python3-venv python3-pip qemu-user-static xvfb x11-xserver-utils libgbm-dev libssh-dev libonig-dev)
# add nodejs to DEBS only if node is not already installed because
# GHA has newer versions preinstalled and installing the rpm would
# basically downgrade it
Expand Down Expand Up @@ -279,7 +279,14 @@ log notice "Upgrading pip ..."

python3 -m pip install -q -U pip
# Fail fast if user has broken dependencies
python3 -m pip check
python3 -m pip check || {
log error "pip check failed with exit code $?"
if [[ $MACHTYPE == x86_64* && "${OSTYPE:-}" != darwin* ]] ; then
exit 98
else
log error "Ignored pip check failure on this platform due to https://sourceforge.net/p/ruamel-yaml/tickets/521/"
fi
}

if [[ $(uname || true) != MINGW* ]]; then # if we are not on pure Windows
# We used the already tested constraints file from creator-ee in order
Expand Down
Loading