Skip to content

fix: Check gzip log via magic numbers#1891

Open
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:fix/check-logviewer-decompression
Open

fix: Check gzip log via magic numbers#1891
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:fix/check-logviewer-decompression

Conversation

@alanpeixinho
Copy link
Copy Markdown
Contributor

We are directly checking the bytes content of the log. If, for any reason, the content is not compressed, or is compressed but with wrong file extension, we are still going to properly decompress the file content.

How to test

Check for both cases (compressed and uncompressed) of logs, and verify they behave properly (valid utf-8 characters being rendered).
Examples for both cases:

  1. https://staging.dashboard.kernelci.org/log-viewer?itemId=linaro%3A3DZmXcQoam87yzdZfwJ5Wo3DrnA&o=linaro&type=build&url=https%3A%2F%2Fstorage.tuxsuite.com%2Fpublic%2Flinaro%2Flkft%2Fbuilds%2F3DZmXcQoam87yzdZfwJ5Wo3DrnA%2Fbuild.log
  2. https://staging.dashboard.kernelci.org/log-viewer?itemId=ti%3Ad7378c1959574935bc056d7b&o=ti&type=test&url=http%3A%2F%2Ffiles.kernelci.org%2F%2Fti%2Fnext%2Fmaster%2Fnext-20260508%2Farm64%2Fdefconfig%2Blab-setup%2Bkselftest%2Fgcc-14%2Fbaseline-nfs-boot.nfs-j721e-idk-gw-8_132543899.txt.gz

Closes #1887

  * We are directly checking the bytes content of the log.
    If, for any reason, the content is not compressed, or is compressed
    but with wrong file extension, we are still going to properly
    decompress the file content.

Closes kernelci#1887
@alanpeixinho alanpeixinho marked this pull request as ready for review May 12, 2026 11:58
@alanpeixinho alanpeixinho force-pushed the fix/check-logviewer-decompression branch from f92b72a to 7634bf4 Compare May 12, 2026 11:59
@gustavobtflores gustavobtflores added the bug Something isn't working label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log Viewer shows the compressed binary of the full test log

2 participants