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(measurexlite): move OperationLogger to logx #1246

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Sep 11, 2023

Checklist

  • I have read the contribution guidelines
  • reference issue for this pull request: engine: adapt to use bridges probe#2531
  • if you changed anything related to how experiments work and you need to reflect these changes in the ooni/spec repository, please link to the related ooni/spec pull request: N/A
  • if you changed code inside an experiment, make sure you bump its version number: N/A

Description

I am starting to look into how to support beacons into the codebase as explained by ooni/probe#2531.

The first issue that I stumbled upon is that there is excessive coupling between packages at the lower-levels, which we can reduce with easy refactoring, and which would help reasoning on what to do to address the underlying issue.

This diff is the first minor step towards cleaning up the code a bit: we are moving a functionality that pertains to logging from measurexlite to logx (which is where it should be).

While there, I noticed I needed to run go mod tidy to update the go.mod and go.sum files, which were outdated.

I am starting to look into how to support beacons into the codebase
as explained by ooni/probe#2531.

The first issue that I stumbled upon is that there is excessive
coupling between packages at the lower-levels, which we can reduce
with easy refactoring, and which would help reasoning on what to
do to address the underlying issue.

This diff is the first minor step towards cleaning up the code
a bit: we are moving a functionality that pertains to logging
from measurexlite to logx (which is where it should be).

While there, I noticed I needed to run `go mod tidy` to update
the `go.mod` and `go.sum` files, which were outdated.
@bassosimone
Copy link
Contributor Author

The logx package has 100% coverage, so I think the coverage reduction comes from removed lines of code.

@bassosimone bassosimone merged commit 43f1980 into master Sep 11, 2023
6 checks passed
@bassosimone bassosimone deleted the issue/2531 branch September 11, 2023 14:37
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
## Checklist

- [x] I have read the [contribution
guidelines](https://github.com/ooni/probe-cli/blob/master/CONTRIBUTING.md)
- [x] reference issue for this pull request:
ooni/probe#2531
- [x] if you changed anything related to how experiments work and you
need to reflect these changes in the ooni/spec repository, please link
to the related ooni/spec pull request: N/A
- [x] if you changed code inside an experiment, make sure you bump its
version number: N/A

## Description

I am starting to look into how to support beacons into the codebase as
explained by ooni/probe#2531.

The first issue that I stumbled upon is that there is excessive coupling
between packages at the lower-levels, which we can reduce with easy
refactoring, and which would help reasoning on what to do to address the
underlying issue.

This diff is the first minor step towards cleaning up the code a bit: we
are moving a functionality that pertains to logging from measurexlite to
logx (which is where it should be).

While there, I noticed I needed to run `go mod tidy` to update the
`go.mod` and `go.sum` files, which were outdated.
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.

1 participant