We detected that the Chromium Renderer process just crashed GITLAB CI/CD 에러 해결하기

ISSUE:

We detected that the Chromium Renderer process just crashed. This is the equivalent to seeing the 'sad face' when Chrome dies. This can happen for a number of different reasons:

  • You wrote an endless loop and you must fix your own code
  • There is a memory leak in Cypress (unlikely but possible)
  • You are running Docker (there is an easy fix for this: see link below)
  • You are running lots of tests on a memory intense application
  • You are running in a memory starved VM environment
  • There are problems with your GPU / GPU drivers
  • There are browser bugs in Chromium

해결 방법

  • cypress/plugins/index.js 파일 안에 코드 추가
module.exports = on => {
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
  on('file:preprocessor', cypressTypeScriptPreprocessor);

  //Docker crashing issue when renderer process eats up too much memory
  on('before:browser:launch', (browser = {}, args) => {
    if (browser.name === 'chrome') {
      args.push('--disable-dev-shm-usage');
    }

    return args
  });
};
  • gitlaba-ci-mapianist.yml 파일에 cypress docker image browser 버젼 업그레이드
test:pc:
  image: cypress/base:13.6.0
  • GITLAB-RUNNER

    _2020-02-18__11 39 43

참고자료

참고자료:


[Ju Chan Hwang]
Written by@[Ju Chan Hwang]
JUlog에 오신걸 환영합니다🤗 저에 대해 궁금하다면, 👆제 이름을 눌러보세요

GitHubFacebook