Skip to content
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

yaml-0.8.22 test suite failures #106

Closed
peti opened this issue Feb 28, 2017 · 8 comments
Closed

yaml-0.8.22 test suite failures #106

peti opened this issue Feb 28, 2017 · 8 comments

Comments

@peti
Copy link

peti commented Feb 28, 2017

Citing from http://hydra.nixos.org/build/49412471/nixlog/1/raw:

  test/Data/YamlSpec.hs:453: 
  1) Data.Yaml.numbers integers have no decimals
       expected: "1\n"
        but got: "1\n...\n"
@snoyberg
Copy link
Owner

It's due to an upgrade within the yaml package to the most recent version of the libyaml library. Nix is probably not using the latest code, which includes a bugfix to remove the extraneous ...\n.

@peti
Copy link
Author

peti commented Feb 28, 2017

We are using version 0.1.7, which seems to be the latest version at http://pyyaml.org/download/libyaml/. Is there a newer one?

@snoyberg
Copy link
Owner

snoyberg commented Feb 28, 2017 via email

@peti
Copy link
Author

peti commented Feb 28, 2017

So, basically, you're making it impossible to use this code with any released version of libyaml.

@snoyberg
Copy link
Owner

snoyberg commented Feb 28, 2017 via email

@peti
Copy link
Author

peti commented Feb 28, 2017

Man, if you would have actually engaged in an educated technical discussion that weighs the respective advantages and disadvantages of your choice against each other and displays some insight into the apparent conflicting interests at play here, then my head would probably have exploded.

Repository owner locked and limited conversation to collaborators Feb 28, 2017
Repository owner unlocked this conversation Feb 28, 2017
@snoyberg
Copy link
Owner

Your statement was objectively false, the yaml package continues to work with older library versions. I have no intention of wasting time arguing against objectively false statements. There are plenty of trade-offs here worth considering, but you've made me completely uninterested in engaging in that with you. I've spent about 15 minutes more on this issue than I wish I had. Consider finding a way in the future to comment on issues without making me sorry I even opened the email.

@peti
Copy link
Author

peti commented Feb 28, 2017

Well, I cannot tell whether yaml works reliably with older releases of libyaml or not. All I can tell is that the test suite fails consistently, which one would generally assume to be indicative of an interoperability problem, no? If the library works fine with libyaml 0.1.7, then IMHO it would be great of the test suite would succeed, too. As it is now, I can choose two between 2 courses of action going forward in Nixpkgs:

  1. Build with -fsystem but disable the test suite. This sucks from a maintenance point of view, because no-one is going to remember to re-enable that test suite if a new libyaml version comes out, so we're quite likely to be ending up distributing untested code.

  2. Build with -f-system, which sucks too, because now the yaml package duplicates a system resource for no obvious reason, which means it might miss out on security relevant bug fixes, etc., that would otherwise have made it into the build transparently.

From my point of view as a distributor, your choice to bundle a random git version of libyaml and to make your test suite depend on that particular version is awkward, at best.

peti added a commit to peti/nixpkgs that referenced this issue Mar 2, 2017
It looks like the yaml package bundles an unreleased version of libyaml and
relies on particulars of that versions behavior. Therefore, the package no
longer works with the official libyaml 0.1.7 release, which is what we have.

snoyberg/yaml#106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants