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

[Bug]: Tail rolling files test is flaky #2392

Open
DABH opened this issue Jan 4, 2024 · 5 comments · Fixed by #2412
Open

[Bug]: Tail rolling files test is flaky #2392

DABH opened this issue Jan 4, 2024 · 5 comments · Fixed by #2412

Comments

@DABH
Copy link
Contributor

DABH commented Jan 4, 2024

🔎 Search Terms

zippedArchive

The problem

[Edit: see bottom of thread; original test may be fixed now but another test may be flaky...]

See #2337 (comment)

This may indicate that the zippedArchive functionality itself is flaky; further investigation is required here. Hoping that the PR authors there or someone else from the community can step in and help investigate and resolve... 🙏

What version of Winston presents the issue?

master

What version of Node are you using?

16, 18

@DABH
Copy link
Contributor Author

DABH commented Feb 16, 2024

@Pulkit0729 @pixtron, wondering if there's any chance you might be able to look into this? Huge quality of life issue for maintaining the repository, unfortunately (I'm manually re-running lots of tests on PRs to get "good runs" for this flaky test). My biggest concern is whether just the test is flaky, or whether the underlying functionality itself doesn't work sometimes...

@DABH DABH added the Important label Feb 16, 2024
@Pulkit0729
Copy link
Contributor

Ok, i will update you on this @DABH

@pixtron
Copy link
Contributor

pixtron commented Feb 16, 2024

By reading the test, to me it looks like a race condition in the test itself.

When logged is emitted we are not sure, if the content has already been flushed to disk or not. If the content has already been flushed, a rotate is save and testarchive.log.gz might already exist (compression started or even already finished). Not sure how to fix this test tho.

@Pulkit0729
Copy link
Contributor

@DABH Added a Pr with the fix, it was a silly mistake from my side

@DABH DABH closed this as completed in #2412 Mar 4, 2024
@DABH
Copy link
Contributor Author

DABH commented Mar 4, 2024

It appears that even after merging @Pulkit0729's PR, testtailrollingfiles is still flaky... so going to leave this issue open / update the details since I think the flake might be related to #2337 still (I don't recall ever seeing that test be flaky before #2337 was merged...)

@DABH DABH reopened this Mar 4, 2024
@DABH DABH changed the title [Bug]: zippedArchive test is flaky [Bug]: Tail rolling files test is flaky Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants