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

Use DefaultServices for server_test #4566

Merged
merged 1 commit into from Jul 5, 2023
Merged

Conversation

MichaelSnowden
Copy link
Contributor

What changed?

  1. We now use ForServices(DefaultServices) in the server test.
  2. In addition, we only check error messages while the server is starting and running, not while it is shutting down.

Why?

  1. This test wasn't doing much without ForServices, which I mistakenly removed in a previous PR. It was just starting the server but no services.
  2. The volume and variety of errors during shutdown is intractable

How did you test it?
I ran it locally 10 times, and twice on the CI.

Potential risks
Could easily become a flaky test.

Is hotfix candidate?
No

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner June 30, 2023 07:35
d.on.Store(false)
}

func (d *errorLogDetector) Warn(msg string, _ ...tag.Tag) {
Copy link
Member

Choose a reason for hiding this comment

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

should this (and Error) pass through the message to the underlying Logger? if not, maybe we shouldn't even have the Logger and just implement the rest of the methods as no-ops? if so, maybe we should make the Logger a stdout logger for help debugging?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The underlying logger was a noopLogger, and I re-used it for the sake of brevity. However, I think that using a real logger and delegating to it for debugging is probably better. Updated.

@MichaelSnowden MichaelSnowden force-pushed the snowden/default-services branch 3 times, most recently from d4e0ce9 to 3dcc0e1 Compare July 3, 2023 22:10
@MichaelSnowden MichaelSnowden requested a review from dnr July 3, 2023 22:13
@MichaelSnowden MichaelSnowden enabled auto-merge (squash) July 3, 2023 23:26
@MichaelSnowden MichaelSnowden merged commit 17259db into master Jul 5, 2023
10 checks passed
@MichaelSnowden MichaelSnowden deleted the snowden/default-services branch July 5, 2023 16:35
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.

None yet

2 participants