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

Last batch logs missing when using xdist #226

Closed
yakovbabich opened this issue Nov 2, 2023 · 2 comments
Closed

Last batch logs missing when using xdist #226

yakovbabich opened this issue Nov 2, 2023 · 2 comments
Labels

Comments

@yakovbabich
Copy link

When running test execution with xdist, the last batch of logs is not appearing in the UI

pytest-reportportal 5.3.0
reportportal-client 5.5.3

In the implementation of pytest_sessionfinish in the plugin, last batch is being flushed only in the controller's finish_launch() method (which is make sense) and the service in each worker is stopped without performing last batch flushing. So in case, the worker has not flushed logs (due to batch size didn't reach max), those logs are not being sent to server and lost.

@yakovbabich yakovbabich added the bug label Nov 2, 2023
@HardNorth
Copy link
Member

@yakovbabich OK, I'll add another flush on close.

@HardNorth HardNorth transferred this issue from reportportal/agent-python-pytest Nov 2, 2023
@HardNorth
Copy link
Member

Fixed in: https://github.com/reportportal/client-Python/releases/tag/5.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants