Skip to content

Commit

Permalink
test: build fixes for aarch64 (#1485)
Browse files Browse the repository at this point in the history
* test: build fixes for aarch64

* chore: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ssbarnea and pre-commit-ci[bot] authored Aug 2, 2024
1 parent 712fd7b commit 0f63250
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
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

0 comments on commit 0f63250

Please sign in to comment.