-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add event system for JS modules #3112
Commits on Jun 30, 2023
-
Ivan Mirić committed
Jun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for b66f9d7 - Browse repository at this point
Copy the full SHA b66f9d7View commit details -
Expose event system to JS modules
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for be59f24 - Browse repository at this point
Copy the full SHA be59f24View commit details -
Emit events in run command and js.VU.RunOnce()
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for 936999c - Browse repository at this point
Copy the full SHA 936999cView commit details -
Remove embedded context from event.System
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for 3ed0ffc - Browse repository at this point
Copy the full SHA 3ed0ffcView commit details -
Remove checking execution status via HTTP API in E2E event tests
Resolves #3112 (comment)
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for 002947b - Browse repository at this point
Copy the full SHA 002947bView commit details -
Emit VU events in a VU-local event system
This addresses the issue that made it difficult to keep track of events for a specific VU, since the browser module needs to initialize browser processes for each VU[1]. This splits the event system into a global and local (per-VU) one, and the JS module can decide to which they want to subscribe to.
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for d509983 - Browse repository at this point
Copy the full SHA d509983View commit details -
Set a very high event wait timeout
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for 31fedfb - Browse repository at this point
Copy the full SHA 31fedfbView commit details -
Wait for IterStart and IterEnd events to be processed
The browser module uses the IterStart and IterEnd events for browser initialization and shutdown, so we need to wait for them to complete. There is some concern that this might add some delay to the overall iteration duration, and not just to the iterations where browsers processes are managed, but it should be negligible overall. We should run benchmarks after this change to confirm this.
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for c11f0df - Browse repository at this point
Copy the full SHA c11f0dfView commit details -
DRY event emission, fix issue passing aborted error
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for babfba4 - Browse repository at this point
Copy the full SHA babfba4View commit details -
Initialize global event system in GlobalState, defer Exit emission ea…
…rlier This ensures that the Exit event is sent even in the case of an early error, such as a script exception. Resolves #3112 (comment)
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for bc88ce0 - Browse repository at this point
Copy the full SHA bc88ce0View commit details -
Add benchmarks for run command with and without events
See the results here: https://gist.github.com/imiric/b2094c79f45cbdbdcb067671434fde4a
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for f2e4a52 - Browse repository at this point
Copy the full SHA f2e4a52View commit details -
Address feedback from PR review
Ivan Mirić committedJun 30, 2023 Configuration menu - View commit details
-
Copy full SHA for 91fc97e - Browse repository at this point
Copy the full SHA 91fc97eView commit details