Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server tests in GH CI fail after timeout #91

Open
mariha opened this issue Feb 26, 2022 · 0 comments
Open

Server tests in GH CI fail after timeout #91

mariha opened this issue Feb 26, 2022 · 0 comments
Labels
dev:ops Some devops work is involved: ci, cd

Comments

@mariha
Copy link
Member

mariha commented Feb 26, 2022

Any server tests triggered on a PR fail, see for example this.

Tests output:

Assertion failed: You must provide either mongoUrl|clientPromise|client in options
/home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/connect-mongo/build/main/lib/MongoStore.js:119
            throw new Error('Cannot init client. Please provide correct options');
            ^

Error: Cannot init client. Please provide correct options
    at new MongoStore (/home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/connect-mongo/build/main/lib/MongoStore.js:119:19)
    at Function.create (/home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/connect-mongo/build/main/lib/MongoStore.js:136:16)
    at Object.module.exports.initSession (/home/runner/work/fedi-trustroots/fedi-trustroots/config/lib/express.js:206:25)
    at Object.module.exports.init (/home/runner/work/fedi-trustroots/fedi-trustroots/config/lib/express.js:486:8)
    at Suite.<anonymous> (/home/runner/work/fedi-trustroots/fedi-trustroots/modules/admin/tests/server/admin.acquisition-stories.server.routes.tests.js:8:23)
    at Object.create (/home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/gulp-mocha/node_modules/mocha/lib/interfaces/common.js:112:19)
    at context.describe.context.context (/home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/gulp-mocha/node_modules/mocha/lib/interfaces/bdd.js:40:27)
    at Object.<anonymous> (/home/runner/work/fedi-trustroots/fedi-trustroots/modules/admin/tests/server/admin.acquisition-stories.server.routes.tests.js:6:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:9[50](https://github.com/OpenHospitalityNetwork/fedi-trustroots/runs/5341236836?check_suite_focus=true#step:9:50):32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at /home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/gulp-mocha/node_modules/mocha/lib/mocha.js:250:27
    at Array.forEach (<anonymous>)
    at Mocha.loadFiles (/home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/gulp-mocha/node_modules/mocha/lib/mocha.js:247:14)
    at Mocha.run (/home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/gulp-mocha/node_modules/mocha/lib/mocha.js:[57](https://github.com/OpenHospitalityNetwork/fedi-trustroots/runs/5341236836?check_suite_focus=true#step:9:57)6:10)
    at Object.<anonymous> (/home/runner/work/fedi-trustroots/fedi-trustroots/node_modules/gulp-mocha/node_modules/mocha/bin/_mocha:[63](https://github.com/OpenHospitalityNetwork/fedi-trustroots/runs/5341236836?check_suite_focus=true#step:9:63)7:18)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:[75](https://github.com/OpenHospitalityNetwork/fedi-trustroots/runs/5341236836?check_suite_focus=true#step:9:75):12)
    at internal/main/run_main_module.js:17:47

It happens since I synched the repo with upstream (Trustroots) where this GH Action was set up.

@mariha mariha added the dev:ops Some devops work is involved: ci, cd label Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:ops Some devops work is involved: ci, cd
Projects
None yet
Development

No branches or pull requests

1 participant