action #102786
Updated by livdywan about 3 years ago
## Motivation Serial text results can have a content like `Unable to read glibc_locale-7.txt.`. This text is rendered directly in the little text preview boxes. "record_info" boxes show their title correctly but might miss content. While this can be similar with image results, these are refreshed a few times on the client side using javascript, until a proper image is received. There should be some measurement taken to ensure that all results are shown properly. Maybe a solution could be found, that could eliminate the need of the image reload approach. ![Screenshot_20211124_125544_openqa_showing_unable_to_read_text_results_in_job_details_before_refreshing_job_just_passed.png](Screenshot_20211124_125544_openqa_showing_unable_to_read_text_results_in_job_details_before_refreshing_job_just_passed.png) ![Screenshot_20211124_130016_openqa_showing_unable_to_read_on_record_info_box_detail.png](Screenshot_20211124_130016_openqa_showing_unable_to_read_on_record_info_box_detail.png) ## Impact Only webUI users looking at job detail pages while openQA jobs are running, only text results (not simple text boxes and not screenshots) ## Reproducible Not always reproducible, likely more probable on tests with many serial text result boxes, e.g. dheidler suggested https://openqa.suse.de/tests/latest?arch=aarch64&distri=sle&flavor=JeOS-for-RaspberryPi&machine=aarch64&test=jeos-main-RPi&version=15-SP4 okurz and dheidler could both reproduce the problem while having the job https://openqa.suse.de/tests/7734443# from [this scenario](https://openqa.suse.de/tests/latest?arch=x86_64&distri=sle&flavor=Online&machine=64bit&test=extra_tests_webframeworks&version=15-SP4) opened in our browser (we used Firefox and Vivaldi/Chromium at the same time and reproduced it in both). As soon as the job changed from "running" to "passed" the job detail info box correctly showed the status and all steps showed up but the content was "Unable to read" for all thumbnail boxes in the "flask" module, both for "serial text results" as well as "record_info" boxes. Refreshing the page or opening the same job in another browser tab rendered all entries correctly, no error shown. ## Acceptance criteria * **AC1:** Both image and text results are reproducibly shown in job details whenever they are available while the job is running ## Suggestions - Find a way to reproduce the problem in our tests, e.g. upload text results and wait for the job to complete - Check existing JavaScript code for image polling (function `reloadBrokenThumbnails()`) and possibly do something similar for text results ## Workaround For the time being as a user refresh the page, e.g. "F5" key during or after test execution. ## Out of scope - Actual missing results are not included here