Skip to content

Repair the CI failures, make the desktop jobs reliable and remove the gcc13-arm64 warnings #628

Closed

Description

@ambroise-leclerc

Context

The release PR #627 (WebFront 1.1.0, release/1.1.0 into master) has three red desktop jobs although the same tree passed on #624 and #625. Over the last two days of Build and Test runs, the same jobs also fail intermittently on unrelated branches, and the gcc13-arm64 job passes with 107 warnings. This issue collects the evidence so that the CI can be repaired, made reliable, and kept free of warnings.

Nothing below was re-run: every observation comes from the logs of existing runs.

1. Failures of the release PR #627 (run 44721438674)

Job Step Failure
desktop-native (windows-msvc-webview2) (job 136237905038) Build PtyTests.cpp.obj and webtest's JasmineTest.cpp.obj fail with error C2220 (warning as error) on include/webfront/components/pty/Windows.hpp(118): warning C6387: 'startup.lpAttributeList' could be '0' (UpdateProcThreadAttribute, from line 92). It is a code-analysis warning in the PTY code (#613) that earlier Windows runs of the same code did not report; a cache hit (sccache) hiding it is a hypothesis to check.
desktop-native (macos-clang-wkwebview) (job 136237905027) Test WebFrontWKWebViewIntegration (#105) fails after 28 s, the only failure of 201 tests. The log shows Accept failed: set_option: Invalid argument and many Network task failed: shutdown: Socket is not connected / HTTP asset request failed lines from the server.
desktop (linux-gcc-webkitgtk) (job 136239379950) Test WfDriverUsage (#157) fails, the only failure of 201 tests: webfront-wf: WebKitGTK: cannot open a display; set DISPLAY or WAYLAND_DISPLAY ... or run under xvfb-run -a.

Passing in the same run: all portability jobs, both sanitizer jobs, both web-integration jobs (gcc, clang), wf-package and gcc13-arm64.

2. Earlier failures and instabilities (Build and Test, 19-20 November)

Failed (not cancelled) runs of the last two days and the job that failed:

Run Branch Job
44703697450 619-post-routes the three desktop jobs, step "Fast tests" (ChangelogFormat, a content error since fixed)
44701293645 619-post-routes desktop-native (macos-clang-wkwebview)
44695516461 621-http-header-whitespace desktop-native (macos-clang-wkwebview): one Jasmine spec failed (143 specs, 1 failure)
44691306795 develop (push) desktop-native (windows-msvc-webview2)
44619490186, 44605157492 608-terminal-focus desktop-native (macos-clang-wkwebview)
44616470260 608-terminal-focus desktop (linux-gcc-webkitgtk)
44518084000 611-startup-remaining desktop-native (macos-clang-wkwebview), Build
44513927658 611-startup-remaining the three desktop jobs (build errors: FontStacks.hpp(143) C2220 on Windows, FrontendLifecycle.cpp.o on macOS; a test failure on Linux)

Many more runs were cancelled (superseded pushes, manual dispatches), which hides how often a job passes on a second try.

Failing tests seen in the logs of those jobs (the timeouts suggest load- or ordering-dependent failures rather than deterministic ones):

  • WebFrontWKWebViewIntegration: Failed (28 s on WebFront 1.1.0 #627, 42 s) and Timeout (90 s), macOS.
  • WebView2Lifecycle-repeated-show: Failed after 2.2 s, Windows.
  • WebFrontDistribution: Timeout after 125 s.
  • JourneyEmbeddedRun: Timeout after 60 s.
  • AutomationMcpWindow: Failed after 7.8 s.
  • DeveloperBrowserIntegration-workspace: Failed after 28.6 s.

The repository has a TestFlakeReport case and docs/TEST_TIERS.md: the retry and flake policy should be checked against these numbers.

3. gcc13-arm64: 107 warnings in a passing job (run 44721438674, job 136237904930)

Count Warning Where
81 -Wmismatched-new-delete: stdexec::task<...>::__promise::operator delete(void*, size_t) called on a pointer returned from a mismatched allocation function include/webfront/http/HTTPServer.hpp (41), http/WebSocket.hpp (12), WebFront.hpp (6), Task.hpp, components/react/Store.hpp, the forms/dom headers, and the tests DeferredCallTests.cpp (7), JasmineTest.cpp (6), WebLinkTests.cpp, DomDocumentTests.cpp, StructuredShutdownTests.cpp, JsFunctionSenderTests.cpp
20 -Wnull-dereference in /usr/include/c++/13/streambuf libstdc++ headers, instantiated from our code
2 -Wstringop-overflow= (__builtin_memmove writing into a region of size 0) bits/stl_algobase.h
2 -Wmaybe-uninitialized bits/std_function.h
1 -Warray-bounds= (memmove offset 1 out of the bounds of a const unsigned char [1]) bits/stl_algobase.h
1 -Wsign-conversion: int to unsigned int test/unit/GzipTests.cpp

The dominant warning looks like the GCC 13 false positive on coroutine frames freed through a promise operator delete once inlined; to be confirmed, then fixed locally (a targeted pragma around the coroutine type or a different frame allocation) rather than by disabling the flag globally. The -Wsign-conversion in GzipTests.cpp is straightforward. The libstdc++ ones may need a system-header treatment or a change in the code that instantiates them.

Goal

  1. Repair the deterministic failures: the Windows C6387 in components/pty/Windows.hpp, and WfDriverUsage running without a display on Linux (run it under xvfb-run, or skip it with an explicit, reported reason).
  2. Find the cause of the intermittent failures (macOS WebFrontWKWebViewIntegration socket errors, the timeouts above, WebView2Lifecycle-repeated-show) and fix each, or give it a justified timeout and a bounded retry that the flake report records.
  3. Make a cached build report the same warnings as a clean one (the Windows warning may have been visible only on a cache miss).
  4. Bring gcc13-arm64 to zero warnings, then make a new warning fail that job.
  5. Count, per job, the reruns needed before green over a week, so that reliability can be measured.

The 1.1.0 release waits on the three jobs of section 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions