Pipelines经常构建失败,需要重复点击构建


#1


每次都需要构建几次才成功,不确定性太大


#2

你是自主搭建的choerodon环境吗


#3

你好,请提供下报错的信息
也麻烦参考下。一张截图无法提供太多有用的信息


#4

Running with gitlab-runner 10.7.2 (b5e03c94)
on choerodon-runner 9b204dac
Using Kubernetes namespace: tools
Using Kubernetes executor with image registry.saas.hand-china.com/tools/pynode:test
Waiting for pod tools/runner-9b204dac-project-334-concurrent-0bcwcw to be running, status is Pending
Running on runner-9b204dac-project-334-concurrent-0bcwcw via runner-gitlab-runner-7b87d57488-g2gbl…
Cloning repository…
Cloning into ‘/hzero-hpay/hpay-front’…
Checking out 8f986f58 as develop…
Updating/initializing submodules recursively…
$ curl -o .auto_devops.sh \ # collapsed multi-line command
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 3097 100 3097 0 0 130k 0 --:–:-- --:–:-- --:–:-- 131k
$ node_config
/usr/local/bin/yarnpkg -> /usr/local/lib/node_modules/yarn/bin/yarn.js
/usr/local/bin/yarn -> /usr/local/lib/node_modules/yarn/bin/yarn.js

  • yarn@1.9.4
    added 1 package in 0.979s
    yarn config v1.9.4
    success Set “cache-folder” to “/cache/hpay-front-334/yarn_cache”.
    Done in 0.06s.
    $ node_module_ci
    yarn install v1.9.4
    warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
    [1/5] Validating package.json…
    [2/5] Resolving packages…
    [3/5] Fetching packages…
    info fsevents@1.2.4: The platform “linux” is incompatible with this module.
    info “fsevents@1.2.4” is an optional dependency and failed compatibility check. Excluding it from installation.
    [4/5] Linking dependencies…
    warning “antd > rc-editor-mention@1.1.7” has unmet peer dependency “immutable@^3.7.4”.
    warning " > react-fittext@1.0.0" has incorrect peer dependency “react@^15.0.0”.
    warning " > react-fittext@1.0.0" has incorrect peer dependency “react-dom@^15.0.0”.
    warning " > eslint-config-airbnb@16.1.0" has incorrect peer dependency “eslint-plugin-jsx-a11y@^6.0.2”.
    warning “roadhog > babel-preset-umi > @babel/plugin-proposal-export-default@7.0.0-beta.32” has incorrect peer dependency “@babel/core@7.0.0-beta.32”.
    warning “roadhog > babel-preset-umi > @babel/plugin-proposal-export-namespace@7.0.0-beta.32” has incorrect peer dependency “@babel/core@7.0.0-beta.32”.
    warning “roadhog > umi-test > ts-jest-babel-7@22.0.7” has unmet peer dependency “jest@^22.0.1 || ^22.1.0-alpha.1 || ^23.0.0-alpha.1”.
    warning “roadhog > af-webpack > eslint-config-umi > eslint-config-react-app@2.1.0” has incorrect peer dependency “babel-eslint@^7.2.3”.
    warning “roadhog > babel-preset-umi > @babel/plugin-proposal-export-default > @babel/plugin-syntax-export-extensions@7.0.0-beta.32” has incorrect peer dependency “@babel/core@7.0.0-beta.32”.
    warning “stylelint-config-prettier > stylelint > postcss-html@0.23.7” has incorrect peer dependency “postcss-syntax@^0.10.0”.
    warning “stylelint-config-prettier > stylelint > postcss-markdown@0.23.7” has incorrect peer dependency “postcss-syntax@^0.10.0”.
    [5/5] Building fresh packages…
    ERROR: Job failed: execution took longer than 1h0m0s seconds

#5

希望帮忙看一下,一直重复构建都是 这个结果


#6

构建卡在 Building fresh packages… 导致超时。请检查各个依赖、代码或尝试优化构建步骤。


#7

重复尝试了接近10次,不断的retry,刚刚构建成功了,请问有什么优化方案?


#8

请根据日志信息,比如构建失败,查看失败的原因。如某个方法加载缓慢或使用了一些存在缺陷的依赖库等,具体应用你需要具体分析。


#9


#10

麻烦看看这个构建失败的结果,重复构建几次都报这个错


#11

如果您使用了插件,第三方软件等,我们CI基础镜像中并无集成此类应用,请根据报错信息自行在CI中添加相关安装步骤。


#12


#13

像这种情况该怎么解决


#14

提示文件或路径不存在,请检查下文件或路径


#15

重复多次构建都报这个错,麻烦看看,谢谢


#16

可能是 https://registry.yarnpkg.com 这个域名暂时无法访问,你可以自行确定这个域名可以访问且没被GFW,确认可以正常访问后再重试。