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
196 changes: 196 additions & 0 deletions cmake/local-ci/lanes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
{
"schema": 1,
"comment": "The local CI matrix (#346): one entry per lane the GitHub workflows expand to. test/cmake/CheckLocalCi.cmake fails when it drifts from .github/workflows.",
"mddlog": {
"repository": "ambroise-leclerc/mddlog",
"ref": "5b43265664d83c3b7135d328f611e685792a1b02",
"cmake_window": "4.0 to 4.3"
},
"workflows": {
"BuildAndTest.yml": {
"jobs": ["desktop", "sanitizers", "web-integration"],
"matrices": {
"desktop": {"key": "platform", "values": ["linux-gcc-webkitgtk", "windows-msvc-webview2", "macos-clang-wkwebview"]},
"sanitizers": {"key": "sanitizer", "values": ["address-undefined", "thread"]},
"web-integration": {"key": "compiler", "values": ["gcc", "clang"]}
}
},
"MddlogIntegration.yml": {
"jobs": ["clang", "sanitizers"],
"matrices": {
"sanitizers": {"key": "name", "values": ["address-undefined", "thread"]}
}
}
},
"local_differences": {
"parallelism": "GitHub builds with --parallel 2; local lanes use the jobs limit of the machine (4 compilations on Windows).",
"cache": "GitHub restores actions/cache and sccache; local lanes keep persistent CPM_SOURCE_CACHE and ccache volumes.",
"toolchain": "GitHub installs toolchains per run; local machines are prepared once (docs/LOCAL_CI.md).",
"runner_images": "ubuntu-26.04, ubuntu-24.04, windows-2025 and macos-26 runner images are replaced by pinned containers and the host systems.",
"github_only_steps": [
"actions/upload-artifact (logs are collected by the orchestrator)",
"mozilla-actions/sccache-action (ccache replaces sccache)",
"actions/cache",
"Collect coverage upload (no Codecov step exists in the workflows; coverage.info and lcov --list stay local)",
"Cut the public network: applied to the lane container instead of the host firewall"
]
},
"lanes": [
{
"id": "desktop-linux-gcc-webkitgtk",
"workflow": "BuildAndTest.yml", "job": "desktop", "matrix": "linux-gcc-webkitgtk",
"machine": "RyzenLinux", "runtime": "container:linux-ubuntu26",
"compiler": {"family": "gcc", "version": "16", "marker": "gcc-16"},
"cmake_version": "4.4.4", "build_type": "Debug",
"options": ["-DWEBFRONT_EMBED_WEBKITGTK=ON", "-DWEBFRONT_WEBTEST_FRONTEND=WebKitGTK", "-DENABLE_COVERAGE=ON"],
"common_options": ["-DWEBFRONT_EMBED_CEF=OFF", "-DENABLE_TESTING=ON", "-DCMAKE_CXX_SCAN_FOR_MODULES=OFF"],
"workflow_options": ["-DENABLE_CACHE=OFF", "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache"],
"targets": [],
"ctest": {"labels": [], "exclude_labels": [], "args": ["--no-tests=error", "--output-on-failure", "--parallel", "4"], "workflow_args": ["--repeat", "until-fail:${{github.event_name=='workflow_dispatch'&&inputs.repeat_desktop_tests&&'3'||'1'}}", "--output-junit", "@workspace@/build/test-results.xml"]},
"env": {"WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS": "1"},
"extra_steps": ["lcov-coverage"],
"evidence": ["libwebkitgtk-6.0-dev", "lcov --list coverage.info", "--gcov-tool gcov-16", "--no-tests=error"]
},
{
"id": "desktop-windows-msvc-webview2",
"workflow": "BuildAndTest.yml", "job": "desktop", "matrix": "windows-msvc-webview2",
"machine": "CurmudgeonWindows", "runtime": "native:msvc",
"compiler": {"family": "msvc", "version": "latest", "marker": "msvc-dev-cmd"},
"cmake_version": "4.4.4", "build_type": "Release",
"options": ["-DWEBFRONT_EMBED_WEBVIEW2=ON", "-DWEBFRONT_WEBTEST_FRONTEND=WebView2"],
"common_options": ["-DWEBFRONT_EMBED_CEF=OFF", "-DENABLE_TESTING=ON", "-DCMAKE_CXX_SCAN_FOR_MODULES=OFF"],
"workflow_options": ["-DENABLE_CACHE=OFF", "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache"],
"targets": [],
"ctest": {"labels": [], "exclude_labels": [], "args": ["--no-tests=error", "--output-on-failure", "--parallel", "4"], "workflow_args": ["--repeat", "until-fail:${{github.event_name=='workflow_dispatch'&&inputs.repeat_desktop_tests&&'3'||'1'}}", "--output-junit", "@workspace@/build/test-results.xml"]},
"env": {},
"interactive_session": "required",
"extra_steps": ["webview2-runtime-check"],
"evidence": ["Ensure WebView2 Evergreen runtime", "--no-tests=error"]
},
{
"id": "desktop-macos-clang-wkwebview",
"workflow": "BuildAndTest.yml", "job": "desktop", "matrix": "macos-clang-wkwebview",
"machine": "Mac", "runtime": "native:appleclang",
"compiler": {"family": "appleclang", "version": "xcode-latest", "marker": "xcode-version: latest"},
"cmake_version": "4.4.4", "build_type": "Release",
"options": ["-DWEBFRONT_EMBED_WKWEBVIEW=ON", "-DWEBFRONT_WEBTEST_FRONTEND=WKWebView"],
"common_options": ["-DWEBFRONT_EMBED_CEF=OFF", "-DENABLE_TESTING=ON", "-DCMAKE_CXX_SCAN_FOR_MODULES=OFF"],
"workflow_options": ["-DENABLE_CACHE=OFF", "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache"],
"targets": [],
"ctest": {"labels": [], "exclude_labels": [], "args": ["--no-tests=error", "--output-on-failure", "--parallel", "4"], "workflow_args": ["--repeat", "until-fail:${{github.event_name=='workflow_dispatch'&&inputs.repeat_desktop_tests&&'3'||'1'}}", "--output-junit", "@workspace@/build/test-results.xml"]},
"env": {},
"interactive_session": "required",
"report": ["xcode-version"],
"evidence": ["--no-tests=error"]
},
{
"id": "sanitizers-address-undefined",
"workflow": "BuildAndTest.yml", "job": "sanitizers", "matrix": "address-undefined",
"machine": "RyzenLinux", "runtime": "container:linux-ubuntu24-clang23",
"compiler": {"family": "clang", "version": "23", "marker": "clang-23"},
"cmake_version": "4.4.4", "build_type": "RelWithDebInfo",
"options": ["-DENABLE_SANITIZER_ADDRESS=ON", "-DENABLE_SANITIZER_UNDEFINED_BEHAVIOR=ON", "-DENABLE_FUZZING=ON"],
"common_options": ["-DWEBFRONT_EMBED_CEF=OFF", "-DWEBFRONT_BUILD_EXAMPLES=OFF", "-DENABLE_TESTING=ON", "-DENABLE_CACHE=OFF"],
"targets": [],
"ctest": {"labels": [], "exclude_labels": [], "args": ["--no-tests=error", "--output-on-failure", "--parallel", "4"], "workflow_args": ["--output-junit", "@workspace@/build-sanitizers/test-results.xml"]},
"env": {"ASAN_OPTIONS": "detect_leaks=1:abort_on_error=1", "UBSAN_OPTIONS": "print_stacktrace=1:halt_on_error=1"},
"fuzz_decoders": ["messages", "http", "websocket", "gzip"],
"fuzz_seconds": 30,
"evidence": ["for decoder in messages http websocket gzip", "-max_total_time=30", "libclang-rt-23-dev"]
},
{
"id": "sanitizers-thread",
"workflow": "BuildAndTest.yml", "job": "sanitizers", "matrix": "thread",
"machine": "RyzenLinux", "runtime": "container:linux-ubuntu24-clang23",
"compiler": {"family": "clang", "version": "23", "marker": "clang-23"},
"cmake_version": "4.4.4", "build_type": "RelWithDebInfo",
"options": ["-DCMAKE_CXX_FLAGS=-stdlib=libc++", "-DENABLE_SANITIZER_THREAD=ON"],
"common_options": ["-DWEBFRONT_EMBED_CEF=OFF", "-DWEBFRONT_BUILD_EXAMPLES=OFF", "-DENABLE_TESTING=ON", "-DENABLE_CACHE=OFF"],
"targets": [],
"ctest": {"labels": [], "exclude_labels": [], "args": ["--no-tests=error", "--output-on-failure", "--parallel", "4"], "workflow_args": ["--output-junit", "@workspace@/build-sanitizers/test-results.xml"]},
"env": {"TSAN_OPTIONS": "halt_on_error=1:second_deadlock_stack=1"},
"host_requirements": {"sysctl": {"vm.mmap_rnd_bits": "28"}},
"evidence": ["vm.mmap_rnd_bits=28", "libc++-23-dev"]
},
{
"id": "web-integration-gcc",
"workflow": "BuildAndTest.yml", "job": "web-integration", "matrix": "gcc",
"machine": "RyzenLinux", "runtime": "container:linux-ubuntu24-clang23",
"compiler": {"family": "gcc", "version": "ubuntu-24.04-default", "marker": ""},
"cmake_version": "4.4.4", "build_type": "Release",
"options": ["-DWEBFRONT_EMBED_CEF=ON"],
"common_options": ["-DWEBFRONT_BUILD_EXAMPLES=OFF", "-DENABLE_TESTING=ON"],
"targets": ["webtest", "developer_integration", "webfront-wf"],
"ctest": {"labels": ["web-integration"], "exclude_labels": [], "args": ["--no-tests=error", "--output-on-failure", "--parallel", "4"], "workflow_args": ["--output-junit", "@workspace@/build-cef/test-results.xml"]},
"env": {},
"container": {"shm_size": "1g", "network_after_provisioning": "none"},
"report": ["effective-compiler"],
"evidence": ["--target webtest developer_integration webfront-wf", "-L web-integration", "iptables -A OUTPUT ! -o lo -j REJECT"]
},
{
"id": "web-integration-clang",
"workflow": "BuildAndTest.yml", "job": "web-integration", "matrix": "clang",
"machine": "RyzenLinux", "runtime": "container:linux-ubuntu24-clang23",
"compiler": {"family": "clang", "version": "23", "marker": "clang-23"},
"cmake_version": "4.4.4", "build_type": "Release",
"options": ["-DWEBFRONT_EMBED_CEF=ON"],
"common_options": ["-DWEBFRONT_BUILD_EXAMPLES=OFF", "-DENABLE_TESTING=ON"],
"targets": ["webtest", "developer_integration", "webfront-wf"],
"ctest": {"labels": ["web-integration"], "exclude_labels": [], "args": ["--no-tests=error", "--output-on-failure", "--parallel", "4"], "workflow_args": ["--output-junit", "@workspace@/build-cef/test-results.xml"]},
"env": {"CC": "clang-23", "CXX": "clang++-23"},
"container": {"shm_size": "1g", "network_after_provisioning": "none"},
"evidence": ["--target webtest developer_integration webfront-wf", "-L web-integration", "lld-23"]
},
{
"id": "mddlog-clang-source-install",
"workflow": "MddlogIntegration.yml", "job": "clang", "matrix": "",
"machine": "RyzenLinux", "runtime": "container:linux-ubuntu-clang21-libcxx",
"compiler": {"family": "clang", "version": "21", "marker": "clang-21"},
"cmake_version": "4.3.1", "build_type": "Release",
"options": ["-DWEBFRONT_USE_MDDLOG=ON", "-DWEBFRONT_BUILD_EXAMPLES=OFF", "-DENABLE_TESTING=ON", "-DENABLE_CACHE=OFF"],
"common_options": [],
"targets": [],
"ctest": {"labels": [], "exclude_labels": [], "args": ["--no-tests=error", "--output-on-failure"]},
"env": {},
"modes": ["source", "installed"],
"configure_variants": [["-DWEBFRONT_MDDLOG_SOURCE_DIR=@workspace@/dependencies/mddlog"], ["-DCMAKE_PREFIX_PATH=@workspace@/mddlog-install"]],
"toolchain_file": "dependencies/mddlog/cmake/toolchains/linux-clang21-libcxx.cmake",
"evidence": ["-DWEBFRONT_MDDLOG_SOURCE_DIR=", "-DCMAKE_PREFIX_PATH=", "cmake --install build-mddlog-source/mddlog", "linux-clang21-libcxx.cmake"]
},
{
"id": "mddlog-sanitizers-address-undefined",
"workflow": "MddlogIntegration.yml", "job": "sanitizers", "matrix": "address-undefined",
"machine": "RyzenLinux", "runtime": "container:linux-ubuntu-clang21-libcxx",
"compiler": {"family": "clang", "version": "21", "marker": "clang-21"},
"cmake_version": "4.3.1", "build_type": "RelWithDebInfo",
"options": ["-DWEBFRONT_USE_MDDLOG=ON", "-DWEBFRONT_BUILD_EXAMPLES=OFF", "-DENABLE_TESTING=ON", "-DENABLE_CACHE=OFF"],
"common_options": [],
"toolchain_file": "dependencies/mddlog/cmake/toolchains/linux-clang21-libcxx.cmake",
"configure_variants": [["-DWEBFRONT_MDDLOG_SOURCE_DIR=@workspace@/dependencies/mddlog", "-DCMAKE_CXX_FLAGS=-stdlib=libc++ -fsanitize=address,undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer", "-DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover=undefined"]],
"targets": ["tests"],
"ctest": {"labels": [], "exclude_labels": [], "args": []},
"catch2_direct": [["[transport],[weblink]", "--order", "rand", "x5"], ["--order", "rand"]],
"env": {"ASAN_OPTIONS": "detect_leaks=1:abort_on_error=1", "UBSAN_OPTIONS": "print_stacktrace=1:halt_on_error=1"},
"sanitizer_flags": "-fsanitize=address,undefined -fno-sanitize-recover=undefined",
"evidence": ["for iteration in 1 2 3 4 5", "--target tests", "[transport],[weblink]"]
},
{
"id": "mddlog-sanitizers-thread",
"workflow": "MddlogIntegration.yml", "job": "sanitizers", "matrix": "thread",
"machine": "RyzenLinux", "runtime": "container:linux-ubuntu-clang21-libcxx",
"compiler": {"family": "clang", "version": "21", "marker": "clang-21"},
"cmake_version": "4.3.1", "build_type": "RelWithDebInfo",
"options": ["-DWEBFRONT_USE_MDDLOG=ON", "-DWEBFRONT_BUILD_EXAMPLES=OFF", "-DENABLE_TESTING=ON", "-DENABLE_CACHE=OFF"],
"common_options": [],
"toolchain_file": "dependencies/mddlog/cmake/toolchains/linux-clang21-libcxx.cmake",
"configure_variants": [["-DWEBFRONT_MDDLOG_SOURCE_DIR=@workspace@/dependencies/mddlog", "-DCMAKE_CXX_FLAGS=-stdlib=libc++ -fsanitize=thread -fno-omit-frame-pointer", "-DCMAKE_EXE_LINKER_FLAGS=-fsanitize=thread"]],
"targets": ["tests"],
"ctest": {"labels": [], "exclude_labels": [], "args": []},
"catch2_direct": [["[transport],[weblink]", "--order", "rand", "x5"], ["--order", "rand"]],
"env": {"TSAN_OPTIONS": "halt_on_error=1:second_deadlock_stack=1"},
"sanitizer_flags": "-fsanitize=thread",
"host_requirements": {"sysctl": {"vm.mmap_rnd_bits": "28"}},
"evidence": ["vm.mmap_rnd_bits=28", "--target tests"]
}
]
}
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Local CI matrix, step 1 of 3 (#346): `cmake/local-ci/lanes.json` describes the ten lanes of `BuildAndTest.yml` and `MddlogIntegration.yml` (machine, toolchain, CMake, options, targets, CTest labels), `docs/LOCAL_CI.md` documents them and their differences with GitHub, and the offline CTest cases `LocalCiLanesMatchWorkflows` and `LocalCiLanesRejectDrift` fail when the lanes and the workflows diverge. Command options are compared in both directions for each matrix variant; extra matrix axes and exclusions are rejected explicitly. The orchestrator, the Linux containers and the Windows and macOS sessions follow in steps 2 and 3.

- The README animation draws the C++ application inside the image, beside the WebFront window (#359): it is no longer cropped by the table column on narrow screens and in the GitHub app, and weighs 0.4 MB instead of 1.2 MB. The code stays in the README as text, in a collapsed block; `docs/tools/render-life-bootstrap.py` reads it from there.

- The manifest and the lock of the repository move to `js/developer/` (#354): the driver and the CI select them with `--manifest-dir js/developer`, and the closed list of the root loses two entries (9 left).
Expand Down
Loading
Loading