Closed baumstern closed 1 year ago
Recent two CI run had failed: https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3987944845 https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3989827311
Failure log:
2023-01-23T19:27:56.8821910Z ##[group]Run yarn test:ci-prod 2023-01-23T19:27:56.8822340Z [36;1myarn test:ci-prod[0m 2023-01-23T19:27:56.8889269Z shell: /usr/bin/bash -e ***0*** 2023-01-23T19:27:56.8889692Z env: 2023-01-23T19:27:56.8890308Z GOOGLE_APPLICATION_CREDENTIALS: ./packages/backend/serviceAccountKey.json 2023-01-23T19:27:56.8890942Z FIREBASE_FIRESTORE_DATABASE_URL: *** 2023-01-23T19:27:56.8891447Z FIREBASE_API_KEY: *** 2023-01-23T19:27:56.8891939Z FIREBASE_AUTH_DOMAIN: *** 2023-01-23T19:27:56.8892354Z FIREBASE_MESSAGING_SENDER_ID: *** 2023-01-23T19:27:56.8892826Z FIREBASE_APP_ID: *** 2023-01-23T19:27:56.8893236Z FIREBASE_PROJECT_ID: *** 2023-01-23T19:27:56.8893601Z ##[endgroup] 2023-01-23T19:27:57.1742628Z yarn run v1.22.19 2023-01-23T19:27:57.2251980Z $ NODE_ENV=prod jest --config=jest.json --detectOpenHandles --forceExit --runInBand --coverage=false 2023-01-23T19:28:01.1969997Z console.warn 2023-01-23T19:28:01.1971402Z Deprecation: [@octokit/request-error] `error.code` is deprecated, use `error.status`. 2023-01-23T19:28:01.1972678Z at RequestError.get (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/@octokit/request-error/dist-src/index.js:44:29) 2023-01-23T19:28:01.1973983Z at isAssertionError (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:179:13) 2023-01-23T19:28:01.1975187Z at /home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:58:14 2023-01-23T19:28:01.1975980Z at Array.map (<anonymous>) 2023-01-23T19:28:01.1977584Z at formatNodeAssertErrors (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:39:43) 2023-01-23T19:28:01.1978655Z at dispatch (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/state.js:66:11) 2023-01-23T19:28:01.1979603Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2023-01-23T19:28:01.1980486Z at _runTest (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:196:3) 2023-01-23T19:28:01.1981463Z at _runTestsForDescribeBlock (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:86:9) 2023-01-23T19:28:01.1982493Z at _runTestsForDescribeBlock (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:81:9) 2023-01-23T19:28:01.1983501Z at _runTestsForDescribeBlock (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:81:9) 2023-01-23T19:28:01.1984435Z at run (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:26:3) 2023-01-23T19:28:01.1985615Z at runAndTransformResultsToJestFormat (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:120:21) 2023-01-23T19:28:01.1986815Z at jestAdapter (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) 2023-01-23T19:28:01.1987848Z at runTestInternal (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-runner/build/runTest.js:367:16) 2023-01-23T19:28:01.1988810Z at runTest (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-runner/build/runTest.js:444:34) 2023-01-23T19:28:01.1989191Z 2023-01-23T19:28:01.1989589Z at warn (node_modules/@octokit/request-error/dist-src/index.js:3:51) 2023-01-23T19:28:01.1990129Z at f (node_modules/once/once.js:25:25) 2023-01-23T19:28:01.1990846Z at RequestError.logOnceCode (node_modules/@octokit/request-error/dist-src/index.js:44:17) 2023-01-23T19:28:01.1991404Z at Array.map (<anonymous>) 2023-01-23T19:28:01.1991638Z 2023-01-23T19:28:01.2518284Z FAIL packages/actions/test/e2e/00-authentication.test.ts 2023-01-23T19:28:01.2524718Z ● Authentication › Production › authenticate a new user using Github OAuth 2.0 device flow 2023-01-23T19:28:01.2525441Z 2023-01-23T19:28:01.2526182Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:01.2526839Z 2023-01-23T19:28:01.2527464Z 71 | 2023-01-23T19:28:01.2527963Z 72 | // Get the access token. 2023-01-23T19:28:01.2528519Z > 73 | const *** token *** = await auth(*** 2023-01-23T19:28:01.2528989Z | ^ 2023-01-23T19:28:01.2529439Z 74 | type: tokenType 2023-01-23T19:28:01.2529855Z 75 | ***) 2023-01-23T19:28:01.2530203Z 76 | 2023-01-23T19:28:01.2530395Z 2023-01-23T19:28:01.2530914Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:01.2531645Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:01.2532519Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:01.2533365Z at Object.<anonymous> (packages/actions/test/e2e/00-authentication.test.ts:73:35) 2023-01-23T19:28:01.2533784Z 2023-01-23T19:28:01.2533792Z 2023-01-23T19:28:01.2534036Z ● Test suite failed to run 2023-01-23T19:28:01.2534264Z 2023-01-23T19:28:01.2534749Z Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string. 2023-01-23T19:28:01.2535114Z 2023-01-23T19:28:01.2535649Z 139 | // Finally: revert the state back to pre-given state. This section is executed even if when or then fails. 2023-01-23T19:28:01.2536214Z 140 | // Clean user from DB. 2023-01-23T19:28:01.2536791Z > 141 | await adminFirestore.collection("users").doc(userUid).delete() 2023-01-23T19:28:01.2537332Z | ^ 2023-01-23T19:28:01.2537739Z 142 | 2023-01-23T19:28:01.2538128Z 143 | // Remove Auth user. 2023-01-23T19:28:01.2538608Z 144 | await adminAuth.deleteUser(userUid) 2023-01-23T19:28:01.2539068Z 2023-01-23T19:28:01.2539556Z at validateResourcePath (node_modules/@google-cloud/firestore/build/src/path.js:447:15) 2023-01-23T19:28:01.2540406Z at CollectionReference.doc (node_modules/@google-cloud/firestore/build/src/reference.js:2206:45) 2023-01-23T19:28:01.2541243Z at Object.doc (packages/actions/test/e2e/00-authentication.test.ts:141:50) 2023-01-23T19:28:01.2541580Z 2023-01-23T19:28:02.5686840Z console.warn 2023-01-23T19:28:02.5687791Z Deprecation: [@octokit/request-error] `error.code` is deprecated, use `error.status`. 2023-01-23T19:28:02.5688802Z at RequestError.get (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/@octokit/request-error/dist-src/index.js:44:29) 2023-01-23T19:28:02.5689888Z at isAssertionError (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:179:13) 2023-01-23T19:28:02.5690920Z at /home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:58:14 2023-01-23T19:28:02.5691519Z at Array.map (<anonymous>) 2023-01-23T19:28:02.5692429Z at formatNodeAssertErrors (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:39:43) 2023-01-23T19:28:02.5693425Z at dispatch (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/state.js:66:11) 2023-01-23T19:28:02.5694148Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2023-01-23T19:28:02.5695003Z at _runTest (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:196:3) 2023-01-23T19:28:02.5695983Z at _runTestsForDescribeBlock (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:86:9) 2023-01-23T19:28:02.5697304Z at _runTestsForDescribeBlock (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:81:9) 2023-01-23T19:28:02.5698325Z at _runTestsForDescribeBlock (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:81:9) 2023-01-23T19:28:02.5699788Z at run (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:26:3) 2023-01-23T19:28:02.5700936Z at runAndTransformResultsToJestFormat (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:120:21) 2023-01-23T19:28:02.5702115Z at jestAdapter (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) 2023-01-23T19:28:02.5703137Z at runTestInternal (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-runner/build/runTest.js:367:16) 2023-01-23T19:28:02.5704068Z at runTest (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-runner/build/runTest.js:444:34) 2023-01-23T19:28:02.5704455Z 2023-01-23T19:28:02.5704851Z at warn (node_modules/@octokit/request-error/dist-src/index.js:3:51) 2023-01-23T19:28:02.5705372Z at f (node_modules/once/once.js:25:25) 2023-01-23T19:28:02.5706103Z at RequestError.logOnceCode (node_modules/@octokit/request-error/dist-src/index.js:44:17) 2023-01-23T19:28:02.5706643Z at Array.map (<anonymous>) 2023-01-23T19:28:02.5706888Z 2023-01-23T19:28:02.5983989Z FAIL packages/actions/test/unit/firebase.test.ts 2023-01-23T19:28:02.5987667Z ● Firebase › getCurrentFirebaseAuthUser() › should return the current Firebase user authenticated for a given application 2023-01-23T19:28:02.5988427Z 2023-01-23T19:28:02.5989239Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:02.5989751Z 2023-01-23T19:28:02.5990316Z 214 | 2023-01-23T19:28:02.5990936Z 215 | // Get the access token. 2023-01-23T19:28:02.5991917Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:02.5992588Z | ^ 2023-01-23T19:28:02.5993478Z 217 | type: tokenType 2023-01-23T19:28:02.5994083Z 218 | ***) 2023-01-23T19:28:02.5994894Z 219 | 2023-01-23T19:28:02.5995273Z 2023-01-23T19:28:02.5996159Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:02.5997204Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:02.5998609Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:02.5999672Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:02.6001009Z at Object.<anonymous> (packages/actions/test/unit/firebase.test.ts:62:23) 2023-01-23T19:28:02.6001575Z 2023-01-23T19:28:02.6001977Z 2023-01-23T19:28:02.6002424Z ● Test suite failed to run 2023-01-23T19:28:02.6003115Z 2023-01-23T19:28:02.6003868Z Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string. 2023-01-23T19:28:02.6004677Z 2023-01-23T19:28:02.6005109Z 82 | afterAll(async () => *** 2023-01-23T19:28:02.6006008Z 83 | // Finally. 2023-01-23T19:28:02.6006796Z > 84 | await adminFirestore.collection("users").doc(userId).delete() 2023-01-23T19:28:02.6007822Z | ^ 2023-01-23T19:28:02.6008560Z 85 | await adminAuth.deleteUser(userId) 2023-01-23T19:28:02.6009888Z 86 | ***) 2023-01-23T19:28:02.6010235Z 87 | ***) 2023-01-23T19:28:02.6010441Z 2023-01-23T19:28:02.6010927Z at validateResourcePath (node_modules/@google-cloud/firestore/build/src/path.js:447:15) 2023-01-23T19:28:02.6011770Z at CollectionReference.doc (node_modules/@google-cloud/firestore/build/src/reference.js:2206:45) 2023-01-23T19:28:02.6012720Z at Object.doc (packages/actions/test/unit/firebase.test.ts:84:54) 2023-01-23T19:28:02.6013049Z 2023-01-23T19:28:03.9881027Z console.warn 2023-01-23T19:28:03.9881989Z Deprecation: [@octokit/request-error] `error.code` is deprecated, use `error.status`. 2023-01-23T19:28:03.9883316Z at RequestError.get (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/@octokit/request-error/dist-src/index.js:44:29) 2023-01-23T19:28:03.9884373Z at isAssertionError (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:179:13) 2023-01-23T19:28:03.9885399Z at /home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:58:14 2023-01-23T19:28:03.9885989Z at Array.map (<anonymous>) 2023-01-23T19:28:03.9886887Z at formatNodeAssertErrors (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/formatNodeAssertErrors.js:39:43) 2023-01-23T19:28:03.9887877Z at dispatch (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/state.js:66:11) 2023-01-23T19:28:03.9888594Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2023-01-23T19:28:03.9889434Z at _runTest (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:196:3) 2023-01-23T19:28:03.9890398Z at _runTestsForDescribeBlock (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:86:9) 2023-01-23T19:28:03.9891383Z at _runTestsForDescribeBlock (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:81:9) 2023-01-23T19:28:03.9892296Z at run (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/run.js:26:3) 2023-01-23T19:28:03.9893668Z at runAndTransformResultsToJestFormat (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:120:21) 2023-01-23T19:28:03.9894936Z at jestAdapter (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) 2023-01-23T19:28:03.9896029Z at runTestInternal (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-runner/build/runTest.js:367:16) 2023-01-23T19:28:03.9897059Z at runTest (/home/runner/work/mpc-phase2-suite/mpc-phase2-suite/node_modules/jest-runner/build/runTest.js:444:34) 2023-01-23T19:28:03.9897528Z 2023-01-23T19:28:03.9897987Z at warn (node_modules/@octokit/request-error/dist-src/index.js:3:51) 2023-01-23T19:28:03.9898605Z at f (node_modules/once/once.js:25:25) 2023-01-23T19:28:03.9899583Z at RequestError.logOnceCode (node_modules/@octokit/request-error/dist-src/index.js:44:17) 2023-01-23T19:28:03.9900228Z at Array.map (<anonymous>) 2023-01-23T19:28:03.9900549Z 2023-01-23T19:28:04.0219500Z FAIL packages/actions/test/e2e/02-contribution.test.ts 2023-01-23T19:28:04.0227167Z ● Contribution › should allow an user to contribute 2023-01-23T19:28:04.0227477Z 2023-01-23T19:28:04.0227820Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0228138Z 2023-01-23T19:28:04.0230296Z 214 | 2023-01-23T19:28:04.0230983Z 215 | // Get the access token. 2023-01-23T19:28:04.0231723Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0232420Z | ^ 2023-01-23T19:28:04.0232872Z 217 | type: tokenType 2023-01-23T19:28:04.0233277Z 218 | ***) 2023-01-23T19:28:04.0234551Z 219 | 2023-01-23T19:28:04.0234945Z 2023-01-23T19:28:04.0235641Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0236555Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0237957Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0238906Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0239954Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0240609Z 2023-01-23T19:28:04.0330350Z ● Contribution › should block a contributor after timeout 2023-01-23T19:28:04.0330954Z 2023-01-23T19:28:04.0331519Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0334795Z 2023-01-23T19:28:04.0335034Z 214 | 2023-01-23T19:28:04.0335581Z 215 | // Get the access token. 2023-01-23T19:28:04.0339136Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0339699Z | ^ 2023-01-23T19:28:04.0340258Z 217 | type: tokenType 2023-01-23T19:28:04.0343484Z 218 | ***) 2023-01-23T19:28:04.0343930Z 219 | 2023-01-23T19:28:04.0344248Z 2023-01-23T19:28:04.0347517Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0348377Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0349398Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0352994Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0353889Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0354364Z 2023-01-23T19:28:04.0363785Z ● Contribution › should return all open ceremonies 2023-01-23T19:28:04.0365200Z 2023-01-23T19:28:04.0365743Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0366208Z 2023-01-23T19:28:04.0369223Z 214 | 2023-01-23T19:28:04.0369734Z 215 | // Get the access token. 2023-01-23T19:28:04.0370347Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0373646Z | ^ 2023-01-23T19:28:04.0374161Z 217 | type: tokenType 2023-01-23T19:28:04.0374656Z 218 | ***) 2023-01-23T19:28:04.0377811Z 219 | 2023-01-23T19:28:04.0378105Z 2023-01-23T19:28:04.0378868Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0382516Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0383477Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0384390Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0388035Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0388476Z 2023-01-23T19:28:04.0389017Z ● Contribution › should return all circuits for a particular ceremony 2023-01-23T19:28:04.0392201Z 2023-01-23T19:28:04.0392579Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0392981Z 2023-01-23T19:28:04.0396060Z 214 | 2023-01-23T19:28:04.0396538Z 215 | // Get the access token. 2023-01-23T19:28:04.0397142Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0399604Z | ^ 2023-01-23T19:28:04.0400918Z 217 | type: tokenType 2023-01-23T19:28:04.0403301Z 218 | ***) 2023-01-23T19:28:04.0404509Z 219 | 2023-01-23T19:28:04.0406685Z 2023-01-23T19:28:04.0407942Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0410690Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0412412Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0415147Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0417090Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0417594Z 2023-01-23T19:28:04.0419169Z ● Contribution › should return an empty array when fetching circuits for non existent ceremony 2023-01-23T19:28:04.0421555Z 2023-01-23T19:28:04.0424013Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0426340Z 2023-01-23T19:28:04.0428564Z 214 | 2023-01-23T19:28:04.0431030Z 215 | // Get the access token. 2023-01-23T19:28:04.0433545Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0436030Z | ^ 2023-01-23T19:28:04.0438524Z 217 | type: tokenType 2023-01-23T19:28:04.0441000Z 218 | ***) 2023-01-23T19:28:04.0441499Z 219 | 2023-01-23T19:28:04.0444007Z 2023-01-23T19:28:04.0446509Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0447627Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0449367Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0450181Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0450980Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0451324Z 2023-01-23T19:28:04.0451721Z ● Contribution › should get the next circuit ready for contribution 2023-01-23T19:28:04.0452186Z 2023-01-23T19:28:04.0452493Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0452761Z 2023-01-23T19:28:04.0452903Z 214 | 2023-01-23T19:28:04.0453285Z 215 | // Get the access token. 2023-01-23T19:28:04.0453767Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0454261Z | ^ 2023-01-23T19:28:04.0454650Z 217 | type: tokenType 2023-01-23T19:28:04.0455027Z 218 | ***) 2023-01-23T19:28:04.0455361Z 219 | 2023-01-23T19:28:04.0455555Z 2023-01-23T19:28:04.0455947Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0456663Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0457539Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0458276Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0459307Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0459633Z 2023-01-23T19:28:04.0459991Z ● Contribution › should resume a contribution after a timeout 2023-01-23T19:28:04.0460294Z 2023-01-23T19:28:04.0460557Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0460836Z 2023-01-23T19:28:04.0460964Z 214 | 2023-01-23T19:28:04.0461360Z 215 | // Get the access token. 2023-01-23T19:28:04.0461827Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0462262Z | ^ 2023-01-23T19:28:04.0462666Z 217 | type: tokenType 2023-01-23T19:28:04.0463056Z 218 | ***) 2023-01-23T19:28:04.0463396Z 219 | 2023-01-23T19:28:04.0463592Z 2023-01-23T19:28:04.0463985Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0464705Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0465572Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0466324Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0467097Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0467440Z 2023-01-23T19:28:04.0468184Z ● Contribution › should fail to resume a contribution on a ceremony where the user is not timed out 2023-01-23T19:28:04.0468553Z 2023-01-23T19:28:04.0468823Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0469096Z 2023-01-23T19:28:04.0469241Z 214 | 2023-01-23T19:28:04.0469740Z 215 | // Get the access token. 2023-01-23T19:28:04.0470208Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0470643Z | ^ 2023-01-23T19:28:04.0471050Z 217 | type: tokenType 2023-01-23T19:28:04.0471426Z 218 | ***) 2023-01-23T19:28:04.0471753Z 219 | 2023-01-23T19:28:04.0471944Z 2023-01-23T19:28:04.0472331Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0473059Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0473896Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0474657Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0475412Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0475751Z 2023-01-23T19:28:04.0476102Z ● Contribution › should get the contributor's attestation 2023-01-23T19:28:04.0476392Z 2023-01-23T19:28:04.0476651Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0476919Z 2023-01-23T19:28:04.0477056Z 214 | 2023-01-23T19:28:04.0477433Z 215 | // Get the access token. 2023-01-23T19:28:04.0477897Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0478308Z | ^ 2023-01-23T19:28:04.0478711Z 217 | type: tokenType 2023-01-23T19:28:04.0479074Z 218 | ***) 2023-01-23T19:28:04.0479422Z 219 | 2023-01-23T19:28:04.0479615Z 2023-01-23T19:28:04.0479987Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0480708Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0481543Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0482293Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0483056Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0483389Z 2023-01-23T19:28:04.0483938Z ● Contribution › should continue to contribute to the next ceremony with makeProgressToNextContribution cloud function 2023-01-23T19:28:04.0484351Z 2023-01-23T19:28:04.0484597Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0484873Z 2023-01-23T19:28:04.0485015Z 214 | 2023-01-23T19:28:04.0485391Z 215 | // Get the access token. 2023-01-23T19:28:04.0485860Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0486288Z | ^ 2023-01-23T19:28:04.0486705Z 217 | type: tokenType 2023-01-23T19:28:04.0487077Z 218 | ***) 2023-01-23T19:28:04.0487431Z 219 | 2023-01-23T19:28:04.0487624Z 2023-01-23T19:28:04.0488021Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0488757Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0489606Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0490366Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0491145Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0491486Z 2023-01-23T19:28:04.0491931Z ● Contribution › should revert when querying for participant of a non existent ceremony 2023-01-23T19:28:04.0492263Z 2023-01-23T19:28:04.0492673Z HttpError: Unknown error: ***"error":"Not Found"*** 2023-01-23T19:28:04.0492970Z 2023-01-23T19:28:04.0493118Z 214 | 2023-01-23T19:28:04.0493495Z 215 | // Get the access token. 2023-01-23T19:28:04.0493974Z > 216 | const *** token *** = await auth(*** 2023-01-23T19:28:04.0494471Z | ^ 2023-01-23T19:28:04.0494881Z 217 | type: tokenType 2023-01-23T19:28:04.0495244Z 218 | ***) 2023-01-23T19:28:04.0495581Z 219 | 2023-01-23T19:28:04.0495761Z 2023-01-23T19:28:04.0496142Z at node_modules/@octokit/request/dist-src/fetch-wrapper.js:70:27 2023-01-23T19:28:04.0496859Z at oauthRequest (node_modules/@octokit/oauth-methods/dist-src/utils.js:16:22) 2023-01-23T19:28:04.0497694Z at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:8:36) 2023-01-23T19:28:04.0498444Z at authenticateUserWithGithub (packages/actions/test/utils/authentication.ts:216:23) 2023-01-23T19:28:04.0499518Z at Object.<anonymous> (packages/actions/test/e2e/02-contribution.test.ts:39:19) 2023-01-23T19:28:04.0499857Z 2023-01-23T19:28:04.0499865Z 2023-01-23T19:28:04.0500091Z ● Test suite failed to run 2023-01-23T19:28:04.0500314Z 2023-01-23T19:28:04.0500799Z Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string. 2023-01-23T19:28:04.0501163Z 2023-01-23T19:28:04.0501384Z 83 | afterAll(async () => *** 2023-01-23T19:28:04.0501849Z 84 | // Clean ceremony and user from DB. 2023-01-23T19:28:04.0502463Z > 85 | await adminFirestore.collection("users").doc(userId).delete() 2023-01-23T19:28:04.0502987Z | ^ 2023-01-23T19:28:04.0503370Z 86 | 2023-01-23T19:28:04.0503739Z 87 | // Remove Auth user. 2023-01-23T19:28:04.0504199Z 88 | await adminAuth.deleteUser(userId) 2023-01-23T19:28:04.0504467Z 2023-01-23T19:28:04.0504938Z at validateResourcePath (node_modules/@google-cloud/firestore/build/src/path.js:447:15) 2023-01-23T19:28:04.0505770Z at CollectionReference.doc (node_modules/@google-cloud/firestore/build/src/reference.js:2206:45) 2023-01-23T19:28:04.0506541Z at Object.doc (packages/actions/test/e2e/02-contribution.test.ts:85:50)
Hmm, noticed that some environments are missing as Github secrets. I will open a PR soon.
Tentative fix in #286
Recent two CI run had failed: https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3987944845 https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3989827311
Failure log: