Patchwork [Bug,6188] New: zstd differences on big-endian (test-repo-compengines.t fails)

login
register
mail settings
Submitter mercurial-bugs@mercurial-scm.org
Date Aug. 22, 2019, 1:12 p.m.
Message ID <bug-6188-285@https.bz.mercurial-scm.org/>
Download mbox | patch
Permalink /patch/41383/
State Not Applicable
Headers show

Comments

mercurial-bugs@mercurial-scm.org - Aug. 22, 2019, 1:12 p.m.
https://bz.mercurial-scm.org/show_bug.cgi?id=6188

            Bug ID: 6188
           Summary: zstd differences on big-endian
                    (test-repo-compengines.t fails)
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla@mercurial-scm.org
          Reporter: jcristau@debian.org
                CC: mercurial-devel@mercurial-scm.org

Created attachment 2056
  --> https://bz.mercurial-scm.org/attachment.cgi?id=2056&action=edit
zstd-level-default/.hg/store/data/a.i from test-repo-compengines.t on s390x

Hi,

I'm not sure whether this is an issue with zstd itself, python-zstandard or
mercurial, so filing here.

Running test-repo-compengines.t on a big-endian host seems to fail consistently
(reproduced on mips and on s390x, with hg 5.1):


ERROR: test-repo-compengines.t output changed

Attaching the file I get on s390x.

Patch

--- /home/jcristau/mercurial/tests/test-repo-compengines.t
+++ /home/jcristau/mercurial/tests/test-repo-compengines.t.err
@@ -171,7 +171,7 @@ 
   $ $RUNTESTDIR/f -s zstd-*/.hg/store/data/*
   zstd-level-1/.hg/store/data/a.i: size=4097
   zstd-level-22/.hg/store/data/a.i: size=4091
-  zstd-level-default/.hg/store/data/a.i: size=4094
+  zstd-level-default/.hg/store/data/a.i: size=4102

 Test error cases