Skip to content

BrowserContext can't be created for reused VUs #4275

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

Merged
merged 2 commits into from
Jan 28, 2025
Merged

BrowserContext can't be created for reused VUs #4275

merged 2 commits into from
Jan 28, 2025

Conversation

mstoykov
Copy link
Contributor

@mstoykov mstoykov commented Jan 23, 2025

What?

Fix browser test on reused VUs.

This also techinically fixes being able to use browser on reused browser VUs that are not in browser scenarios.

Why?

While a rare case, reusing VUs is still part of k6.

The cost currently seems to be around 33% performance for empty iterations.

But if I do http.get to not open port it dissapears so I would expect for any real world scripts this is a none issue.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@mstoykov mstoykov requested a review from a team as a code owner January 23, 2025 17:54
@mstoykov mstoykov requested review from inancgumus and oleiade and removed request for a team January 23, 2025 17:54
Copy link
Contributor

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@mstoykov mstoykov merged commit da7db7e into master Jan 28, 2025
27 of 28 checks passed
@mstoykov mstoykov deleted the fix4240 branch January 28, 2025 09:17
@inancgumus inancgumus added this to the v0.57.0 milestone Jan 28, 2025
@inancgumus inancgumus changed the title Simple fix for 4240 BrowserContext can't be created for reused VUs Feb 3, 2025
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.

3 participants