Skip to content

Include skiplist file in the analysis info#4798

Open
barnabasdomozi wants to merge 1 commit intoEricsson:masterfrom
barnabasdomozi:extend_analysis_info
Open

Include skiplist file in the analysis info#4798
barnabasdomozi wants to merge 1 commit intoEricsson:masterfrom
barnabasdomozi:extend_analysis_info

Conversation

@barnabasdomozi
Copy link
Collaborator

The skiplist file is already included in the store ZIP, but it is not currently stored in the database.
This patch introduces a new table called AnalysisInfoFile, which is intended to store files related to analysis information. The actual file contents are stored separately in the FileContent table.
With this PR, only the skipfile is included as an analysis info file, but this could be extended later.

@barnabasdomozi barnabasdomozi added database 🗄️ Issues related to the database schema. server 🖥️ new feature 👍 New feature request labels Mar 6, 2026
@barnabasdomozi barnabasdomozi force-pushed the extend_analysis_info branch 3 times, most recently from 8586d7c to c1b9b9a Compare March 6, 2026 08:35
@barnabasdomozi barnabasdomozi marked this pull request as draft March 6, 2026 08:40
@barnabasdomozi barnabasdomozi added the WIP 💣 Work In Progress label Mar 6, 2026
@barnabasdomozi barnabasdomozi force-pushed the extend_analysis_info branch 4 times, most recently from a31604e to 3661f49 Compare March 8, 2026 22:53
The skiplist file is already included in the store ZIP,
but it is not currently stored in the database.
This patch introduces a new table called AnalysisInfoFile,
which is intended to store files related to analysis information.
The actual file contents are stored separately in the FileContent
table.
With this PR, only the skipfile is included as an analysis info
file, but this could be extended later.
@barnabasdomozi barnabasdomozi marked this pull request as ready for review March 8, 2026 23:03
@barnabasdomozi barnabasdomozi removed the WIP 💣 Work In Progress label Mar 8, 2026
Copy link
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the original config file name.
Otherwise looks good.

hashlib.md5(report_dir_path.encode('utf-8')).hexdigest())

skip_file = os.path.join(zip_report_dir, 'skip_file')
if os.path.isfile(skip_file):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to preserve the original file name of the config files as the user sees the command with its oriignal file name.
Now the name skip_file is wired in. ... And I see that it is wired in at the analysis client.

I suggest creating a "conf" subdirectory in the report_directory where you collect all config files used by the CodeChecker analyze command with their original names.

Then the name could be preserved.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database 🗄️ Issues related to the database schema. new feature 👍 New feature request server 🖥️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants