#972457 FTBFS - not ok 3 - progress display breaks long lines #1

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Bastian Blank
Date:
2021-02-08 16:57:03 UTC
Severity:
important
#972457#5
Date:
2020-10-18 18:46:22 UTC
From:
To:
A rebuild of git 1:2.28.0-1 reports test failures and FTBFS on both unstable
and stable.

| expecting success of 0500.3 'progress display breaks long lines #1':
|         sed -e "s/Z$//" >expect <<\EOF &&
| Working hard.......2.........3.........4.........5.........6:   0% (100/100000)<CR>
| Working hard.......2.........3.........4.........5.........6:   1% (1000/100000)<CR>
| Working hard.......2.........3.........4.........5.........6:                   Z
|    10% (10000/100000)<CR>
|   100% (100000/100000)<CR>
|   100% (100000/100000), done.
| EOF
|
|         cat >in <<-\EOF &&
|         progress 100
|         progress 1000
|         progress 10000
|         progress 100000
|         EOF
|         test-tool progress --total=100000 \
|                 "Working hard.......2.........3.........4.........5.........6" \
|                 <in 2>stderr &&
|
|         show_cr <stderr >out &&
|         test_i18ncmp expect out
|
| --- expect      2020-10-18 18:39:17.784594270 +0000
| +++ out 2020-10-18 18:39:17.788594291 +0000
| @@ -1,6 +1,6 @@                                                                                                         -Working hard.......2.........3.........4.........5.........6:   0% (100/100000)<CR>                                    -Working hard.......2.........3.........4.........5.........6:   1% (1000/100000)<CR>                                   -Working hard.......2.........3.........4.........5.........6:
| +Working hard.......2.........3.........4.........5.........6:                                                          +    0% (100/100000)<CR>                                                                                                +    1% (1000/100000)<CR>
|     10% (10000/100000)<CR>                                                                                                 100% (100000/100000)<CR>
|    100% (100000/100000), done.
| not ok 3 - progress display breaks long lines #1                                                                        #
| #               sed -e "s/Z$//" >expect <<\EOF &&                                                                       #       Working hard.......2.........3.........4.........5.........6:   0% (100/100000)<CR>                             #       Working hard.......2.........3.........4.........5.........6:   1% (1000/100000)<CR>
| #       Working hard.......2.........3.........4.........5.........6:                   Z                               #          10% (10000/100000)<CR>
| #         100% (100000/100000)<CR>                                                                                      #         100% (100000/100000), done.
| #       EOF                                                                                                             #
| #               cat >in <<-\EOF &&                                                                                      #               progress 100
| #               progress 1000
| #               progress 10000
| #               progress 100000
| #               EOF
| #               test-tool progress --total=100000 \
| #                       "Working hard.......2.........3.........4.........5.........6" \
| #                       <in 2>stderr &&
| #
| #               show_cr <stderr >out &&
| #               test_i18ncmp expect out
| #

#972457#12
Date:
2021-02-08 09:12:14 UTC
From:
To:
Hi Bastian,

I tried a rebuild of git 1:2.28.0-1, 1:2.29.2-1 and 1:2.30.0-1 in an unstable
chroot on barriere.debian.org, and they all succeeded. It also seems the
builds on the buildds succeeded for all the versions recently uploaded.

Can you still reproduce this issue? And are you able to reproduce it on a
porterbox?

Cheers,

Ivo

#972457#19
Date:
2021-02-08 13:22:31 UTC
From:
To:
Hi Ivo

The problem only shows if
- the tests run in verbose mode and
- the tests directly write output to a terminal.

In this case the tested git command reads the size of the output and
adjustd itself.  Also in this case the test output is colored.

So plain dpkg-buildpackage is affected, but buildds are not as they
redirect anything to a file.

I can't any longer.  Somewhere there showed up a "make -O", which forces
all calls to run with output redirected to a file.  So it works around
the problem right now.

Bastian

#972457#24
Date:
2021-02-08 16:55:47 UTC
From:
To:
Hi Bastian,

Thanks for the clarification.

OK. As the package builds fine, I'm downgrading the bug.

Cheers,

Ivo