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

Refactor registry back into browser package #902

Merged
merged 9 commits into from
May 23, 2023
Merged

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented May 23, 2023

Description of changes

The browser package doesn't quite reflect what is does, so initially the change was made to rename it to module. This affects the import in k6. For now it's a lot simpler to just keep it as browser.

It also makes more sense to have the registry types close to where they're being used, which is in the browser package, so pidRegistry and remoteRegistry have been moved back into a new registry.go file in the browser package.

Changes based on: #899 (review)

Checklist

Tasks

This rename better reflects what the package does, which is the entry
point when k6 calls the browser module to start working with it. It
will also be used to initialise test wide resources such as the pid and
ws url registries.
We're moving the pid registry back into module. It makes more sense
for the pid registry to live in the same package as module since it is
only used in this package.
We're moving the remote registry back into the module package since it
is only ever used there.
@ankur22 ankur22 requested review from ka3de and inancgumus May 23, 2023 09:37
@ankur22 ankur22 self-assigned this May 23, 2023
@ankur22 ankur22 added this to the v0.10.0 milestone May 23, 2023
k6 depends on the import to be browser and not module.
This no longer stutters.
@ankur22 ankur22 changed the title Refactor/module registry Refactor registry back into browser package May 23, 2023
Copy link
Member

@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.

👍

Copy link
Collaborator

@ka3de ka3de left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@ankur22 ankur22 merged commit e8b4d6e into main May 23, 2023
@ankur22 ankur22 deleted the refactor/module-registry branch May 23, 2023 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants