Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30880

Fix playwright issues on Cold Storage CI

    XMLWordPrintable

    Details

      Description

      We are seeing since February 13th 2022 errors like:

      16:38:32  + npm run test
      16:38:32  
      16:38:32  > nuxeo-coldstorage-web@ test /home/jenkins/workspace/nuxeo_nuxeo-coldstorage_lts-2021/nuxeo-coldstorage-web
      16:38:32  > web-test-runner
      16:38:32  
      16:38:34  
      16:38:34  Chromium: |██████████████████████████████| 0/2 test files | 0 passed, 0 failed
      16:38:34  Webkit:   |██████████████████████████████| 0/2 test files | 0 passed, 0 failed
      16:38:34  Firefox:  |                              | 0/2 test files | 0 passed, 0 failed
      16:38:34  
      16:38:34  Running tests...
      16:38:34  
      16:38:34  Running 2 test files...
      16:38:34  
      16:38:34  
      16:38:52  Chromium: |██████████████████████████████| 0/2 test files | 0 passed, 0 failed
      16:38:52  Webkit:   |██████████████████████████████| 1/2 test files | 15 passed, 0 failed
      16:38:52  Firefox:  |                              | 0/2 test files | 0 passed, 0 failed
      16:38:52  
      16:38:52  Running tests...
      16:38:52  
      16:38:52  
      16:38:52  test/elements/nuxeo-move-content-to-coldstorage-button.test.js:
      16:38:52  
      16:38:52   🚧 Browser logs on Chromium:
      16:38:52        Could not find style data in module named nuxeo-styles
      16:38:52        Operation request failed: Error: This is a generated fake error
      16:38:52        An error was thrown in a Promise outside a test. Did you forget to await a function or assertion?
      16:38:52        Error: This is a generated fake error
      16:38:52          at MockClient.rejectWith (node_modules/@nuxeo/testing-helpers/nuxeo-mock-client.js:136:47)
      16:38:52          at o.<anonymous> (test/elements/nuxeo-move-content-to-coldstorage-button.test.js:231:18)
      16:38:52   🚧 Browser logs on Webkit:
      16:38:52        Could not find style data in module named nuxeo-styles
      16:38:52        Operation request failed: Error: This is a generated fake error
      16:38:52        An error was thrown in a Promise outside a test. Did you forget to await a function or assertion?
      16:38:52        Error: This is a generated fake error
      16:38:52          at rejectWith (node_modules/@nuxeo/testing-helpers/nuxeo-mock-client.js:136:56)
      16:38:52          at test/elements/nuxeo-move-content-to-coldstorage-button.test.js:231:28
      16:38:52  
      16:38:52   ❌ browserType.launch: 
      16:38:52  ╔════════════════════════════════════════════════════════════╗
      16:38:52  ║ Host system is missing a few dependencies to run browsers. ║
      16:38:52  ║ Please install them with the following command:            ║
      16:38:52  ║                                                            ║
      16:38:52  ║     npx playwright install-deps                            ║
      16:38:52  ║                                                            ║
      16:38:52  ║ <3 Playwright Team                                         ║
      16:38:52  ╚════════════════════════════════════════════════════════════╝  (failed on Firefox)
      16:38:52      browserType.launch: 
      16:38:52      ╔════════════════════════════════════════════════════════════╗
      16:38:52      ║ Host system is missing a few dependencies to run browsers. ║
      16:38:52      ║ Please install them with the following command:            ║
      16:38:52      ║                                                            ║
      16:38:52      ║     npx playwright install-deps                            ║
      16:38:52      ║                                                            ║
      16:38:52      ║ <3 Playwright Team                                         ║
      16:38:52      ╚════════════════════════════════════════════════════════════╝
      16:38:52          at /home/jenkins/workspace/nuxeo_nuxeo-coldstorage_lts-2021/nuxeo-coldstorage-web/node_modules/@web/test-runner-playwright/dist/PlaywrightLauncher.js:101:74
      16:38:52          at PlaywrightLauncher.getOrStartBrowser (/home/jenkins/workspace/nuxeo_nuxeo-coldstorage_lts-2021/nuxeo-coldstorage-web/node_modules/@web/test-runner-playwright/dist/PlaywrightLauncher.js:104:15)
      16:38:52          at PlaywrightLauncher.startSession (/home/jenkins/workspace/nuxeo_nuxeo-coldstorage_lts-2021/nuxeo-coldstorage-web/node_modules/@web/test-runner-playwright/dist/PlaywrightLauncher.js:42:49)
      16:38:52          at TestScheduler.startSession (/home/jenkins/workspace/nuxeo_nuxeo-coldstorage_lts-2021/nuxeo-coldstorage-web/node_modules/@web/test-runner-core/dist/runner/TestScheduler.js:103:62)
      16:38:52          at TestScheduler.runNextScheduled (/home/jenkins/workspace/nuxeo_nuxeo-coldstorage_lts-2021/nuxeo-coldstorage-web/node_modules/@web/test-runner-core/dist/runner/TestScheduler.js:83:30)
      16:38:52          at Timeout._onTimeout (/home/jenkins/workspace/nuxeo_nuxeo-coldstorage_lts-2021/nuxeo-coldstorage-web/node_modules/@web/test-runner-core/dist/runner/TestScheduler.js:34:26)
      

      https://jenkins.napps.dev.nuxeo.com/job/nuxeo/job/nuxeo-coldstorage/job/lts-2021/36/console

      It seems it is caused by the release of playwright client v1.19.0 (https://www.npmjs.com/package/playwright/v/1.19.0) on February 11th 2022.

      Probably there is a breaking change that makes this client fail with the server version we are using:

      image: mcr.microsoft.com/playwright:v1.13.1
      

      https://github.com/nuxeo/jx-napps-env/blob/master/charts/jenkins/pod-templates/nuxeo-platform-lts-2021.yaml.gotmpl#L48

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: