Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## [Unreleased]
### Fixed
- A rare case when server not capturing logs for auto analysis on Launch finish.

## [5.7.8]
### Changed
- `typing-extensions` dependency version update, by @HardNorth
- `certify` dependency version update, by @HardNorth
Expand Down
4 changes: 3 additions & 1 deletion reportportal_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from datetime import datetime
from enum import Enum
from os import getenv
from time import sleep
from typing import Any, Optional, TextIO, Union

from requests.adapters import DEFAULT_RETRIES, HTTPAdapter, Retry
Expand Down Expand Up @@ -906,6 +907,7 @@ def finish_launch(
PASSED, FAILED, STOPPED, SKIPPED, CANCELLED
:param attributes: Launch attributes
"""
self._log(self._log_batcher.flush())
if self.use_own_launch:
if not self.__launch_uuid:
logger.warning("Attempt to finish non-existent launch")
Expand All @@ -920,6 +922,7 @@ def finish_launch(
replace_binary_characters=self.replace_binary_chars,
description=kwargs.get("description"),
).payload
sleep(3) # To allow back to pick up all logs and not miss them for auto-analysis. Dirty hack, rework.
response = HttpRequest(
self.session.put,
url=url,
Expand All @@ -931,7 +934,6 @@ def finish_launch(
if not response:
return None
logger.debug("finish_launch - ID: %s", self.__launch_uuid)
self._log(self._log_batcher.flush())
return None

def update_test_item(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from setuptools import find_packages, setup

__version__ = "5.7.8"
__version__ = "5.7.9"

TYPE_STUBS = ["*.pyi"]

Expand Down
Loading