Project

General

Profile

Actions

Feature #9414

closed

Reuse archive with source files between different error traces on report uploading

Added by Vitaly Mordan almost 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
01/25/2019
Due date:
07/02/2019
% Done:

100%

Estimated time:
(Total: 0.00 h)
Published in build:

Description

Feature #8704 allowed to separated source files from error traces and put them into a single archive, which can be used from any error trace in report to be uploaded.
This helps to reduce report size in several times.
But during its uploading Klever duplicate archive with source file for each error trace in bridge/media/Unsafes/Sources, and thus the original goal (which is to reduce amount of uploaded sources) is not satisfied, feature #8704 is not working as intended.
In order to solve this problem, archive with the same source files should be reused between different error traces not only inside report to be uploaded, but also after uploading.
For example, here is a fragment of report:

{
    "attrs": [
        {
            "name": "Id",
            "value": "1" 
        }
    ],
    "error traces": ["unsafe_1.zip"],
    "id": "/CPAchecker/unsafe_1",
    "parent id": "/CPAchecker",
    "sources": "sources.zip",
    "type": "unsafe" 
},
{
    "attrs": [
        {
            "name": "Id",
            "value": "2" 
        }
    ],
    "error traces": ["unsafe_2.zip"],
    "id": "/CPAchecker/unsafe_2",
    "parent id": "/CPAchecker",
    "sources": "sources.zip",
    "type": "unsafe" 
}

After uploading there should be only one archive with source files, which is reuse by both error traces.
Note, that we cannot merge those two nodes into
{
    "attrs": [
        {
            "name": "Id",
            "value": "1" 
        }
    ],
    "error traces": ["unsafe_1.zip", "unsafe_2.zip"],
    "id": "/CPAchecker/unsafe_1",
    "parent id": "/CPAchecker",
    "sources": "sources.zip",
    "type": "unsafe" 
}

because they have different attributes, some of which will be used during filtration of error traces.


Subtasks 2 (0 open2 closed)

Feature #9460: Support new reports with sourcesClosedVladimir Gratinskiy01/25/201907/02/2019

Actions
Feature #9461: Generate new reports with sourcesClosedEvgeny Novikov01/25/2019

Actions

Related issues 2 (0 open2 closed)

Related to Klever - Feature #8704: Support processing of multiple error traces per one unsafe reportClosedVladimir Gratinskiy02/06/2018

Actions
Related to Klever - Feature #9356: Do not deploy the same build basesClosedIlya Shchepetkov10/29/2018

Actions
Actions

Also available in: Atom PDF