-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix macOS CI issue (was: support cabal new-build) #240
Conversation
apparently with cabal-v2 the executable and the tests don't have access to that auto-generated module.
When compiling using
which means that the value is now Another difficulty is that the tests fail:
This is a module from the |
arh, |
at 2020-12-28 9pm, https://github.com/gelisam/hawk/runs/1620047078 successfully found the cache at key at 2020-12-29 12pm, https://github.com/gelisam/hawk/runs/1622766015 failed to find the cache at that same key. So I am guessing they get cleared daily. That's unfortunate for our build times, but whatever. It built successfully, so it successfully ran the problematic binary. The binary was then saved to the cache. at 2020-12-29 6pm, https://github.com/gelisam/hawk/pull/240/checks?check_run_id=1623867348 successfully found the cache at that same key, but this time it was not able to run Maybe the |
I re-ran the build a couple of times, and it always fails with |
The build passes when the cache is empty, the executable is still fine just before it is added to the cache, but then it is no longer fine when it is restored from the cache. Like last time. Well, at least it's consistent. |
ghc is still installed via stack when it is set to false. maybe its meaning is reversed?
According to |
Aha! The md5 of the file is different. The file is indeed corrupted! It's a bug in when putting the file into the cache:
when extracting the file from the cache:
|
Looks like it has already been reported: actions/cache#445 |
A similar bug claims to have found a workaround, but the link to their workaround is a broken link: actions/cache#403 (comment) Fortunately I managed to find a different link to that workaround: shadowsocks/shadowsocks-rust@e88a536#diff-bc668a2c9f2299cef15b222055b4b4d5311646caec2e7610e540cee18ae9b948 Basically, the solution is to add
before the actions/cache step so that it uses gnu's version of tar instead of the bsd tar which is installed on macOS by default. So I guess that means the bug is bsd tar? |
I see that the command is |
Moved to #241 |
This was originally an attempt to fix #186 (now continued at #242), but then I encountered an annoying bug in CI and this PR became a testing ground for that bug instead. I'll open another PR.