From: Marius Bakke <mbakke@fastmail.com>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>, 28966@debbugs.gnu.org
Subject: bug#28966: git fails test suite
Date: Wed, 01 Nov 2017 21:22:44 +0100 [thread overview]
Message-ID: <87k1z94uln.fsf@fastmail.com> (raw)
In-Reply-To: <idjy3o0vdrk.fsf@bimsb-sys02.mdc-berlin.net>
[-- Attachment #1.1: Type: text/plain, Size: 1788 bytes --]
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:
> As of 62d48234e20c732ebefc1b4deb425f590b4241ca git fails at least one of
> its tests on my servers:
>
> --8<---------------cut here---------------start------------->8---
> not ok 185 - --contains and --no-contains work in a deep repo
> #
> # >expect &&
> # i=1 &&
> # while test $i -lt 8000
> # do
> # echo "commit refs/heads/master
> # committer A U Thor <author@example.com> $((1000000000 + $i * 100)) +0200
> # data <<EOF
> # commit #$i
> # EOF"
> # test $i = 1 && echo "from refs/heads/master^0"
> # i=$(($i + 1))
> # done | git fast-import &&
> # git checkout master &&
> # git tag far-far-away HEAD^ &&
> # run_with_limited_stack git tag --contains HEAD >actual &&
> # test_cmp expect actual &&
> # run_with_limited_stack git tag --no-contains HEAD >actual &&
> # test_line_count "-gt" 10 actual
> #
> --8<---------------cut here---------------end--------------->8---
>
> The server has 1.5TB RAM and 192 cores. I’ve tried to build git about 5
> times; some of these times I used “--cores=1” to force a sequential
> build, but the tests would still fail.
I wonder if this has anything to do with the fact that this test (and
one other) limits the stack size to 128 kB (ulimit -s). FWIW here is
the commit that added this test:
https://github.com/git/git/commit/cbc60b67201e083a4970c8731c5382a575357e36
It has since been increased from 64kB to 128kB, so I wonder if the
attached patch will make any difference. Can you try it?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-git-Increase-stack-size-for-tests.patch --]
[-- Type: text/x-patch, Size: 1373 bytes --]
From f95ae3d32e5eab9797cb1591cca07c4d31f187ab Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@fastmail.com>
Date: Wed, 1 Nov 2017 21:11:29 +0100
Subject: [PATCH] gnu: git: Increase stack size for tests.
* gnu/packages/version-control.scm (git)[arguments]: Add substitution in
'patch-tests' phase.
---
gnu/packages/version-control.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index af880c29f..9059284ed 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -216,6 +216,12 @@ as well as the classic centralized workflow.")
;; Many tests contain inline shell scripts (hooks etc).
(substitute* (find-files "t" "\\.sh$")
(("#!/bin/sh") (string-append "#!" (which "sh"))))
+ ;; XXX: Some tests run with a limited stack size, but it may
+ ;; be too small for very large machines (1TB+). See
+ ;; <https://bugs.gnu.org/28966>.
+ (substitute* "t/test-lib.sh"
+ (("\\(ulimit -s 128")
+ "(ulimit -s 256"))
;; Un-do shebang patching here to prevent checksum mismatch.
(substitute* '("t/t4034/perl/pre" "t/t4034/perl/post")
(("^#!.*/bin/perl") "#!/usr/bin/perl"))
--
2.14.3
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-11-01 20:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-24 14:09 bug#28966: git fails test suite Ricardo Wurmus
2017-10-24 21:20 ` Marius Bakke
2017-11-01 20:22 ` Marius Bakke [this message]
2020-02-11 0:45 ` bug#28966: Hunting: " zimoun
2020-03-21 20:34 ` Marius Bakke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1z94uln.fsf@fastmail.com \
--to=mbakke@fastmail.com \
--cc=28966@debbugs.gnu.org \
--cc=ricardo.wurmus@mdc-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.