quadratic-funding / mpc-phase2-suite

The MPC suite of tools for conducting zkSNARK Phase 2 Trusted Setup ceremonies
MIT License
16 stars 6 forks source link

Add missing environments for test prod action #286

Closed 0xjei closed 1 year ago

baumstern commented 1 year ago

There is an error on the puppeteer side:

FAIL packages/actions/test/e2e/00-authentication.test.ts (43.411 s)
[22](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:23)
  ● Authentication › Production › authenticate a new user using Github OAuth 2.0 device flow
[23](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:24)

[24](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:25)
    TimeoutError: Navigation timeout of 30000 ms exceeded
[25](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:26)

[26](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:27)
      183 |
[27](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:28)
      184 |     const authorizeButton = await ghPage.$('[id="js-oauth-authorize-btn"]')
[28](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:29)
    > 185 |     await Promise.all([await authorizeButton?.click(), ghPage.waitForNavigation()])
[29](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:30)
          |     ^
[30](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:31)
      186 |
[31](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:32)
      187 |     // 4. Check for completion and close browser.
[32](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:33)
      188 |     const completedTextElem = await ghPage.$("p[class='text-center']")
[33](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:34)

[34](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:35)
      at LifecycleWatcher._LifecycleWatcher_createTimeoutPromise (node_modules/puppeteer-core/src/common/LifecycleWatcher.ts:257:12)
[35](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:36)
      at Frame.waitForNavigation (node_modules/puppeteer-core/src/common/Frame.ts:395:19)
[36](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:37)
      at CDPPage.waitForNavigation (node_modules/puppeteer-core/src/common/Page.ts:915:12)
[37](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:38)
          at async Promise.all (index 1)
[38](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:39)
      at Object.simulateOnVerification [as onVerification] (packages/actions/test/utils/authentication.ts:185:5)
[39](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:40)
      at getOAuthAccessToken (node_modules/@octokit/auth-oauth-device/dist-src/get-oauth-access-token.js:17:5)
[40](https://github.com/quadratic-funding/mpc-phase2-suite/actions/runs/3996094084/jobs/6857935576#step:7:41)
      at Object.<anonymous> (packages/actions/test/e2e/00-authentication.test.ts:73:35)