git/list[1] front-page[2] threads[3] people[4] search[5] about
 

ab/only-single-progress-at-once (was: What's cooking in git.git (Dec 2021, #03; Fri, 10))

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Dec 12, 2021, 18:41 UTC
Message-ID
<211212.86sfuxac8c.gmgdl@evledraar.gmail.com>
In-Reply-To
<xmqqilvvluoa.fsf@gitster.g>
On Fri, Dec 10 2021, Junio C Hamano wrote:
Show 17 quoted lines
> * 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 think the best thing to do is just to merge it to "next".

Maybe I'm wrong about the BUG() not triggering in a way that someone will spot if we expose this more widely.

But we've been having some version of that discussion for the past few months without any any new specifics about *how* it might be raised, just (I think it's fair to say) general paranoia that it might happen somehow/somewhere.

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.

1. https://lore.kernel.org/git/211203.868rx2t0hv.gmgdl@evledraar.gmail.com/
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 12 of 21 in “What's cooking in git.git (Dec 2021, #03; Fri, 10)”
  1. Junio C HamanoDec 11, 2021
  2. ns/batched-fsync and ns/remerge-diffNeeraj Singh, Dec 11, 2021
  3. Elijah NewrenDec 11, 2021
  4. Eric SunshineDec 11, 2021
  5. Junio C HamanoDec 13, 2021
  6. Elijah NewrenDec 11, 2021
  7. Junio C HamanoDec 13, 2021
  8. Junio C HamanoDec 15, 2021
  9. tb/midx-bitmap-corruption-fixTaylor Blau, Dec 11, 2021
  10. Junio C HamanoDec 15, 2021
  11. ab/common-main-cleanup (was: What's cooking in git.git (Dec 2021, #03; Fri, 10))Ævar Arnfjörð Bjarmason, Dec 12, 2021
  12. ab/only-single-progress-at-once (was: What's cooking in git.git (Dec 2021, #03; Fri, 10))Ævar Arnfjörð Bjarmason, Dec 12, 2021
  13. Junio C HamanoDec 13, 2021
  14. ms/customizable-ident-expansion (was: What's cooking in git.git (Dec 2021, #03; Fri, 10))Ævar Arnfjörð Bjarmason, Dec 12, 2021
  15. Junio C HamanoDec 13, 2021
  16. Jeff HostetlerDec 13, 2021
  17. Jeff HostetlerDec 13, 2021
  18. 'Re: What's cooking in git.git (Dec 2021, #03; Fri, 10)'Teng Long, Dec 14, 2021
  19. Junio C HamanoDec 15, 2021
  20. Phillip WoodDec 15, 2021
  21. Junio C HamanoDec 15, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.