-
Notifications
You must be signed in to change notification settings - Fork 16
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
Bump pandoc to allow up to 2.9 #68
Conversation
As far as I can tell, CI is failing on the linting phase for build_8.6.5: https://circleci.com/gh/pbrisbin/yesod-markdown/849?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link This appears to be failing during the However, running this locally appears to work: $ cat stack-lts-14.27.yaml
resolver: lts-14.27
# Fix weeder with stack-2.0
ghc-options: { "$locals": -ddump-to-file -ddump-hi }
$ stack --stack-yaml stack-lts-14.27.yaml test
... (tests succeed) ...
$ stack --stack-yaml stack-lts-14.27.yaml exec -- weeder .
= Package yesod-markdown =
No warnings I'm not sure how to fix CI here. Also, recent advice for stack-based projects is to check the I didn't make this change in this PR, but maybe it could be done in a future PR. |
Oof, yeah, so this is going to be annoying...
Did you want to try and address these, or should I add plan to pick this up when I'm able? |
@pbrisbin Thanks for the quick response. I removed the GHC-8.0 build. I didn't touch the GHC-8.2 build, since it appears to be building fine, but if you'd like, I can remove it as well.
Great guess! This is exactly what happened.
Do you mean changing the I'm not too familiar with CircleCI, but on TravisCI, I believe there is a way to drop a cache for a specific build configuration from the web. Instead of changing the key prefix, would it be possible for you to just drop the cache for this build configuration, and force a rebuild?
I don't have any good idea how to fix this. I guess for now we could remove this from CI, but that's somewhat unfortunate. Alternatively, https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners As far as I could tell, Circle CI machines only have 4G of memory: |
By "key prefix", I mean the Separately (not this PR, IMO), we could (should) change the cache key to digest the stack yaml's contents at that position in the key(s). I think it's a silly mistake that it currently spits the file name through md5 into
Theoretically, any build can fail for this reason, so removal isn't really an answer. The status quo has been to find "big" dependencies and build them ahead of time with Another possible option would be to update the
That's quite the can of worms. I'm not at all against it on principle (e.g. if you wanted to own that), I'm just unfamiliar with that whole ecosystem at this point, so I'm not sure I'd be able to execute that change myself for some time. Something in the back of my mind has been to use Circle's Orbs feature to share almost all of this CI config between all my Haskell OSS as an Orb. I have some WIP in another branch that's doing that. Moving to Actions would work against that, but I suppose we could extract to something central in Actions to? |
@pbrisbin I just uploaded commit 2c62576 which bumps the cache prefix from v3 to v4. Hopefully this gets things passing. To be honest, I'm not particularly invested in yesod-markdown, I was really just hoping to get a version to Hackage with a looser dependency on pandoc, since i use I added the additional CI targets (and stack.yaml file) because I thought it would be a help to you, but I'm not particularly interested in figuring out these Circle CI problems. Please feel free to take this PR over (push to my branch, etc). As for GitHub Actions, I completely understand not wanting to switch over. I switched to GitHub Actions for one of my Haskell projects because of the 50-minute time limit for Travis CI jobs. It was pretty easy. However, it appears you're pretty familiar with CircleCI, so I can see how switching to GitHub Actions could be a lot of unwanted work, especially if there is some other good way to fix the out-of-memory issues. |
No worries, I'll take over this change for you and deal with CI. |
Merged in #70. I moved to the |
Thanks a lot for taking a look at this! |
This PR bumps the pandoc dep to allow up to pandoc-2.9.
I want to use yesod-markdown in a project based on lts-15, which uses pandoc-2.9.
I've also done a few other things in this PR:
stack.yaml
to use lts-15, which should test for ghc-8.8.