Re: help needed: Windows CI broken

Paul Lodge <[email protected]> Tue, 2 Jun 2026 15:45:57 +0200
Newsgroups gmane.comp.apache.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------MIwTsza4cg0Va1APwxcFLrWH
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi All,

It might be in the best interest to move forward with Vlads suggestion 
for now and update the CMAKE_MINIMUM_REQUIRED but I'd leave the 'i' 
variable unset, as it's not an optimal solution it's ok as a quick fix 
but could potentially cause headaches in the future.

I think that the Windows side of things in general (CMake, tests etc) 
need a little TLC, I don't mind looking into and taking on the task.

Best

Paul


On 02/06/2026 09:19, Vladimir Chlup wrote:
> Hello,
>
> The issue is most likely caused by the change of the default GH 
> Actions Windows image. See 
> https://github.com/actions/runner-images/issues/14017 You can try 
> using `windows-2022` instead of the current `windows-latest`. It 
> should behave as before.
>
> Alternatively, I have prepared a PR with a fix here: 
> https://github.com/apache/httpd/pull/659
>
> Regards,
> Vladimír Chlup
>
>
> On Mon, Jun 1, 2026 at 6:45 PM Jeff McKenna 
> <[email protected]> wrote:
>
>     On 2026-06-01 12:53 p.m., Jeff McKenna wrote:
>     > On 2026-06-01 12:39 p.m., Joe Orton wrote:
>     >> On Mon, Jun 01, 2026 at 12:24:14PM -0300, Jeff McKenna wrote:
>     >>> On 2026-06-01 9:54 a.m., Joe Orton wrote:
>     >>>> Windows builds have been failing in CI for a while, I think
>     because of
>     >>>> some changes in the GHA images.
>     >>>>
>     >>>> I burnt some Claude tokens trying to fix the trunk to no
>     avail [1], but
>     >>>> I have zero interest in this. It will be ... frustrating...
>     if people
>     >>>> start voting against future 2.4.x rcs because Windows builds
>     are broken
>     >>>> in some way which was trivial to catch in CI and fix ahead of
>     time.
>     >>>>
>     >>>> Example trunk failure: https://github.com/apache/httpd/actions/
>     >>>> runs/25912053842/job/76159381743
>     >>>>
>     >>>> 2.4.x failure is "simpler" because of the cmake version mismatch:
>     >>>> https://github.com/apache/httpd/actions/runs/25488877019/
>     >>>> job/74791446628
>     >>>> but working around that as suggested did not help.
>     >>>>
>     >>>> Regards, Joe
>     >>>>
>     >>>> [1] https://github.com/notroj/httpd/tree/refs/heads/maybe-fix-
>     >>>> windows-ci
>     >>>
>     >>> Branch 2.4.x needs this change to be backported:
>     https://github.com/
>     >>> apache/httpd/commit/08138ac986851217ff8f03b495d12ceca9051e24
>     >>
>     >> Does that definitely work? I tried
>     -DCMAKE_POLICY_VERSION_MINIMUM=3.5
>     >> and it failed:
>     >>
>     https://github.com/apache/httpd/actions/runs/26754488163/job/78850661003
>     >
>     > Ah!  I didn't notice that attempt.  To answer your question: yes
>     that
>     > CMake change that I made works.  The run that you pointed to you
>     here
>     > makes it past that (thanks to that fix) and now breaks on a
>     different
>     > issue.
>     >
>     > I had made a change locally to avoid that error: Unexpected
>     enablement
>     > value "i" for mod_authnz_ldap
>     >
>     > But I wasn't proud of my workaround, and now I realize that I
>     should
>     > create a pull request for my workaround for that "i" error (if I
>     > remember, I had to "unset(i)" outside of a for loop, to avoid that
>     > error.  Will file a new pull request now (to the 2.4.x branch,
>     if you
>     > already applied the other fix that I mentioned).
>     >
>     >>
>     >>> PS. Suggest to use the Backport action in the httpd repo (we
>     use this
>     >>> and it
>     >>> works beautifully https://github.com/MapServer/MapServer/blob/
>     >>> main/.github/workflows/backport.yml
>     >>> )
>     >>
>     >> Sounds useful.... with writeable git ;)
>     >>
>     >>> Regarding trunk, there seems to be many changes in trunk that
>     break the
>     >>> Windows MSVC compiler, it would take me a while to go through
>     all of
>     >>> those
>     >>> changes (hmm I wonder why those changes made it through your CI
>     >>> tests / why
>     >>> they were merged before fixing the tests in Windows - as now
>     it seems
>     >>> like a
>     >>> mountain of fixes are needed)
>     >>
>     >> I don't know or care about either cmake or Windows, so I don't
>     have much
>     >> invested in this. The Windows CI started failing in early May
>     and I'm
>     >> pretty sure it was not the relevant commit to trunk which triggered
>     >> that, but an image change:
>     >>
>     >> https://github.com/apache/httpd/actions/workflows/windows.yml?
>     >> query=branch%3Atrunk
>     >>
>     >> Regards, Joe
>     >>
>
>     New pull request (into branch 2.4.x) :
>     https://github.com/apache/httpd/pull/657
>
>     (backports earlier change, and also tackles the error :
>          Unexpected enablement value "i" for mod_authnz_ldap
>
>
>     thanks,
>
>     -jeff
>
>
>
>     -- 
>     Jeff McKenna
>     GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
>     co-founder of FOSS4G
>     http://gatewaygeo.com/
>
--------------MIwTsza4cg0Va1APwxcFLrWH
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi All,</p>
    <p>It might be in the best interest to move forward with Vlads
      suggestion for now and update the CMAKE_MINIMUM_REQUIRED but I'd
      leave the 'i' variable unset, as it's not an optimal solution it's
      ok as a quick fix but could potentially<span
class="module--definitions__pronunciation js-definitions-pronunciation"></span> cause
      headaches in the future.</p>
    <p>I think that the Windows side of things in general (CMake, tests
      etc) need a little TLC, I don't mind looking into and taking on
      the task.</p>
    <p>Best</p>
    <p>Paul</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 02/06/2026 09:19, Vladimir Chlup
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACQs4iy1ALthtYiU40-G53dMY7z8e5LMbWEC8cA9uKUr2ycO9Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        <div>The issue is most likely caused by the change of the
          default GH Actions Windows image. See <a
            href="https://github.com/actions/runner-images/issues/14017"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/actions/runner-images/issues/14017</a>
          You can try using `windows-2022` instead of the current
          `windows-latest`. It should behave as before.</div>
        <div><br>
        </div>
        <div>Alternatively, I have prepared a PR with a fix here: <a
            href="https://github.com/apache/httpd/pull/659"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/apache/httpd/pull/659</a></div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Vladimír Chlup</div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote gmail_quote_container">
        <div dir="ltr" class="gmail_attr">On Mon, Jun 1, 2026 at 6:45 PM
          Jeff McKenna &lt;<a
            href="mailto:[email protected]"
            moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>&gt;
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On
          2026-06-01 12:53 p.m., Jeff McKenna wrote:<br>
          &gt; On 2026-06-01 12:39 p.m., Joe Orton wrote:<br>
          &gt;&gt; On Mon, Jun 01, 2026 at 12:24:14PM -0300, Jeff
          McKenna wrote:<br>
          &gt;&gt;&gt; On 2026-06-01 9:54 a.m., Joe Orton wrote:<br>
          &gt;&gt;&gt;&gt; Windows builds have been failing in CI for a
          while, I think because of<br>
          &gt;&gt;&gt;&gt; some changes in the GHA images.<br>
          &gt;&gt;&gt;&gt;<br>
          &gt;&gt;&gt;&gt; I burnt some Claude tokens trying to fix the
          trunk to no avail [1], but<br>
          &gt;&gt;&gt;&gt; I have zero interest in this. It will be ...
          frustrating... if people<br>
          &gt;&gt;&gt;&gt; start voting against future 2.4.x rcs because
          Windows builds are broken<br>
          &gt;&gt;&gt;&gt; in some way which was trivial to catch in CI
          and fix ahead of time.<br>
          &gt;&gt;&gt;&gt;<br>
          &gt;&gt;&gt;&gt; Example trunk failure: <a
            href="https://github.com/apache/httpd/actions/"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/apache/httpd/actions/</a>
          <br>
          &gt;&gt;&gt;&gt; runs/25912053842/job/76159381743<br>
          &gt;&gt;&gt;&gt;<br>
          &gt;&gt;&gt;&gt; 2.4.x failure is "simpler" because of the
          cmake version mismatch:<br>
          &gt;&gt;&gt;&gt; <a
href="https://github.com/apache/httpd/actions/runs/25488877019/"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/apache/httpd/actions/runs/25488877019/</a>
          <br>
          &gt;&gt;&gt;&gt; job/74791446628<br>
          &gt;&gt;&gt;&gt; but working around that as suggested did not
          help.<br>
          &gt;&gt;&gt;&gt;<br>
          &gt;&gt;&gt;&gt; Regards, Joe<br>
          &gt;&gt;&gt;&gt;<br>
          &gt;&gt;&gt;&gt; [1] <a
href="https://github.com/notroj/httpd/tree/refs/heads/maybe-fix-"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/notroj/httpd/tree/refs/heads/maybe-fix-</a>
          <br>
          &gt;&gt;&gt;&gt; windows-ci<br>
          &gt;&gt;&gt;<br>
          &gt;&gt;&gt; Branch 2.4.x needs this change to be backported:
          <a href="https://github.com/" rel="noreferrer" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/</a>
          <br>
          &gt;&gt;&gt;
          apache/httpd/commit/08138ac986851217ff8f03b495d12ceca9051e24<br>
          &gt;&gt;<br>
          &gt;&gt; Does that definitely work? I tried
          -DCMAKE_POLICY_VERSION_MINIMUM=3.5<br>
          &gt;&gt; and it failed:<br>
          &gt;&gt; <a
href="https://github.com/apache/httpd/actions/runs/26754488163/job/78850661003"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/apache/httpd/actions/runs/26754488163/job/78850661003</a><br>
          &gt; <br>
          &gt; Ah!  I didn't notice that attempt.  To answer your
          question: yes that <br>
          &gt; CMake change that I made works.  The run that you pointed
          to you here <br>
          &gt; makes it past that (thanks to that fix) and now breaks on
          a different <br>
          &gt; issue.<br>
          &gt; <br>
          &gt; I had made a change locally to avoid that error:
          Unexpected enablement <br>
          &gt; value "i" for mod_authnz_ldap<br>
          &gt; <br>
          &gt; But I wasn't proud of my workaround, and now I realize
          that I should <br>
          &gt; create a pull request for my workaround for that "i"
          error (if I <br>
          &gt; remember, I had to "unset(i)" outside of a for loop, to
          avoid that <br>
          &gt; error.  Will file a new pull request now (to the 2.4.x
          branch, if you <br>
          &gt; already applied the other fix that I mentioned).<br>
          &gt; <br>
          &gt;&gt;<br>
          &gt;&gt;&gt; PS. Suggest to use the Backport action in the
          httpd repo (we use this <br>
          &gt;&gt;&gt; and it<br>
          &gt;&gt;&gt; works beautifully <a
            href="https://github.com/MapServer/MapServer/blob/"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/MapServer/MapServer/blob/</a>
          <br>
          &gt;&gt;&gt; main/.github/workflows/backport.yml<br>
          &gt;&gt;&gt; )<br>
          &gt;&gt;<br>
          &gt;&gt; Sounds useful.... with writeable git ;)<br>
          &gt;&gt;<br>
          &gt;&gt;&gt; Regarding trunk, there seems to be many changes
          in trunk that break the<br>
          &gt;&gt;&gt; Windows MSVC compiler, it would take me a while
          to go through all of <br>
          &gt;&gt;&gt; those<br>
          &gt;&gt;&gt; changes (hmm I wonder why those changes made it
          through your CI <br>
          &gt;&gt;&gt; tests / why<br>
          &gt;&gt;&gt; they were merged before fixing the tests in
          Windows - as now it seems <br>
          &gt;&gt;&gt; like a<br>
          &gt;&gt;&gt; mountain of fixes are needed)<br>
          &gt;&gt;<br>
          &gt;&gt; I don't know or care about either cmake or Windows,
          so I don't have much<br>
          &gt;&gt; invested in this. The Windows CI started failing in
          early May and I'm<br>
          &gt;&gt; pretty sure it was not the relevant commit to trunk
          which triggered<br>
          &gt;&gt; that, but an image change:<br>
          &gt;&gt;<br>
          &gt;&gt; <a
href="https://github.com/apache/httpd/actions/workflows/windows.yml"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/apache/httpd/actions/workflows/windows.yml</a>?
          <br>
          &gt;&gt; query=branch%3Atrunk<br>
          &gt;&gt;<br>
          &gt;&gt; Regards, Joe<br>
          &gt;&gt;<br>
          <br>
          New pull request (into branch 2.4.x) : <br>
          <a href="https://github.com/apache/httpd/pull/657"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/apache/httpd/pull/657</a><br>
          <br>
          (backports earlier change, and also tackles the error :<br>
               Unexpected enablement value "i" for mod_authnz_ldap<br>
          <br>
          <br>
          thanks,<br>
          <br>
          -jeff<br>
          <br>
          <br>
          <br>
          -- <br>
          Jeff McKenna<br>
          GatewayGeo: Developers of MS4W, &amp; offering MapServer
          Consulting/Dev<br>
          co-founder of FOSS4G<br>
          <a href="http://gatewaygeo.com/" rel="noreferrer"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">http://gatewaygeo.com/</a><br>
          <br>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>

--------------MIwTsza4cg0Va1APwxcFLrWH--