Giter Site home page Giter Site logo

Comments (3)

syduki avatar syduki commented on August 16, 2024

It would be hard to spot this just by looking at the code, most probably it would require some debug output here and there to narrow it down.
But from the code in timeline.ts:

if (clicks.length !== 1) {
    console.log("exactly one click event is expected", fileName, events);
    throw "exactly one click event is expected";
}

we can suspect 2 causes:

  1. click event not dispatched at all, i.e. puppeteer click event fails silently.
  2. more than one click event dispatched, due to some bug/peculiarity of event system in some framework.

Don't you see in the console at least the framework and scenario where this is triggered, or it is a random event?

from js-framework-benchmark.

krausest avatar krausest commented on August 16, 2024

Such a trace might then look like that:
Screenshot 2023-11-12 at 9 36 06 AM

This feels so odd, since the browser is in a defined state after initBenchmark. The test driver has verified that the warmup was successful and the dom elements are present. Then tracing starts before runBenchmak whose actions are also validated (i.e. it's neither case 1 or 2). The tracing stops after successful verification that the dom state was modified according to the benchmark. Everything is in its place, but the trace contains almost nothing (no click event, no layout, no paint, ...)
Both puppeteer and playwright occasionally have this error, maybe I find the time to check the webdriver CDP driver.

As a workaround I built a retry for that particular error. @syduki I'll close your PR since I played with that retry on the master branch.

from js-framework-benchmark.

syduki avatar syduki commented on August 16, 2024

Those 1 & 2 were too optimistic, from your capture looks it is a worse case, more likely tied to CDP itself. Let's see if it improves with the webdriver.

from js-framework-benchmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.