Skip to content

Update chromedp/cdproto and related changes #4785

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 4 commits into from
May 16, 2025
Merged

Update chromedp/cdproto and related changes #4785

merged 4 commits into from
May 16, 2025

Conversation

mstoykov
Copy link
Contributor

@mstoykov mstoykov commented May 13, 2025

What?

Update cdproto dependancy.

This is more involved due to them changing from easyjson to jsonv2 (experiment) which has a bunch of additional things that need changing .

Why?

Cdproto moved to it and we really need to keep updating this.

This also likely will make it possible for more optimizations with reusing jsonv2 decoder/encoders. But that will be explored later as this PR already changes so much.

Checklist

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

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: link
  • I have updated or added an issue to the k6-documentation: grafana/k6-docs#NUMBER if applicable
  • I have updated or added an issue to the TypeScript definitions: grafana/k6-DefinitelyTyped#NUMBER if applicable

Related PR(s)/Issue(s)

@mstoykov mstoykov marked this pull request as ready for review May 14, 2025 15:34
@mstoykov mstoykov requested a review from a team as a code owner May 14, 2025 15:34
@mstoykov mstoykov requested review from ankur22 and codebien and removed request for a team May 14, 2025 15:34
@mstoykov mstoykov added this to the v1.1.0 milestone May 14, 2025
@mstoykov
Copy link
Contributor Author

Btw this does reduce the k6 binary by around 4mb 🎉

@mstoykov mstoykov requested a review from inancgumus May 15, 2025 09:00
@mstoykov mstoykov changed the title Cdprotobump Update chromedp/cdproto and related changes May 15, 2025
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 🚀

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.

Thanks for this change 🙏

@mstoykov mstoykov merged commit c68e4f8 into master May 16, 2025
32 checks passed
@mstoykov mstoykov deleted the cdprotobump branch May 16, 2025 09:08
mstoykov added a commit that referenced this pull request May 20, 2025
This was missed as a thing that is needed in #4785.

This is basically what easyjson was doing before.

Due to some internal package structure I opted for a little copying over
a little dependency. Mostly as the common package tests depend on
tests/ws.
mstoykov added a commit that referenced this pull request May 20, 2025
This was missed as a thing that is needed in #4785.

This is basically what easyjson was doing before.

Due to some internal package structure I opted for a little copying over
a little dependency. Mostly as the common package tests depend on
tests/ws.
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