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

Adds xk6-browser v1.0.2 release notes #3260

Merged
merged 7 commits into from
Aug 11, 2023

Conversation

ka3de
Copy link
Contributor

@ka3de ka3de commented Aug 9, 2023

What?

Adds the release notes corresponding to xk6-browser v1.0.2.

@codecov-commenter
Copy link

codecov-commenter commented Aug 9, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release-notes-v046@4c1b2bd). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head fad6c81 differs from pull request most recent head 4cfd22b. Consider uploading reports for the commit 4cfd22b to get more accurate results

@@                  Coverage Diff                  @@
##             release-notes-v046    #3260   +/-   ##
=====================================================
  Coverage                      ?   73.22%           
=====================================================
  Files                         ?      259           
  Lines                         ?    19899           
  Branches                      ?        0           
=====================================================
  Hits                          ?    14571           
  Misses                        ?     4404           
  Partials                      ?      924           
Flag Coverage Δ
ubuntu 73.10% <0.00%> (?)
windows 73.07% <0.00%> (?)

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

@ka3de ka3de force-pushed the release-notes-v046-browser branch 2 times, most recently from c2a8c21 to be5dbd5 Compare August 9, 2023 14:59
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! This is great 👍

I left some pretty minor suggestions to ponder over.

release notes/v0.46.0.md Outdated Show resolved Hide resolved
release notes/v0.46.0.md Outdated Show resolved Hide resolved
release notes/v0.46.0.md Outdated Show resolved Hide resolved
release notes/v0.46.0.md Outdated Show resolved Hide resolved
release notes/v0.46.0.md Show resolved Hide resolved
release notes/v0.46.0.md Outdated Show resolved Hide resolved
release notes/v0.46.0.md Outdated Show resolved Hide resolved
@ka3de ka3de force-pushed the release-notes-v046-browser branch from e41296c to 86e3f0b Compare August 10, 2023 07:06
@@ -8,6 +8,19 @@ k6 `v0.46` is here 🎉! This release includes:

- `#pr`, `<small_break_1>`
- `#pr`, `<small_break_2>`
- [browser#868](https://github.com/grafana/xk6-browser/pull/868) Removes support for browser `devtools` option.
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this shouldn't be in the browser section below. And here just to be "Browser has a number of breaking changes due to change in vision on how it will be used, full list -> link"

Currently, The whole first page of the release notes is breaking changes ... and they are only in browser.

Anyone not interested in that will just gloss over them, potentially missing something (if we have other ones).

Additionally reading this list will not really tell users they likely need to rewrite big parts of their scripts(or at least how to start browsers) - this happens in the other section.

cc @grafana/k6-core

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which browser section? You mean the "Automatic Browser Lifecycle Handling" point in "New Features" section? Or you mean adding a dedicated browser section at least for this release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Personally I think providing the full list as it is now it's ok, but maybe we could add an H3 header just before the browser changes inside the "Breaking changes" section with an introduction to the changes and links to the "Automatic Browser Lifecycle Handling" point, which summarizes most of the important changes, similar to what you said I believe.

Our idea is to write a migration guide that will assist users in this transition, but unfortunately this is not yet ready so we can link it directly from the release notes.

Copy link
Contributor

@codebien codebien Aug 10, 2023

Choose a reason for hiding this comment

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

I would suggest having the following structure:

Breaking changes

Automatic Browser Lifecycle Handling

A small introduction (as you already added in the current feature section)

  • the list of breaking changes

It sounds a bit unfriendly to get directly the list of breaking changes without any introduction that provides context about so many breaking changes. For the same reason, it makes sense to me to have them all together in the same section as I shared here #3260 (comment).

Copy link
Member

Choose a reason for hiding this comment

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

We can add a link to the migration guide here as well. More info: #3260 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See a proposal for reorganization in 9349278.

ka3de added a commit that referenced this pull request Aug 10, 2023
@@ -89,6 +143,22 @@ _Format as `<number> <present_verb> <object>. <credit>`_:
- [#3136](https://github.com/grafana/k6/pull/3136) Updates k6 Go dependencies.
- [#3131](https://github.com/grafana/k6/pull/3131) Updates our Pull Request template to be more structured and include a checklist for contributors.
- [#3177](https://github.com/grafana/k6/pull/3177) Updates the version of golangci-lint we use to the latest version.
- [browser#849](https://github.com/grafana/xk6-browser/pull/849) Updates `nil` session log warn to debug level in page attach.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd recommend trying to squash things whenever this is possible. And also, try to see for the record first of all from the k6's user perspective (I mean, how valuable is the record for the user).

Like instead of:

  • Refactored A
  • Refactored B
  • Added test C

It could be easily:

  • Internal refactorings and test improvements (#A, #B, #C)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Personally I would remove many of these internal changes that do not impact the end user. How does this diff look to you?
cc: @ankur22 @inancgumus

diff
diff --git a/release notes/v0.46.0.md b/release notes/v0.46.0.md
index 1f2528a9..d90d7cce 100644
--- a/release notes/v0.46.0.md  
+++ b/release notes/v0.46.0.md  
@@ -143,22 +143,12 @@ _Format as `<number> <present_verb> <object>. <credit>`_:
 - [#3136](https://github.com/grafana/k6/pull/3136) Updates k6 Go dependencies.
 - [#3131](https://github.com/grafana/k6/pull/3131) Updates our Pull Request template to be more structured and include a checklist for contributors.
 - [#3177](https://github.com/grafana/k6/pull/3177) Updates the version of golangci-lint we use to the latest version.
-- [browser#849](https://github.com/grafana/xk6-browser/pull/849) Updates `nil` session log warn to debug level in page attach.
-- [browser#889](https://github.com/grafana/xk6-browser/pull/889) Refactors `isRemoteBrowser` check.
-- [browser#889](https://github.com/grafana/xk6-browser/pull/899) Refactors pid registry.
-- [browser#902](https://github.com/grafana/xk6-browser/pull/902) Refactors registry back into browser package.
-- [browser#904](https://github.com/grafana/xk6-browser/pull/904) Fixes a race condition in Web Vitals unit test.
-- [browser#906](https://github.com/grafana/xk6-browser/pull/906) Parses the scenarios JSON definition from the `K6_INSTANCE_SCENARIOS` environment variable.
 - [browser#918](https://github.com/grafana/xk6-browser/pull/918) Replaces the usage of `os.LookupEnv` for k6 `LookupEnv` and abstracts environment variables lookup.
-- [browser#935](https://github.com/grafana/xk6-browser/pull/935) Refactors the integration test browser implementation.
-- [browser#936](https://github.com/grafana/xk6-browser/pull/936) Removes the `BaseEventEmitter` from browser.
-- [browser#959](https://github.com/grafana/xk6-browser/pull/959) Fixes `TestFrameNoPanicNavigateAndClickOnPageWithIFrames` test.
 - [browser#972](https://github.com/grafana/xk6-browser/pull/972) Fixes log level from `warn` to `debug` when `fetchBody` fails due to `context` being canceled on iteration end.
 - [browser#977](https://github.com/grafana/xk6-browser/pull/977) Removes goroutine ID field from logger.
 - [browser#978](https://github.com/grafana/xk6-browser/pull/978) Adds browser extension source log field.
 - [browser#983](https://github.com/grafana/xk6-browser/pull/983) Avoids `onRequestPaused` error log when `context` is canceled.
 - [browser#984](https://github.com/grafana/xk6-browser/pull/984) Ensures CDP requests message ID are unique at the connection scope.
-- [browser#992](https://github.com/grafana/xk6-browser/pull/992) Fixes go mod prometheus dependency issue.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to keep the internal changes but consolidate them as olegbespalov suggested.

As a side note, would the log level changes from warn to debug be classed as improvements since the logs will be less noisy which will impact a user when they're debugging their test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I still think there are changes in the list that are irrelevant for end users, and grouping them just makes the other elements that fall in the same category but are more important to lose "weight/relevance" in the list.

Trying to follow your suggestions, how does this look?

diff
diff --git a/release notes/v0.46.0.md b/release notes/v0.46.0.md
index 1f2528a9..72438375 100644
--- a/release notes/v0.46.0.md  
+++ b/release notes/v0.46.0.md  
@@ -143,22 +143,12 @@ _Format as `<number> <present_verb> <object>. <credit>`_:
 - [#3136](https://github.com/grafana/k6/pull/3136) Updates k6 Go dependencies.
 - [#3131](https://github.com/grafana/k6/pull/3131) Updates our Pull Request template to be more structured and include a checklist for contributors.
 - [#3177](https://github.com/grafana/k6/pull/3177) Updates the version of golangci-lint we use to the latest version.
-- [browser#849](https://github.com/grafana/xk6-browser/pull/849) Updates `nil` session log warn to debug level in page attach.
-- [browser#889](https://github.com/grafana/xk6-browser/pull/889) Refactors `isRemoteBrowser` check.
-- [browser#889](https://github.com/grafana/xk6-browser/pull/899) Refactors pid registry.
-- [browser#902](https://github.com/grafana/xk6-browser/pull/902) Refactors registry back into browser package.
-- [browser#904](https://github.com/grafana/xk6-browser/pull/904) Fixes a race condition in Web Vitals unit test.
+- [browser#849](https://github.com/grafana/xk6-browser/pull/849), [browser#972](https://github.com/grafana/xk6-browser/pull/972), [browser#977](https://github.com/grafana/xk6-browser/pull/977), [browser#978](https://github.com/grafana/xk6-browser/pull/978), [browser#983](https://github.com/grafana/xk6-browser/pull/983) Log fixes and improvements.
+- [browser#889](https://github.com/grafana/xk6-browser/pull/889), [browser#889](https://github.com/grafana/xk6-browser/pull/899), [browser#902](https://github.com/grafana/xk6-browser/pull/902), [browser#935](https://github.com/grafana/xk6-browser/pull/935), [browser#936](https://github.com/grafana/xk6-browser/pull/936) Internal refactors.
+- [browser#904](https://github.com/grafana/xk6-browser/pull/904), [browser#959](https://github.com/grafana/xk6-browser/pull/959) Test fixes.
 - [browser#906](https://github.com/grafana/xk6-browser/pull/906) Parses the scenarios JSON definition from the `K6_INSTANCE_SCENARIOS` environment variable.
 - [browser#918](https://github.com/grafana/xk6-browser/pull/918) Replaces the usage of `os.LookupEnv` for k6 `LookupEnv` and abstracts environment variables lookup.
-- [browser#935](https://github.com/grafana/xk6-browser/pull/935) Refactors the integration test browser implementation.
-- [browser#936](https://github.com/grafana/xk6-browser/pull/936) Removes the `BaseEventEmitter` from browser.
-- [browser#959](https://github.com/grafana/xk6-browser/pull/959) Fixes `TestFrameNoPanicNavigateAndClickOnPageWithIFrames` test.
-- [browser#972](https://github.com/grafana/xk6-browser/pull/972) Fixes log level from `warn` to `debug` when `fetchBody` fails due to `context` being canceled on iteration end.
-- [browser#977](https://github.com/grafana/xk6-browser/pull/977) Removes goroutine ID field from logger.
-- [browser#978](https://github.com/grafana/xk6-browser/pull/978) Adds browser extension source log field.
-- [browser#983](https://github.com/grafana/xk6-browser/pull/983) Avoids `onRequestPaused` error log when `context` is canceled.
 - [browser#984](https://github.com/grafana/xk6-browser/pull/984) Ensures CDP requests message ID are unique at the connection scope.
-- [browser#992](https://github.com/grafana/xk6-browser/pull/992) Fixes go mod prometheus dependency issue.

Copy link
Member

@inancgumus inancgumus Aug 10, 2023

Choose a reason for hiding this comment

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

Consolidation makes more sense 👍

grouping them just makes the other elements that fall in the same category but are more important to lose "weight/relevance" in the list.

+1

would the log level changes from warn to debug be classed as improvements since the logs will be less noisy which will impact a user when they're debugging their test?

I think any UX change better be on the list as its own, and logs are one of them. It might be important for some users.

Copy link
Contributor Author

@ka3de ka3de Aug 10, 2023

Choose a reason for hiding this comment

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

Coming back to this discussion, can you mention which one of the two diffs/presented options do you prefer or provide specific suggestions please? Thank you!
Personally I would opt for the option mentioned in this comment.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm happy with the second suggestion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 4cfd22b.

@ka3de ka3de marked this pull request as ready for review August 10, 2023 10:40
Copy link
Contributor

@codebien codebien left a comment

Choose a reason for hiding this comment

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

LGTM, @ka3de can you rebase for resolving the conflicts, please?

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.

Nice! I like it 🙂

I've left one comment to consider, but otherwise it looks good.

release notes/v0.46.0.md Outdated Show resolved Hide resolved
Refactor the list of breaking changes for xk6-browser v1.0.2 by
providing more context explanation and organization. Also removes the
"Automatic Browser Lifecycle Handling" section written under "New
Features" and merges its content inside the browser breaking changes
section.
@ka3de ka3de force-pushed the release-notes-v046-browser branch from 9349278 to 434e175 Compare August 10, 2023 15:21
@ka3de ka3de merged commit 649f9bb into release-notes-v046 Aug 11, 2023
@ka3de ka3de deleted the release-notes-v046-browser branch August 11, 2023 12:12
oleiade pushed a commit that referenced this pull request Aug 11, 2023
oleiade added a commit that referenced this pull request Aug 14, 2023
* Add release notes v0.46.0 file

* Add release notes template for version 0.46

* changelog: a record for the

* Fill release notes templates for version 0.46

* Bump k6 version to version 0.46

* Update release notes/v0.46.0.md

Co-authored-by: İnanç Gümüş <[email protected]>

* Add loki headers changes

* Add cloud traces to the release notes

* Remove redundant new line

* Drop 3227 from misc section

* Update release notes/v0.46.0.md

Co-authored-by: Ivan <[email protected]>

* Update release notes/v0.46.0.md

Co-authored-by: Ivan <[email protected]>

* feat: gRPC connection's TLS

* Apply PR reviews suggestions

* Move miscelaneous items in dedicated sections

* Fix the mention of the grpc fix

* Cloud output v2 changelog (#3161)

Changelog entry for the Cloud output v2

---------

Co-authored-by: Oleg Bespalov <[email protected]>

* Document xk6-grpc's change

* Adds xk6-browser v1.0.2 release notes (#3260)

* Update release notes/v0.46.0.md

Co-authored-by: Ivan <[email protected]>

* Update release notes/v0.46.0.md

Co-authored-by: Ivan <[email protected]>

* Update release notes/v0.46.0.md

Co-authored-by: Ivan <[email protected]>

* Update release notes/v0.46.0.md

Co-authored-by: Ivan <[email protected]>

* Update release notes/v0.46.0.md

Co-authored-by: Heitor Tashiro Sergent <[email protected]>

* Apply suggestions from code review

Co-authored-by: Heitor Tashiro Sergent <[email protected]>

* Revert consts.go version bump

* Integrate oleg's review

* Apply suggestions from code review

Co-authored-by: Heitor Tashiro Sergent <[email protected]>
Co-authored-by: Ivan <[email protected]>

* Apply Heitor's suggestions

* fix grpc issue mention consistency

* Update release notes/v0.46.0.md

Co-authored-by: Heitor Tashiro Sergent <[email protected]>

* Iterate on the release notes

* Update release notes/v0.46.0.md

Co-authored-by: Ivan <[email protected]>

* Iterate on v0.46 release notes

* Update release notes/v0.46.0.md

Co-authored-by: Ivan <[email protected]>

---------

Co-authored-by: Ivan <[email protected]>
Co-authored-by: Oleg Bespalov <[email protected]>
Co-authored-by: İnanç Gümüş <[email protected]>
Co-authored-by: Mihail Stoykov <[email protected]>
Co-authored-by: Lukasz Gut <[email protected]>
Co-authored-by: ka3de <[email protected]>
Co-authored-by: Heitor Tashiro Sergent <[email protected]>
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.

7 participants