electrode-native
electrode-native copied to clipboard
Random unit test failures on CI
Azure CI occasionally fails on macOS, which can usually be "fixed" by rerunning the tests.
Ref: https://dev.azure.com/ElectrodeNative/Electrode%20Native/_build/results?buildId=6353&view=logs&j=195f2670-0934-542b-f708-55083700808e&t=aee57a02-7e04-5dc7-01bc-f6a4fd498e68&s=befc156f-4349-50a1-7733-e1f49ac39682
1) ModuleFactory
getModuleInstance
should create the cache directory if it does not exist [remote registry package]:
Error: ENOENT: no such file or directory, open '/Users/runner/work/1/s/ern-core/test/ModuleFactoryCache/package.json'
followed by:
1) AndroidRunnerGenerator
should generate simple-android-runner fixture given same configuration:
Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/runner/work/1/s/ern-runner-gen-android/test/AndroidRunnerGenerator-test.ts)
Edit: A similar error also appears on GitHub Actions CI:
https://github.com/electrode-io/electrode-native/runs/4376269267?check_suite_focus=true
1) CauldronHelper.js
addYarnLock
should add the yarn lock:
Error: EINVAL: invalid argument, read
2) CauldronHelper.js
getYarnLock
should return the yarn lock if found for key:
AggregateError: EBADF: bad file descriptor, read
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:52:21)
[+ 7 more errors]