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

Fix a flaky unit test in loki.process #1591

Merged
merged 2 commits into from
Sep 2, 2024
Merged

Conversation

ptodev
Copy link
Collaborator

@ptodev ptodev commented Aug 29, 2024

There is a genuine bug in the code which is causing a test to be flaky. However, I'm not classifying this PR as a bugfix because in practice the bug shouldn't cause issues for Alloy users. The leak would only happen when Run completes, which can only happen once for the lifetime of the process - when the process exits. This fix was ported to Agent as well.

@ptodev ptodev requested a review from thampiotr August 29, 2024 17:46
Copy link
Contributor

@thampiotr thampiotr left a comment

Choose a reason for hiding this comment

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

LGTM % couple of suggestions for the naming to make it easier to read

internal/component/loki/process/process.go Outdated Show resolved Hide resolved
internal/component/loki/process/process.go Outdated Show resolved Hide resolved
@ptodev ptodev force-pushed the ptodev/fix-flaky-loki-test branch from 0c0a49f to 5225524 Compare September 2, 2024 15:55
@ptodev ptodev merged commit 2fdacf7 into main Sep 2, 2024
18 checks passed
@ptodev ptodev deleted the ptodev/fix-flaky-loki-test branch September 2, 2024 16:22
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants