Stream: beginners

Topic: ✔ CI fails on GH but same script passes locally


view this post on Zulip Ian McLerran (Dec 12 2024 at 16:17):

Any ideas why my CI pipeline might be failing remotely, but passes locally?

When CI runs on GH, it fails with the following:

+ ./roc_nightly/roc check ./src/Tests.roc
Downloading https://github.com/lukewilliamboswell/roc-ansi/releases/download/0.7.0/NmbsrdwKIOb1DtUIV7L_AhCvTx7nhfaW3KkOpT7VUZg.tar.br
    into /home/runner/.cache/roc/packages
[7.8 / 7.8 KB]
Downloading https://github.com/lukewilliamboswell/roc-json/releases/download/0.11.0/z45Wzc-J39TLNweQUoLw3IGZtkQiEN3lTBv3BXErRjQ.tar.br
    into /home/runner/.cache/roc/packages
[13.3 / 13.3 KB]
── FILE NOT FOUND in ...0/NmbsrdwKIOb1DtUIV7L_AhCvTx7nhfaW3KkOpT7VUZg/Ansi.roc ─
I am looking for this file, but it's not there:
    /home/runner/.cache/roc/packages/github.com/lukewilliamboswell/roc-ansi/releases/download/0.7.0/NmbsrdwKIOb1DtUIV7L_AhCvTx7nhfaW3KkOpT7VUZg/Ansi.roc
Is the file supposed to be there? Maybe there is a typo in the file
name?

If I run the CI script locally though, it passes without issue. I don't have a lot of experience troubleshooting CI issues, so I'm not even sure how to look into what is going on here.

Here is the CI script and last pipeline run.

view this post on Zulip Brendan Hansknecht (Dec 12 2024 at 16:40):

One thing to check, clear your roc cache and run the script locally

view this post on Zulip Ian McLerran (Dec 12 2024 at 16:54):

Cleared the cache on my local machine, re-ran -- still passes :thinking:

view this post on Zulip Ian McLerran (Dec 12 2024 at 17:00):

Think I figured it out - the file is actually called "ANSI.roc". Mac is not case sensitive, and so finds the file, but when running on the Ubuntu test runner, "Ansi.roc" does not resolve.

view this post on Zulip Brendan Hansknecht (Dec 12 2024 at 17:05):

Ah, that makes naming fun. Can you file a bug? We should make that consistently fail

view this post on Zulip Brendan Hansknecht (Dec 12 2024 at 17:05):

Make a nice error that says "Did you mean ANSI?"

view this post on Zulip Ian McLerran (Dec 12 2024 at 17:07):

Yep, I will file a bug for that! :+1:

view this post on Zulip Sam Mohr (Dec 12 2024 at 17:39):

I just got burned by OSX case insensitivity with git at work this week... not great, Steve Jobs.

view this post on Zulip Ian McLerran (Dec 12 2024 at 17:44):

Talk about a footgun! :face_with_raised_eyebrow:

view this post on Zulip Notification Bot (Dec 12 2024 at 17:44):

Ian McLerran has marked this topic as resolved.

view this post on Zulip Ian McLerran (Dec 12 2024 at 18:08):

Issue filed at #7350


Last updated: Jul 06 2025 at 12:14 UTC