-
Notifications
You must be signed in to change notification settings - Fork 410
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
Hakyll.Web.Pandoc.Biblio.Tests failing #1002
Comments
Also on Stackage: commercialhaskell/stackage#7110 I don't have time to look into this right now, but if anyone else does: see if Pandoc's bibtex code changed recently. Our tests validate that the output didn't change, and it failed previously when Pandoc 3 was released. Mabe it's the same thing again. |
The tests work with pandoc 3.1.7, so it's at least a very recent change |
Thanks for the pointer! Looking at the full diff in the tests, I notice that a new HTML attribute,
The easiest path forward is to update our tests and put a lower boundary on Pandoc so the updated test can only be built with Pandoc > 3.1.7. However, this would make Hakyll unbuildable on older systems that haven't updated Pandoc yet, which seems excessively bad given it's only because of some niche attribute. Another way is to use different golden files for different Pandoc versions. We already do that for 2.x.y vs 3.x.y, we could add a third option. Not looking forward to doing that every time something in Pandoc changes though. Any more ideas? |
The third option would be to not allow pandoc 3.1.8 or later, but that's also not viable longterm. Ultimately, the issue here is that the tests are too brittle - they test too strictly that the output is what we want. But for visual stuff, that's the only option I guess. So for now, a different golden file is probably the way to go. This time it's only one test, so maybe it won't be too difficult to maintain? |
I agree that constraining pandoc (up or down) is not the way to go. The viable options are:
I have a slight preference towards (2) but only if we can make it easy enough to do this. Happy to work on this but interested to hear if @Minoru leans more towards (1) or (2). |
I prefer (2), and it's easy enough to implement with the preprocessor; I'll have a PR ready in a bit. |
* Fix Biblio tests with Pandoc 3.1.8 Fixes #1002. * Update hakyll.cabal with new golden file names
The fix is now merged and released as part of 4.16.2.0. I briefly considered making a revision to 4.16.1.0 to forbid building against newer Pandocs, but decided against it because the incompatibility only affects the tests. |
Thank you very much! I think you meant 4.16.2.0, the new release is much appreciated! |
Hi!
When trying to build
hakyll
4.16.1.0, I get the following test failures:All other ones are fine. I'm running pandoc 3.1.8
System information
OS: Arch Linux
Kernel: Linux 6.4.12-arch1-1
GHC: 9.0.2
haskell-hakyll: 4.16.1.0
haskell-pandoc: 3.1.8
The text was updated successfully, but these errors were encountered: