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 6, 2025, 08:32 UTC
Message-ID
<3952ab1e-dc67-c47b-a86b-88b0e8886755@gmx.de>
In-Reply-To
<aBnA3KNOfAo9EbpS@pks.im>
Hi Patrick,
On Tue, 6 May 2025, Patrick Steinhardt wrote:
Show 45 quoted lines
> On Mon, May 05, 2025 at 08:54:23AM -0700, Junio C Hamano wrote:
> > Patrick Steinhardt <ps@pks.im> writes:
> > 
> > >> 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.
> > >
> > > Good point indeed, I haven't considered this.
> > 
> > Thanks both for a discussion.  Let's replace and queue this, and
> > fast track it down to 'maint'.
> > 
> > Here is a range-diff for my tentative rebasing the patch on 'maint';
> > I'll make sure merging it up to 'master' would match exactly the
> > result of applying the original patch directly to 'master' before
> > queuing.
> > 
> > Thanks!
> > 
> > 
> > 1:  f3ae94b175 ! 1:  184abdcf05 ci(win+Meson): build in Release mode
> >     @@ Commit message
> >          patch is still needed.
> >      
> >          Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> >     +    Acked-by: Patrick Steinhardt <ps@pks.im>
> >     +    [jc: rebased on 'maint' to enable fast-tracking the change down]
> >          Signed-off-by: Junio C Hamano <gitster@pobox.com>
> >      
> >       ## .github/workflows/main.yml ##
> >     @@ .github/workflows/main.yml: jobs:
> >             run: pip install meson ninja
> >           - name: Setup
> >             shell: pwsh
> >     --      run: meson setup build --vsenv -Dperl=disabled -Dcredential_helpers=wincred
> >     -+      run: meson setup build --vsenv -Dbuildtype=release -Dperl=disabled -Dcredential_helpers=wincred
> >     +-      run: meson setup build -Dperl=disabled -Dcredential_helpers=wincred
> >     ++      run: meson setup build -Dbuildtype=release -Dperl=disabled -Dcredential_helpers=wincred
> >           - name: Compile
> >             shell: pwsh
> >             run: meson compile -C build
> 
> Am I reading this diff correctly that we drop the `--vsenv` flag?
That's similar to my reading as well, but...
> I think we should keep it around as it was a bug in the first place that
> we didn't have it.
Correct.
> I guess this is done because we didn't have the flag in "maint" yet.

... I think this is the reason. It would probably make more sense to backport the `--vsenv` patch first, seeing as having `win+Meson` without that flag defeats the purpose of `win+Meson`.

Show 6 quoted lines
> But I'm not even sure whether the fix would be needed in case we don't
> build with Visual Studio, as the MinGW toolchain probably doesn't have
> the same behaviour with asserts (but please correct me if I'm wrong,
> Dscho). So maybe we should also cherry-pick 85e1d6819fb (ci: use Visual
> Studio for win+meson job on GitHub Workflows, 2025-03-31) at the same
> time.

Indeed. If we keep both bugs unfixed in `maint` (the bug that `win+Meson` does not build with Visual Studio, plus the bug that `win+Meson` builds in Debug mode), the CI will continue to pass... just not for the intended reasons.

Ciao, Johannes

Previous: Patrick SteinhardtNext: Junio C Hamano
Message 16 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.