Repository navigation
chore(samples): Repeat runtime tests from the command line - #25153
Conversation
--runtime-tests-iterations / UITEST_RUNTIME_TESTS_ITERATIONS runs each test N times (stopping at the first failing iteration, which is reported), and --runtime-tests-attempts / UITEST_RUNTIME_TESTS_ATTEMPTS sets the attempts per iteration, so a flaky test can be measured within one launch with the built-in retries off. Both were only reachable from the runner's UI. Refs #25152 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Usdq5JJfVkzKcYtwkKCRUy
Refs #25152 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Usdq5JJfVkzKcYtwkKCRUy
|
Claude finished @MartinZikmund's task in 24s —— View job Review summaryVerdict: ship after one small fix. The change is small, defaults are unchanged, and the iteration/attempt wiring in Issue (minor): Not verified: the skill doc says that on WASM the options are passed as URL query parameters. I didn't find where those are mapped to the env vars, so please confirm it works. Testing: the PR checklist has no new runtime test. That's reasonable for runner tooling. The Skia validation described in the PR body is the only evidence, and I did not run it here. |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25153/docs/index.html |
GitHub Issue: closes #25152
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
The runtime-test runner's in-app UI can repeat tests and switch off retries, but headless runs (
dotnet SamplesApp.dll --runtime-tests=..., the WASM URL parameters, CI scripts) always used the default: 1 iteration, up to 3 attempts. That makes a flaky test hard to measure. The silent retries hide most failures, and relaunching the app per run is slow.--runtime-tests-iterations=N/UITEST_RUNTIME_TESTS_ITERATIONS: runs each test N times in a row and stops at the first failing iteration. The failure reports which iteration failed, on the console and in the test's output.--runtime-tests-attempts=N/UITEST_RUNTIME_TESTS_ATTEMPTS: attempts per iteration before a failure is reported;1reports the first failure./runtime-testsskill documents both options.Defaults are unchanged, so CI behaves as before.
Validation (Skia Win32, local): used to measure
Given_FlipView.When_TouchFlick_Then_FlipOneItemwith 60 iterations, 1 attempt and the process pinned to one core. Master failed at iterations 2, 4, 4 and 9, while 6 regular headless launches (3 attempts each) had all passed. The log showsRunning each test 60 time(s), with up to 1 attempt(s) per iterationand...: Failed on iteration 4 of 60.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01Usdq5JJfVkzKcYtwkKCRUy