Skip to content

wf test on WebView2: the runner page never requests runner.js, so no spec starts #690

Done

Description

@ambroise-leclerc

Split from #660 (third case, comment on pull request #661).

Observed

desktop-native (windows-msvc-webview2), run 45386859677, job 138419919464 (first attempt): DeveloperBrowserIntegration-jasmine failed after 68 s. Its seventh wf test (the suite.spec.js run, the first whose runner page links specs.css) ended with status=timeout, exitCode=124, total=0 after 60 s, whereas the six previous runs took about one second each. The rerun passed.

The server log of that run shows what the runner page did:

  • run 6: index.html, jasmine.js, runner.js, WebFront.js, WebSocket upgrade, the two /webfront/services/bind/ requests, then specs.js;
  • run 7: index.html, specs.css, jasmine.js, WebFront.js, WebSocket upgrade, the two bind requests, then nothing: runner.js was never received by the server, so specs.js never was either and no spec could start.

The time limit is not the cause: the runner had 60 s and the other runs need about one. Either WebView2 never sent the module request, or the request was lost between the browser and the HTTP server (a keep-alive connection, for instance).

To do

  • Reproduce on WebView2 under load (ctest -R DeveloperBrowserIntegration-jasmine --repeat until-fail:20 --parallel 4), with request logging on both sides if possible (WebView2 DevTools protocol Network events, server connection ids).
  • Decide whether a stalled module request is the server's (connection handling) or the browser's.
  • Consider making wf test report how far the runner got when its time limit fires (page loaded, runner started, specs loaded, specs run), so that the next occurrence names its stage.
  • Keep the case required; the fix must not skip it.

Activity

  1. added a commit that references this issue on Nov 28, 2026
  2. ambroise-leclerc commented on Nov 28, 2026

    @ambroise-leclerc
    CollaboratorAuthor

    Fermé par #713 (fusionnée dans develop), qui traite le diagnostic demandé ; la cause du blocage n'est pas identifiée.

    Ce qui est fait. Un wf test arrêté par sa limite de temps (ou par Ctrl+C) dit maintenant jusqu'où son runner est allé. Le message et le champ stage du rapport donnent :

    • la dernière étape atteinte (page requested, runner started, bridge settled, specs loaded, specs running, between specs) ;
    • la spec en cours, ou la suite dont un beforeAll / afterAll s'exécute ;
    • les fichiers du runner dont la frame n'a jamais reçu la réponse complète (Resource Timing).

    Dans le cas observé, le message distinguera un runner.js jamais demandé par WebView2 d'un jasmine.js reçu par le serveur mais jamais arrivé en entier dans la frame. C'est la question que ce ticket laissait ouverte. DeveloperBrowserIntegration-jasmine vérifie ce rapport sur un run bloqué. Le cas reste requis.

    Ce qui n'est pas fait. Le blocage ne s'est pas reproduit en local (Windows, WebView2) : 10 exécutions de DeveloperBrowserIntegration-jasmine avec --parallel 4, toutes réussies. La prochaine occurrence nommera son étape ; il faudra alors ouvrir un ticket avec ce message pour corriger la cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions