OrangeTen / TodayILearned

http://tilup.sullivan.kr
MIT License
40 stars 4 forks source link

CI pipeline 처리속도 느므느므느림 #108

Closed kujyp closed 5 years ago

kujyp commented 5 years ago

일단 npm을 yarn으로 바꿔서 해결해보려함

kujyp commented 5 years ago

yarn적용하니 eslint설치하다가 에러남

https://circleci.com/gh/OrangeTen/TodayILearned/434?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link error eslint@5.2.0: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0".

kujyp commented 5 years ago

express에서 병렬적으로 수행하니까 persistence에서 에러남 https://circleci.com/gh/OrangeTen/TodayILearned/432?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link Error applying workspace layer for job 7e5f12f0-2c2f-4f6a-8872-63840124343c: Concurrent upstream jobs persisted the same file(s)

아래의 코드 참조했음. https://github.com/ayltai/Newspaper/issues/129 https://negabaro.github.io/circleci/2018/04/08/circleci_persist_to_workspace.html

문서 https://circleci.com/docs/2.0/configuration-reference/#persist_to_workspace

kujyp commented 5 years ago

와,, react, express에서 각각 tilup-web, tilup-server만 저장해서 넘기니까 최상위 폴더에 있는 파일들이 안전해져서 docker build시에 에러남.

https://circleci.com/gh/OrangeTen/TodayILearned/453?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/circleci/app/Dockerfile: no such file or directory

kujyp commented 5 years ago

before dockerbuild 5분 51초

before


after dockerbuild 4분 2초

after


가장오래걸리던 docker build job 1분50초 줄어듬.
효과는 굉장했다!