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
34_STABLE: That branch misses .nvmrc file and when that happens.
moodle-plugin-ci does create it, pointing to lts/carbon. Travis
seems to be getting that lts/carbon perfectly, but GHA is not,
so it tries installing latest/current node version and that fails.
36_STABLE: Not sure why but it's trying to download an incorrect
node-sass binary. As far as the download fails... then tries to
build it locally and that also fails. It works ok (correct download)
both with travis, real linux, mac osx... not sure why not with GHA
(I've seen "System Linux 5.4.0-1036-azure" is reported elsewhere in
the logs... not sure if that may be the cause).
Maybe both are because of problems the the node / nvm stuff, or we are
executing something out of order, don't know. But certainly... the problem
with those 2 branches can be reproduced consistently. And they work
without a problem with Travis.
Ciao :-)
The text was updated successfully, but these errors were encountered:
This is failing because nvm installation does not take place. You can see that at this line, nvm installation should take place just before global dependencies are installed, and it is not there (that is the case for any other CI runs also). It is a shame I did not investigate it properly after removing setup-node step.
In VendorInstaller class we check NVM_BIN presence. Even if we do point 1 right (so that login shell is used and we have NVM_DIR available), NVM_BIN is not defined there (perhaps a specific of nvm installation in GHA).
How to fix:
There are two options here, either to define NVM_DIR at initialise step (see example in the patch below) or add shell: bash -l {0} to moodle-plugin-ci install step.
NVM_BIN was added "just to be sure", it is not used anywhere apart of that check, it is totally sufficient to check NVM_DIR only to find out if nvm installation is there.
Here is the same verify_34_and_36_failures branch with a patch added: kabalin@786751d
Detected when using the suggested GHA file with local_codechecker.
I've created this branch that reproduces the problems within moodle-plugin-ci own tests:
https://github.com/stronk7/moodle-plugin-ci/actions/runs/523600001
Summary of mini-research performed till now follows:
Maybe both are because of problems the the node / nvm stuff, or we are
executing something out of order, don't know. But certainly... the problem
with those 2 branches can be reproduced consistently. And they work
without a problem with Travis.
Ciao :-)
The text was updated successfully, but these errors were encountered: