We just migrated our workflow to the M1 architecture and the build time now take 15 minutes more.
part of the migration was the need to upgrade our node version from 14.18.1 to 14.19.2.
due to the change and the to m1, we needed to install python 3.9 ( the OTB python 3.11 doesn’t support node 14).
now the nvm step take 13 minutes which was previously took 10seconds now takes 15 minutes to install.
Unit test issue is kinda unrelated but it’s not uncommon to see Rosetta stacks to be slower than native Apple Silicon stacks. So if possible you should jump directly to native M1 stacks.
We tried using asdf and NVM, but both require building node 14 (including installing python <= 3.10 first) but like you were saying this took too long.
We ended up adding a pre script to our workflow that installs node 14 via brew, since it looks like they already have a prebuilt arm64 ventura bottle. This ended up adding <1 minute to the build time.
It’s not great, ideally bitrise preinstall node 14 as an available version in NVM, but since there’s only a couple weeks left till the intel machines get removed, we just had to go with it.