Random unit test failures on CI
friederbluemle opened this issue · comments
Frieder Bluemle commented
Azure CI occasionally fails on macOS, which can usually be "fixed" by rerunning the tests.
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]