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

Re: [PATCH v2] ci(win+Meson): build in Release mode

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 5, 2025, 07:27 UTC
Message-ID
<5e2fdccc-2c52-805f-ff9c-b9e0e72614ac@gmx.de>
In-Reply-To
<aBhVWMabOFYRUjvD@pks.im>
Hi Patrick,
On Mon, 5 May 2025, Patrick Steinhardt wrote:
Show 14 quoted lines
> On Sat, May 03, 2025 at 02:25:46PM +0000, Johannes Schindelin via GitGitGadget wrote:
> > From: Johannes Schindelin <johannes.schindelin@gmx.de>
> >     Changes since v1:
> >     
> >      * Rewrote the commit message to reflect that this patch is still
> >        needed, even if the symptom that originally motivated the patch was
> >        addressed in a different manner, because it was merely a symptom of
> >        the underlying root cause that CI builds should not let Visual C
> >        build Git in debug mode.
> 
> Ok, makes sense. I think we should ideally address this issue
> strategically, e.g. by getting rid of asserts completely in our
> codebase. But for now I agree that we should just build Git in release
> mode on Windows.

I am afraid that getting rid of asserts in Git's codebase won't ever be able to address the challenge that Git -- despite much reluctance -- relies on a couple of external dependencies that might at any point in time cause `assert()` to be called, e.g. due to unexpected changes in the CI runner images.

In essence, we will need both: CI builds in release mode _and_ converting `assert()`s to `BUG()` calls (the latter, however, for different reasons than to proactively address CI hangs: Git can convey better information in `BUG()` calls than in `assert()` calls).

There are more reasons to use release mode builds in CI, too, but we already have a compelling reason to do so, therefore there is no need for me to spend more time assembling an exhaustive list.

Ciao, Johannes

Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 12 of 17 in “ci(win+Meson): build in Release mode, avoiding t7001-mv hangs”
  1. ci(win+Meson): build in Release mode, avoiding t7001-mv hangsJohannes Schindelin via GitGitGadget, Apr 25, 2025
  2. Junio C HamanoApr 25, 2025
  3. Patrick SteinhardtApr 28, 2025
  4. Junio C HamanoApr 28, 2025
  5. Patrick SteinhardtApr 29, 2025
  6. Junio C HamanoApr 29, 2025
  7. Patrick SteinhardtApr 30, 2025
  8. Patrick SteinhardtApr 30, 2025
  9. Kristoffer HaugsbakkApr 29, 2025
  10. ci(win+Meson): build in Release modeJohannes Schindelin via GitGitGadget, May 3, 2025
  11. Patrick SteinhardtMay 5, 2025
  12. Johannes SchindelinMay 5, 2025
  13. Patrick SteinhardtMay 5, 2025
  14. Junio C HamanoMay 5, 2025
  15. Patrick SteinhardtMay 6, 2025
  16. Johannes SchindelinMay 6, 2025
  17. Junio C HamanoMay 8, 2025

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.