haskell / haskell/cabal

Cloning Github dependencies can sometimes fail

Open
#7,263 3 comments 0 reactions 0 assignees View on GitHub
blocked: info-needed cabal-install: other priority: low status: consider closing
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
Sometimes `cabal` will attempt to clone dependencies. This can even occur during a `cabal update`, `cabal configure`, `cabal build` or `cabal test`. The failure most often happens in Github Actions which leads to flaky builds.

These kinds of failures are expensive in CI especially for matrix style builds.

Perhaps `cabal` can have a retry strategy when it fails to clone so as to not just fail outright.

**To Reproduce**
Fork `git@github.com:input-output-hk/cardano-node.git` and branch from commit `b18c827c31999bca5cfb6ce70d7886407fc8fa43`, make a commit and push.

The build will _occasionally_ fail with the above-mentioned errors, somethings in `haskell/actions/setup`, sometimes in `cabal configure.

**Expected behavior**
`cabal` ought to be able to handle intermittent failures.

**System information**
* `cabal-3.4.0.0-rc4`
* Any GHC

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.