Skip to content

Make the default test build the quick one and pass every option explicitly in CI (#546) - #557

Merged
ambroise-leclerc merged 3 commits into
developfrom
546-fast-defaults
Nov 11, 2026
Merged

ambroise-leclerc merged 3 commits into
developfrom
546-fast-defaults

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Closes #546.

What changes

No CMake preset: the defaults become the quick local build, and the CI names what it wants.

Option Default before Default now
WEBFRONT_TEST_UNITY_BATCH 0 4
WEBFRONT_MSVC_ANALYZE ON OFF
WEBFRONT_TEST_REPRODUCIBILITY ON OFF
WEBFRONT_BUILD_EXAMPLES (top level) ON ON, unchanged

CI jobs, so that each checks what it checked before:

  • desktop jobs, complete tier: -DWEBFRONT_MSVC_ANALYZE=ON -DWEBFRONT_BUILD_EXAMPLES=ON instead of an empty string that inherited the defaults;
  • portability: -DWEBFRONT_TEST_UNITY_BATCH=0 -DWEBFRONT_MSVC_ANALYZE=ON -DWEBFRONT_TEST_REPRODUCIBILITY=ON;
  • sanitizers: -DWEBFRONT_TEST_UNITY_BATCH=0 -DWEBFRONT_TEST_REPRODUCIBILITY=ON;
  • web-integration (CEF) and the release workflow's driver: -DWEBFRONT_TEST_REPRODUCIBILITY=ON.

One deliberate difference: the CEF job now compiles the heavy unit tests four to a file, like the desktop jobs, which shortens its build.

docs/TEST_TIERS.md, docs/BUILD_TIME_STUDY.md and AGENTS.md describe the defaults.

Evidence

Windows, MSVC: a fresh configure with only -DWEBFRONT_ENABLE_TESTING=ON and the WebView2 frontend caches UNITY_BATCH=4, MSVC_ANALYZE=OFF, TEST_REPRODUCIBILITY=OFF, BUILD_EXAMPLES=ON and registers no SelfBuildRepeat or SelfBuildReproducible case. RepositoryLayout, NewcomerDocsMatchExamples, ChangelogFormat and TestOptionsConfiguration pass.

Not verified

  • No complete build or suite was run locally with the new defaults; the build with UNITY_BATCH=4 and the analysis off is the one the desktop CI jobs already use.
  • The portability, sanitizers and complete-tier configurations only run weekly, on a pull request into master or on dispatch: the CEF and sanitizer jobs are dispatched on this branch; the complete desktop tier is not.
  • TestOptionsConfiguration does not pin the new defaults yet.

…citly in CI (#546)

The heavy unit tests compile four to a file by default; the MSVC code analysis and the reproducibility proofs are off unless asked for. Every CI job names these options, so each checks what it checked before. No CMake preset is added.
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e4c70208-dd98-4d04-a817-2ba3d5dc4974
Commits

Reviewing files that changed from the base of the PR and between 334a465 and 976f31f.

Files selected for processing: 12

  • .github/actions/wf-driver/action.yml
  • .github/workflows/BuildAndTest.yml
  • AGENTS.md
  • cmake/CompilerWarnings.cmake
  • cmake/WebFrontTestOptions.cmake
  • docs/BUILD_TIME_STUDY.md
  • docs/CHANGELOG.md
  • docs/TEST_TIERS.md
  • test/cmake/CheckTestOptions.cmake
  • test/cmake/test-options/CMakeLists.txt
  • test/unit/CMakeLists.txt
  • test/web/CMakeLists.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…546)

The release workflow check pins the line that configures build-driver again; the option belongs to the first configuration, in the wf-driver action.
@ambroise-leclerc
ambroise-leclerc merged commit 7f2fa43 into develop Nov 11, 2026
21 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the 546-fast-defaults branch November 11, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configuration de développement rapide par défaut

2 participants