Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
description: 'Also run the CEF linuxarm64 browser integration (GCC 13)'
type: boolean
default: false
webkitgtk_arm64:
description: 'Also run the WebKitGTK aarch64 browser integration (GCC 13)'
type: boolean
default: false
repeat_desktop_tests:
description: 'Also run the desktop matrix, repeating the complete CTest suite desktop_passes times'
type: boolean
Expand Down Expand Up @@ -473,6 +477,65 @@ jobs:
build-cef/Testing/Temporary/LastTest.log
if-no-files-found: ignore

# WebKitGTK 6.0 on Linux aarch64 (#524): the system WebKitGTK of Ubuntu 24.04 with GCC 13 and Xvfb, running the same
# web-integration suite as the CEF job through the WebKitGTK frontend. Weekly and on demand with webkitgtk_arm64, not on
# pull requests, like the CEF job; the sandbox opt-out is confined to this test step and its trusted fixtures.
webkitgtk-arm64:
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.webkitgtk_arm64)
timeout-minutes: 60
runs-on: ubuntu-24.04-arm
env:
CC: gcc-13
CXX: g++-13
steps:
- uses: actions/checkout@v7
- uses: actions/cache@v4
with:
path: .cache/CPM
key: cpm-extended-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('CMakeLists.txt', 'cmake/*.cmake') }}
restore-keys: cpm-extended-${{ runner.os }}-${{ runner.arch }}-
- uses: actions/cache@v4
with:
path: |
build-webkitgtk/bootstrap
build-webkitgtk/registry-archives
key: inputs-webkitgtk-arm64-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('cmake/WebFrontBootstrap.cmake', 'test/web/registry-packages.json') }}
- uses: ./.github/actions/remove-node
- uses: ./.github/actions/setup-cmake
with:
version: '4.4.4'
- name: Install GCC 13, WebKitGTK and Xvfb
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends g++-13 ninja-build xvfb libwebkitgtk-6.0-dev
- name: Verify the compiler
run: |
test "$(uname -m)" = aarch64
case "$(g++-13 -dumpfullversion)" in 13.*) ;; *) echo "::error::Expected GCC 13, got $(g++-13 -dumpfullversion)"; exit 1 ;; esac
pkg-config --modversion webkitgtk-6.0
- name: Configure WebKitGTK integration build
run: >-
cmake -S . -B build-webkitgtk -G Ninja -DCMAKE_BUILD_TYPE=Release -DWEBFRONT_EMBED_CEF=OFF -DWEBFRONT_EMBED_WEBKITGTK=ON
-DWEBFRONT_WEBTEST_FRONTEND=WebKitGTK -DWEBFRONT_BUILD_EXAMPLES=OFF -DWEBFRONT_ENABLE_TESTING=ON
-DWARNINGS_AS_ERRORS=OFF -DENABLE_CACHE=OFF -DCMAKE_CXX_SCAN_FOR_MODULES=OFF
- name: Build browser test
run: cmake --build build-webkitgtk --target webtest developer_integration webfront-wf --parallel 4
- name: Run Jasmine bridge test
env:
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS: '1'
run: >-
ctest --test-dir build-webkitgtk -L web-integration --output-on-failure --no-tests=error --parallel 2
--output-junit "${{ github.workspace }}/build-webkitgtk/test-results.xml"
- name: Retain test timings and diagnostics
if: always()
uses: actions/upload-artifact@v4
with:
name: test-log-webkitgtk-arm64
path: |
build-webkitgtk/test-results.xml
build-webkitgtk/Testing/Temporary/LastTest.log
if-no-files-found: ignore

sanitizers:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.base_ref == 'master')
runs-on: ubuntu-24.04
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Windows · MSVC](https://img.shields.io/badge/CI-Windows%20%C2%B7%20MSVC-0078D4)](https://github.com/ambroise-leclerc/WebFront/actions/workflows/BuildAndTest.yml)
[![macOS · Apple Clang](https://img.shields.io/badge/CI-macOS%20%C2%B7%20Apple%20Clang-555555)](https://github.com/ambroise-leclerc/WebFront/actions/workflows/BuildAndTest.yml)
[![Linux · GCC](https://img.shields.io/badge/CI-Linux%20%C2%B7%20GCC-E95420)](https://github.com/ambroise-leclerc/WebFront/actions/workflows/BuildAndTest.yml)
[![Linux · aarch64](https://img.shields.io/badge/CI-Linux%20%C2%B7%20aarch64%20%C2%B7%20GCC%2013-E95420)](https://github.com/ambroise-leclerc/WebFront/actions/workflows/BuildAndTest.yml)
[![C++23](https://img.shields.io/badge/C%2B%2B-23-00599C)](CMakeLists.txt)
[![Header-only](https://img.shields.io/badge/library-header--only-2EA043)](include/)

Expand Down Expand Up @@ -460,7 +461,7 @@ shared projects and nested builds retain resource locks.
See [test timings and parallelism](docs/TEST_PERFORMANCE.md) for measurements and constraints.
`ctest -L fast` runs the unit tests in about a second; [test tiers](docs/TEST_TIERS.md) describes what CI runs on each pull request, weekly and before a merge into `master`.

CI runs one combined C++ / native-browser job per desktop platform on each code change. The Linux job also collects and prints GCC line coverage (no external upload). Linux Clang, sanitizers, fuzzing and CEF compatibility run weekly, on demand and on pull requests into `master`. A Linux aarch64 job with GCC 13 also compiles the library, examples and tests and runs the fast tier weekly and on pull requests into `master`, without a browser frontend or warnings as errors. A weekly Linux aarch64 CEF job (also on demand with `cef_arm64=true`) runs the `web-integration` suite; WebKitGTK is not covered on aarch64. Manual dispatch with `repeat_desktop_tests=true` also runs the aarch64 job and repeats the complete desktop CTest suite three times, recreating its fixtures on each pass. Workflow concurrency cancels superseded runs; dependency and compiler caches avoid repeated work. Platform badges above identify the configured matrix; the CI badge reports its aggregate status. Execution times depend on cache state and runner availability.
CI runs one combined C++ / native-browser job per desktop platform on each code change. The Linux job also collects and prints GCC line coverage (no external upload). Linux Clang, sanitizers, fuzzing and CEF compatibility run weekly, on demand and on pull requests into `master`. A Linux aarch64 job with GCC 13 also compiles the library, examples and tests and runs the fast tier weekly and on pull requests into `master`, without a browser frontend or warnings as errors. Weekly Linux aarch64 jobs (also on demand with `cef_arm64=true` and `webkitgtk_arm64=true`) run the `web-integration` suite under CEF `linuxarm64` and under the WebKitGTK 6.0 frontend of Ubuntu 24.04. Manual dispatch with `repeat_desktop_tests=true` also runs the aarch64 job and repeats the complete desktop CTest suite three times, recreating its fixtures on each pass. Workflow concurrency cancels superseded runs; dependency and compiler caches avoid repeated work. Platform badges above identify the configured matrix; the CI badge reports its aggregate status. Execution times depend on cache state and runner availability.

## Contracts and limitations

Expand Down
2 changes: 1 addition & 1 deletion docs/PROJECT_STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ asset freshness checks and, with an enabled engine, real-browser Jasmine and lif
`Journey*` builds a UI with the rebuilt environment and local registry, then compiles and runs
its generated provider from an empty directory. Configured tests need no public network.

[Tiers](TEST_TIERS.md) defines the desktop and extended CI scope, including the GCC 13 Linux aarch64 job (#548).
[Tiers](TEST_TIERS.md) defines the desktop and extended CI scope, including the GCC 13 Linux aarch64 job (#548) and its weekly CEF and WebKitGTK browser jobs (#524).
[Test execution and profiling](TEST_PERFORMANCE.md) documents fixture locks, complete-suite repetition, the intermittent
failures of the last runs and why shared browser sessions were retired (#570); each wf command is a driver process
on an OS-assigned loopback port. Manual transport measurements
Expand Down
5 changes: 4 additions & 1 deletion docs/TEST_TIERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ dispatch with `repeat_desktop_tests`:
the tests with warnings that are not errors (libstdc++ 13 reports false `-Wnull-dereference` positives, #526), then running
the fast tier, then rebuilding the tests under GCC 13 ASan/UBSan and repeating the fast tier (#525, S2 support). It has no browser frontend. A compile error or a failing fast test under GCC 13 on aarch64 turns it red;
- the `cef-arm64` job (#524): the `web-integration` suite under CEF `linuxarm64` (GCC 13, Xvfb) on `ubuntu-24.04-arm`, weekly and on demand with `cef_arm64=true`, not on pull requests; it fails if the CEF library is not aarch64;
- the `webkitgtk-arm64` job (#524): the same suite through the WebKitGTK 6.0 frontend of Ubuntu 24.04 (GCC 13, Xvfb) on `ubuntu-24.04-arm`, weekly and on demand with `webkitgtk_arm64=true`, not on pull requests;
- the address/undefined and thread sanitizers, the five fuzzers, and the GCC and Clang CEF browser integration.

Manual dispatch with `gcc13_arm64=true` adds the GCC 13 ARM64 job and its sanitizer pass
Expand All @@ -136,7 +137,9 @@ to the extended checks without enabling the repeated desktop matrix. For example
gh workflow run BuildAndTest.yml --ref <branch> -f gcc13_arm64=true
```

`cef_arm64=true` likewise runs only the CEF `linuxarm64` browser integration.
`cef_arm64=true` and `webkitgtk_arm64=true` likewise run only the CEF `linuxarm64` or the WebKitGTK aarch64 browser integration. The two aarch64 browser jobs and `gcc13-arm64` share the `cpm-extended-Linux-ARM64-*` key, so whichever finishes first saves it; the bootstrap and registry archives have a key per job. None of them uses a compiler cache (`ENABLE_CACHE=OFF`).

Measured on hosted `ubuntu-24.04-arm` runners with cold caches (run 43745895208): `gcc13-arm64` 25 min (fast tier 9 s, 551 cases, then ASan/UBSan 43 s), `cef-arm64` 9 min (101 cases, 169 s of tests) and `webkitgtk-arm64` 7 min (113 cases, 221 s of tests). A second run (43748323731) restored the CPM, bootstrap and registry caches on both browser jobs (8 and 7 min): the time is the compilation, not the downloads.

The portability matrix does not vary the CMake version: `setup-cmake` pins the SHA-256 of each archive it installs, so
another version needs its checksum added first.
Expand Down
Loading