Skip to content

wf test: a run stopped at its time limit says how far its runner got (#690) - #713

Merged
ambroise-leclerc merged 5 commits into
developfrom
690-etape-runner-wf-test
Nov 28, 2026
Merged

ambroise-leclerc merged 5 commits into
developfrom
690-etape-runner-wf-test

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Refs #690.

The issue asks to reproduce the stalled runner, decide whose fault it is, and make wf test report how far its runner got when its time limit fires. This PR does the last point, so that the next occurrence names its stage; the stall did not reproduce here (see Tests).

What changes

wf test (js/developer/environment/testing.mjs)

  • The runner posts its stages to the page that runs it: runner started, bridge settled, specs loaded, then specs running with the spec it starts, and between specs with the innermost suite after a spec and when a suite starts or ends (a beforeAll or afterAll in progress).
  • A run stopped at its time limit or by Ctrl+C, once its frame is in the page, has a stage in its report: {reached, specs, current, suite, loaded, missing}, and its message repeats it, for example Tests stopped at their time limit (stage: page requested; not loaded: runner.js, specs.js) or (stage: specs running, 3 specs done, in suite never ends). loaded and missing come from the frame's Resource Timing: a runner file (index.html, specs.css when the page links it, WebFront.js, jasmine.js, runner.js, specs.js) is loaded once its response ended. In the case of the issue, the server received the requests up to the bind requests, then nothing: the stage will tell whether runner.js was never requested, or whether jasmine.js, received by the server, never reached the frame in full.
  • A spec filtered out by the pattern does not count as done, like the report's total. A run stopped before its frame was in the page keeps the former message and has no stage.
  • bundles.json: the checksum of testing.mjs.

Documentation: docs/DEVELOPER_ENVIRONMENT.md (the report's stage), docs/CHANGELOG.md (Changed).

Codex review

Three rounds of remarks, all fixed: a finished spec was still named as running (now between specs); a hanging first beforeAll looked like specs loaded (the runner now reports suites); excluded specs were counted as done.

Tests

  • test/developer/specs/testing-specs.mjs: the files missing from a frame, specs.css only when the page links it, a resource whose response did not end, an unreadable frame, the message and report of a stopped run, the between specs stage with and without a suite.
  • test/web/developer-specs.mjs: the hanging run of DeveloperBrowserIntegration-jasmine must report specs running, the spec hanging never ends, no spec done and no missing file, and say so in its message.
  • Local (Windows, WebView2): DeveloperSpecs and DeveloperBrowserIntegration-jasmine pass.
  • Not done: reproducing the stall itself. The case stays required.

…me got (#690)

The runner posts its stages (started, bridge settled, specs loaded, the spec it runs); at the time limit or on Ctrl+C the
parent adds them to the message and the report with the runner files whose response the frame never completed, read
from the frame's Resource Timing. The next stalled run says whether runner.js was never requested or never received.
@coderabbitai

coderabbitai Bot commented Nov 28, 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 40 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: 0f3fc0c3-5984-47fa-81eb-d1f629ea56de
Commits

Reviewing files that changed from the base of the PR and between 6f3ac79 and a489bc0.

Files selected for processing: 6

  • docs/CHANGELOG.md
  • docs/DEVELOPER_ENVIRONMENT.md
  • js/developer/environment/bundles.json
  • js/developer/environment/testing.mjs
  • test/developer/specs/testing-specs.mjs
  • test/web/developer-specs.mjs
  • 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

@ambroise-leclerc
ambroise-leclerc merged commit ecc3be8 into develop Nov 28, 2026
27 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the 690-etape-runner-wf-test branch November 28, 2026 08:44
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.

2 participants