Skip to content

fix: generate missing report formats in git scans - #1019

Closed
deep-sengupta wants to merge 11 commits into
Samsung:mainfrom
deep-sengupta:fix/git-history-missing-report-format
Closed

deep-sengupta wants to merge 11 commits into
Samsung:mainfrom
deep-sengupta:fix/git-history-missing-report-format

Conversation

@deep-sengupta

Copy link
Copy Markdown
Contributor

Problem

Git-history scanning skips a commit if either its JSON or XLSX report already exists.

This can leave the other requested report format missing when both formats are requested.

Fix

Updated the report-existence checks so a commit is skipped only when all requested report formats already exist.

Existing reports are preserved, and missing report formats are generated.

Tests

Added regression tests for both scenarios:

  • JSON report exists, XLSX report is missing.
  • XLSX report exists, JSON report is missing.

Verification

  • Git-history tests passed.
  • Regression tests passed.
  • Formatting checks passed.
  • Broader test suite passed, excluding tests/test_int.py because of an existing indentation error in that file.

@deep-sengupta
deep-sengupta requested a review from a team as a code owner November 18, 2026 17:21
@babenek

babenek commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Totally disagree.
Which report type was choose - that file type semaphore is used.
The code breaks future scan if a semaphore was found.

@babenek babenek closed this Nov 19, 2026
@deep-sengupta
deep-sengupta deleted the fix/git-history-missing-report-format branch November 19, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants