You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have circumvented the issue by just commenting out the line with npm install npm build to get the PHP tests out.
Not sure if the issue is with nvm, but reinstall or using other node versions won't work either.
The full script I'm using:
#!/bin/bash# Load nvm and test runner env variablessource /home/wptestrunner/.nvm/nvm.sh
source /var/www/wp-test-runner/.env
# Get the correct node version from https://github.com/WordPress/wordpress-develop/blob/trunk/package.json engines section to a variable
mkdir -p $HOME/wordpress-develop
rm -f $HOME/wordpress-develop/package.json
wget -qO- https://raw.githubusercontent.com/WordPress/wordpress-develop/trunk/package.json >$HOME/wordpress-develop/package.json
WP_DEVELOP_NODE_VERSION=$(cat $HOME/wordpress-develop/package.json | grep -oP '(?<="node": ">=)(.*?)(?=")')
nvm install $WP_DEVELOP_NODE_VERSION# Use the correct node version
nvm use $WP_DEVELOP_NODE_VERSION# Make sure we are in the right placecd /var/www/wp-test-runner
# Ensure we have the latest version
git pull
# Do complete cache clean
npm cache clean --force
# Do cleanup in case previous tests have failed
php /var/www/wp-test-runner/cleanup.php
# Prepare tests, bail if preparations failif php /var/www/wp-test-runner/prepare.php | grep -q "Success: Prepared environment";thenecho"Success: Prepared environment"elseecho""exitfi# Actual tests do not have clear output to test against
php /var/www/wp-test-runner/test.php
# Send test results, bail upload does not succeedif php /var/www/wp-test-runner/report.php | grep -q "Results successfully uploaded";thenecho"Results successfully uploaded"elseecho""exitfi# Cleanup do not have clear output to test against
php /var/www/wp-test-runner/cleanup.php
Describe the bug
With the latest version the npm command gets stuck.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The prepare script should be run through
Screenshots
It's been like this for 24 hours now (those duplicate lines are due pressing enter key):
Additional context
I'm sure this didn't happen before, but I don't know in which point it stopped working.
Node version: 20.10.0 (from the current package.json of wordpress-develop)
Ubuntu 20.04.6 LTS
Also see PR #221.
The text was updated successfully, but these errors were encountered: