codecov-action: [v4] Error: Write EPIPE
When switching from a working v3 setup to the new v4, we encounter this error 10-20% of the time in a high volume monorepo. Re-runs succeed on the 2nd or 3rd try. We do host our own GitHub runners.
Also a quick shoutout for https://github.com/codecov/codecov-action/issues/926 - if we had builtin retries this would be much less of a problem.
==> linux OS detected
https://cli.codecov.io/latest/linux/codecov.SHA256SUM
Received SHA256SUM 103bfefcc56f76473179e600b96eb8150b0f349ad94836b0f63f03ffac469ad7 codecov
Received SHA256SUM signature -----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEJwNOf9uFDgu8LGL/gGuyiu13mGkFAmW8+QUACgkQgGuyiu13
mGll6A/8CVDQ3LQaqpgQEIekCJUNKU/+tpF1EGpuUsMi7DZZ0RA6cmazUJFUlZK2
GS7Ptcwly+SYTT+a61SzeVlewPLa47XZIFyC+7tgSO6XgUNlJ+KTevyeL6GG0Qs1
YaciuJv8IHAqaaYT49iKpWE99OME1VXY3fIm4uEHlc4pgnmLv+FNdxnit4AYLGlw
2JHzdDMd5aHlnYYIyYJ9UbM8fFVWgddL1venoYl59NKc5gXjH1/+yPPWz2R+4f[22](https://github.com/houserx/micro-services/actions/runs/7832462490/job/21371233166#step:15:23)
jZfofI04aEJxNhGinfV5Vykb9asyfMupmLUweArgTIF3wzIEoYo/pK0nVgRBiROE
1hiaH5lti8brA2NF+pzp4+xFEyCU1m/mgN/rj1VRkDs0CW4S86eYWVbfuHEb0ymQ
o7Oe/rST6IjqM72B8eleEdT1DKdeX8DYSXnKvR2J1POyoPMMt/HUoCxphiNOq6Ei
416xOCgqWwOEGbeZ1pxp4Eovf6fffbd2F9MUcJTzgWocOqLh3lZB/EX3G9eLKsyf
WLW3s3NXzajS9j4zEPZxGPmnqAadfm9dzffwokFZnqMTJ7HB4qXH87BPgwPbq8R+
y/1Hv7hHEbJJhbE1fitwHFMg4gfUP6q39VtrfooQSBRYYDzrstowO/L2xsr+AkwW
EQGY70I4SY4XPKKzs8tF3Jch7Oa+xgeNMM1qSGyb2Vjn0KKSDMk=
=jEIQ
-----END PGP SIGNATURE-----
==> Running version latest
gpg: directory '/home/runner/.gnupg' created
gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
gpg: /home/runner/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB[28](https://github.com/houserx/micro-services/actions/runs/7832462490/job/21371233166#step:15:29)AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg: imported: 1
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at Socket._writeGeneric (node:net:952:11)
at Socket._write (node:net:964:8)
at writeOrBuffer (node:internal/streams/writable:447:12)
at _write (node:internal/streams/writable:389:10)
at Socket.Writable.end (node:internal/streams/writable:665:17)
at Socket.end (node:net:722:[31](https://github.com/houserx/micro-services/actions/runs/7832462490/job/21371233166#step:15:32))
at module.exports (/runner/_work/_actions/codecov/codecov-action/v4/node_modules/gpg/lib/spawnGPG.js:[50](https://github.com/houserx/micro-services/actions/runs/7832462490/job/21371233166#step:15:51):1)
at Object.call (/runner/_work/_actions/codecov/codecov-action/v4/node_modules/gpg/lib/gpg.js:28:1)
About this issue
- Original URL
- State: open
- Created 5 months ago
- Reactions: 19
- Comments: 16 (6 by maintainers)
Commits related to this issue
- ci: Ignore Codecov failures Intermittent issues from https://github.com/codecov/codecov-action/issues/1280 — committed to alexpovel/srgn by alexpovel 4 months ago
- chore[ci]: downgrade codecov action to v3 there is a bug in the action since february which is resulting in intermittently failing builds. this issue introduced in 730679bd55, which upgraded the code... — committed to charles-cooper/vyper by charles-cooper 3 months ago
- chore[ci]: downgrade codecov action to v3 (#3940) there is a bug in the action since february which is resulting in intermittently failing builds. this issue introduced in 730679bd55, which upgrade... — committed to vyperlang/vyper by charles-cooper 2 months ago
- ci(codecov): avoid workflow failure when codecov fails randomly Also adds `if: success() && github.repository == 'prisma/prisma'` everywhere (only added to one before) See https://github.com/codecov... — committed to prisma/prisma by Jolg42 2 months ago
Here is a repro: https://github.com/moby/buildkit/actions/runs/8092979752/job/22114788142?pr=4717#step:9:34
Same here, I actually created an issue a few seconds after you 😄 https://github.com/codecov/codecov-action/issues/1281
I spoke too soon:
@houserx-jmcc sorry for the delay here. I implemented retries and wanted to see if this will work for you.
In your CI, would you be able to replace the action with
uses: codecov/codecov-action@d1f1eb8ced025a661e3a2070d7c9462978291164
@houserx-jmcc got it, yeah, let me work on implementing retries for this
@thomasrockhu-codecov correct, only happening sometimes. 1-2 retries of the same job in a workflow will usually succeed if the first time failed.
Got it @houserx-jmcc @Jolg42, to be clear this not an always thing (for reproducibility)?
@houserx-jmcc no it is, sorry I was doing some cleanup on my side