Skip to content

test: fix transient fails in log sampling tests #3736

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

Merged
merged 3 commits into from
Mar 17, 2025
Merged

Conversation

dreamorosi
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR updates the e2e test for Logger, related to log sampling, to account for the new mechanism introduced in #3278. The test was using the decorator - which now refreshes the sampling calculation at each request - but was also calling the refresh method manually, which caused double sampling in some cases and causing the test to fail.

As a side quest, I also slightly improved the logs for the e2e tests. In #3665 we adopted a new CLI toolkit and back then I silenced most of the logs except when running in debug mode. Over time I realized that I'd have preferred to have some indication that the stacks were being created/destroyed, so I improved the logs to do that. Now they look like this:

image

Enabling debug mode when re-running still prints out everything.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #3735


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this Mar 17, 2025
@boring-cyborg boring-cyborg bot added the tests PRs that add or change tests label Mar 17, 2025
@pull-request-size pull-request-size bot added the size/M PR between 30-99 LOC label Mar 17, 2025
@dreamorosi
Copy link
Contributor Author

@dreamorosi dreamorosi requested a review from am29d March 17, 2025 14:32
@dreamorosi dreamorosi changed the title test: fix transient fails test: fix transient fails in log sampling tests Mar 17, 2025
@dreamorosi dreamorosi requested review from leandrodamascena and removed request for am29d March 17, 2025 14:55
@dreamorosi dreamorosi merged commit 1dcf438 into main Mar 17, 2025
41 checks passed
@dreamorosi dreamorosi deleted the test/e2e_test_issues branch March 17, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M PR between 30-99 LOC tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maintenance: fix e2e test for log sampling
2 participants