[INCIDENT] GitHub actions CI failure (ghcup)

Due to a number of Tschernobyl like coincidences, I managed to break GitHub CI for you all. Thank me later.

The incident is explained here: ghcup broken · Issue #7061 · actions/runner-images · GitHub

You’re likely affected by it if you use ghcup or haskell/actions/setup on a raw ubuntu runner (not docker container). Failures may manifest more prominently over the coming days while GitHub is rolling out the newly broken images to their runners slowly (yay).

The workaround is to add this step to your job prior to haskell setup action or any ghcup invocation (only on ubuntu linux without docker):

      - name: Workaround runner image issue
        # https://github.com/actions/runner-images/issues/7061
        run: sudo chown -R $USER /usr/local/.ghcup

I’ve already provided a bugfix upstream: Fix GHCup wrt #7061 by hasufell · Pull Request #7068 · actions/runner-images · GitHub

However, it’s possible the bugfix will take up to two weeks to be deployed. I’ll post further updates here.

20 Likes

Congratulations for breaking AND catching this! I guess!

3 Likes

GHCup was patched to be more permissive with file modification:

This was included in the silent 0.1.19.1 release. GitHub has since then re-deployed their runners with the new GHCup version.

My tests show that the issue seems to be gone:

5 Likes