All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: git@vger.kernel.org, "SZEDER Gábor" <szeder.dev@gmail.com>
Subject: Re: ab/only-single-progress-at-once
Date: Sun, 12 Dec 2021 20:44:17 -0800	[thread overview]
Message-ID: <xmqqmtl5gllq.fsf@gitster.g> (raw)
In-Reply-To: 211212.86sfuxac8c.gmgdl@evledraar.gmail.com

Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:

> On Fri, Dec 10 2021, Junio C Hamano wrote:
>
>> * ab/only-single-progress-at-once (2021-11-03) 8 commits
>>  - progress.c: add & assert a "global_progress" variable
>>  - various *.c: use isatty(0|2), not isatty(STDIN_FILENO|STDERR_FILENO)
>>  - pack-bitmap-write.c: don't return without stop_progress()
>>  - progress.c: add temporary variable from progress struct
>>  - progress.c tests: test some invalid usage
>>  - progress.c tests: make start/stop commands on stdin
>>  - progress.c test helper: add missing braces
>>  - leak tests: fix a memory leaks in "test-progress" helper
>>
>>  Further tweaks on progress API.
>>
>>  Needs review.
>>  The last three rounds has seen little reaction, even though earlier
>>  round saw a lot of responses. The latest round needs a serious
>>  review or at least Acks from past commentors.
>>  source: <cover-v6-0.8-00000000000-20211102T122507Z-avarab@gmail.com>
>
> I think less in "needs review" and more in needing a tiebreaker and/or
> reply to my [1]. I.e. the ongoing discussion SZEDER and I have had about
> the relative danger of adding this BUG() to this part of the code.

I thought the BUG() thing has been already settled a few iteration
ago, but now you bring it up back, I read that part again.

In code that is directly about the correctness of the feature, I do
agree with the statement you made (paraphrasing---use of BUG() is
appropriate when we see a condition that should never trigger or our
code is buggy and not behaving the way we intended, and it is better
to stop before spreading the damage and eating user's data), but eye
candy like progress bars, I do not think it is end-user friendly to
kill the operation they started.  Of course, when they report a bug,
we may be able to say "please run with --no-progress to work it
around in the meantime" after thanking them for reporting, so it may
not be such a big deal either way.

> Which is fair enough, but I'd think a good way forward with it would be
> to give it wider exposure during this cycle. If it's triggered somehow
> it's trivial to amend/revert the tip commit to remove the assertion.
>
> If we merge it down I promise I'll (and try to remember to, putting it
> in my calendar if so...) start some discussion before the next release
> about whether we'll want to cut the release with that BUG(), which if we
> don't trigger it by then we'll probably feel confident about keeping.
>
> Does that sound like a good way forward? Otherwise the "one alternative
> way forward[...]" mentioned in [1] is something we could do.

I'm OK with marking it as "will cook in 'next'" to keep it longer
than usual, but I do not think merging down iffy code to 'next' or
even 'master' will give us better chance to expose the issue.  You
will not get a real-user feedback until it hits a release, which is
unfortunately way too late X-<.


  reply	other threads:[~2021-12-13  4:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-11  2:52 What's cooking in git.git (Dec 2021, #03; Fri, 10) Junio C Hamano
2021-12-11  3:44 ` ns/batched-fsync and ns/remerge-diff Neeraj Singh
2021-12-11  6:38   ` Elijah Newren
2021-12-11  8:39 ` What's cooking in git.git (Dec 2021, #03; Fri, 10) Eric Sunshine
2021-12-13 19:08   ` Junio C Hamano
2021-12-11 10:49 ` Elijah Newren
2021-12-13 18:28   ` Junio C Hamano
2021-12-15 18:47   ` Junio C Hamano
2021-12-11 22:09 ` tb/midx-bitmap-corruption-fix Taylor Blau
2021-12-15 18:47   ` tb/midx-bitmap-corruption-fix Junio C Hamano
2021-12-12 18:37 ` ab/common-main-cleanup (was: What's cooking in git.git (Dec 2021, #03; Fri, 10)) Ævar Arnfjörð Bjarmason
2021-12-12 18:41 ` ab/only-single-progress-at-once " Ævar Arnfjörð Bjarmason
2021-12-13  4:44   ` Junio C Hamano [this message]
2021-12-12 22:42 ` ms/customizable-ident-expansion " Ævar Arnfjörð Bjarmason
2021-12-13  9:02   ` ms/customizable-ident-expansion Junio C Hamano
2021-12-13 15:32 ` What's cooking in git.git (Dec 2021, #03; Fri, 10) Jeff Hostetler
2021-12-13 15:39 ` Jeff Hostetler
2021-12-14 10:59 ` 'Re: What's cooking in git.git (Dec 2021, #03; Fri, 10)' Teng Long
2021-12-15 18:53   ` Junio C Hamano
2021-12-15 11:10 ` What's cooking in git.git (Dec 2021, #03; Fri, 10) Phillip Wood
2021-12-15 18:54   ` Junio C Hamano

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=xmqqmtl5gllq.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=szeder.dev@gmail.com \
    /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.
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.