Repository navigation
Description
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) andTimeout(90 s), macOS.WebView2Lifecycle-repeated-show:Failedafter 2.2 s, Windows.WebFrontDistribution:Timeoutafter 125 s.JourneyEmbeddedRun:Timeoutafter 60 s.AutomationMcpWindow:Failedafter 7.8 s.DeveloperBrowserIntegration-workspace:Failedafter 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
- Repair the deterministic failures: the Windows C6387 in
components/pty/Windows.hpp, andWfDriverUsagerunning without a display on Linux (run it underxvfb-run, or skip it with an explicit, reported reason). - Find the cause of the intermittent failures (macOS
WebFrontWKWebViewIntegrationsocket 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. - Make a cached build report the same warnings as a clean one (the Windows warning may have been visible only on a cache miss).
- Bring
gcc13-arm64to zero warnings, then make a new warning fail that job. - 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.
Activity
Address the review of #629 and the remaining CI failures (#628)
Check the project directory in main, not in parse (#628)
Stop a unit test from opening the real browser, report a truncated Fl…
Run the driver usage tests without Xvfb, read timed-out runs in Flake…
Give the replaced system browser opener a PATH of its own (#628)
Repair the CI failures and make the desktop jobs more reliable (#629)
WebFront 1.1.1 (#630)
Bring WebFront 1.2.0 back into develop (#661)