Skip to content
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

k6-core update for k6 browser version 2's sync API #3782

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

inancgumus
Copy link
Member

@inancgumus inancgumus commented Jun 7, 2024

What?

  • Updates to the k6 browser version 2.
  • Redirects k6/experimental/browser to the previous sync browser JS API.

Why?

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)

The k6 browser API is now Async. To continue to work with the sync API,
k6-core needs to be updated to browser.NewSync. This method maps the
browser's core API to sync methods.
@inancgumus inancgumus self-assigned this Jun 7, 2024
@inancgumus inancgumus marked this pull request as ready for review June 7, 2024 14:50
@inancgumus inancgumus requested a review from a team as a code owner June 7, 2024 14:50
@inancgumus inancgumus requested review from oleiade, codebien, mstoykov and ankur22 and removed request for a team June 7, 2024 14:50
Copy link
Contributor

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.85%. Comparing base (f677714) to head (7ef5a0c).

Current head 7ef5a0c differs from pull request most recent head 1298037

Please upload reports for the commit 1298037 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3782      +/-   ##
==========================================
- Coverage   71.88%   71.85%   -0.03%     
==========================================
  Files         291      291              
  Lines       21249    21249              
==========================================
- Hits        15274    15269       -5     
- Misses       4913     4918       +5     
  Partials     1062     1062              
Flag Coverage Δ
ubuntu 71.79% <100.00%> (-0.01%) ⬇️
windows 71.72% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@inancgumus inancgumus merged commit 73aaa79 into master Jun 7, 2024
23 checks passed
@inancgumus inancgumus deleted the update/browserv2 branch June 7, 2024 15:05
@inancgumus inancgumus changed the title Update to k6 browser version 2 k6-core update for k6 browser version 2's sync API Jun 7, 2024
@joanlopez joanlopez added this to the v0.52.0 milestone Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants