dkuchynskyi: @krasoffski @frizzby @iivanou  Hi guys, is there any chance to force it up?
diff --git a/reportportal_client/service.py b/reportportal_client/service.py
index 7dcba49..2bd83c9 100644
--- a/reportportal_client/service.py
+++ b/reportportal_client/service.py
@@ -482,5 +482,5 @@ class ReportPortalService(object):
 
         return {'agent': agent,
                 'os': platform.system(),
-                'cpu': platform.processor(),
+                'cpu': platform.processor() or 'unknown',
                 'machine': platform.machine()}

incorrect processor info in docker container
platform.processor() is not work in docker container. the value is empty, and cannot post to API.

```python
# tmp fix
        return {'agent': agent,
                'os': platform.system(),
                'cpu': platform.processor(),
                'machine': platform.machine()}
```
tmp fix
```python
        return {'agent': agent,
                'os': platform.system(),
                'cpu': (platform.processor() if platform.processor() else 'unkown'),
                'machine': platform.machine()}
```
diff --git a/tests/test_service.py b/tests/test_service.py
index 20641a7..9d57f80 100644
--- a/tests/test_service.py
+++ b/tests/test_service.py
@@ -3,7 +3,7 @@
 from datetime import datetime
 from pkg_resources import DistributionNotFound
 
-from delayed_assert import expect, assert_expectations
+from delayed_assert import assert_expectations, expect
 import pytest
 from six.moves import mock
 
@@ -103,6 +103,20 @@ class TestReportPortalService:
                 == expected_result)
         assert cond
 
+    @mock.patch('platform.system', mock.Mock())
+    @mock.patch('platform.machine', mock.Mock())
+    @mock.patch('platform.processor', mock.Mock(return_value=''))
+    @mock.patch('pkg_resources.get_distribution', mock.Mock())
+    def test_get_system_information_docker(self):
+        """Test that cpu key value is not empty.
+
+        platform.processor() returns empty string in case it was called
+        inside of the Docker container. API does not allow empty values
+        for the attributes.
+        """
+        result = ReportPortalService.get_system_information('pytest')
+        assert result['cpu'] == 'unknown'
+
     @mock.patch('platform.system', mock.Mock(return_value='linux'))
     @mock.patch('platform.machine', mock.Mock(return_value='Windows-PC'))
     @mock.patch('platform.processor', mock.Mock(return_value='amd'))

pip install -e .[dev]
parse_log_pytest
pytest
pycodestyle pydocstyle pytest delayed-assert requests
3.8
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi==2025.1.31
charset-normalizer==3.4.1
delayed-assert==0.3.6
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
idna==3.10
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
packaging @ file:///croot/packaging_1720101850331/work
pluggy @ file:///tmp/build/80754af9/pluggy_1648042571233/work
pycodestyle==2.12.1
pydocstyle==6.3.0
pytest @ file:///croot/pytest_1717793244625/work
-e git+https://github.com/reportportal/client-Python.git@3df994324efd9444e7163c378a25024372c5a33c#egg=reportportal_client
requests==2.32.3
six==1.17.0
snowballstemmer==2.2.0
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work
urllib3==2.2.3

name: client-Python
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - exceptiongroup=1.2.0=py38h06a4308_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - packaging=24.1=py38h06a4308_0
  - pip=24.2=py38h06a4308_0
  - pluggy=1.0.0=py38h06a4308_1
  - pytest=7.4.4=py38h06a4308_0
  - python=3.8.20=he870216_0
  - readline=8.2=h5eee18b_0
  - setuptools=75.1.0=py38h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tomli=2.0.1=py38h06a4308_0
  - wheel=0.44.0=py38h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - delayed-assert==0.3.6
      - idna==3.10
      - pycodestyle==2.12.1
      - pydocstyle==6.3.0
      - requests==2.32.3
      - six==1.17.0
      - snowballstemmer==2.2.0
      - urllib3==2.2.3
prefix: /opt/conda/envs/client-Python

tests/test_service.py::TestReportPortalService::test_get_system_information_docker
tests/test_service.py::TestServiceFunctions::test_check_convert_to_string tests/test_service.py::TestServiceFunctions::test_dict_to_payload_with_system_key[True] tests/test_service.py::TestServiceFunctions::test_dict_to_payload_with_system_key[False] tests/test_service.py::TestServiceFunctions::test_get_id tests/test_service.py::TestServiceFunctions::test_get_msg tests/test_service.py::TestServiceFunctions::test_get_data tests/test_service.py::TestServiceFunctions::test_get_json tests/test_service.py::TestServiceFunctions::test_get_messages tests/test_service.py::TestReportPortalService::test_start_launch tests/test_service.py::TestReportPortalService::test_finish_launch tests/test_service.py::TestReportPortalService::test_get_system_information tests/test_service.py::TestReportPortalService::test_get_system_information_without_pkg
reportportal_client/service.py
reportportal_client/service.py