Skip to content

Report incomplete scans and keep partial results out of the workspace cache #34

In review

Description

@sh00kapic

With one selected analyzer unavailable, ctrace can emit valid SARIF from the remaining tools and exit 3. A macOS scan logged a missing IKOS executable, a missing runtime analyzer and TscanCode exiting 1. With findings present, the extension announced completion and was able to cache the partial report. The WSL fallback script also returns its final cleanup command’s status, which can hide the CLI exit code.

Expected behavior and verification

Display the available findings with an incomplete status and identify failed tools from CLI output when available. Preserve the CLI status on WSL, keep exit 2 (completed with findings) distinct from exit 3, and retry incomplete files on the next incremental scan, including after upgrading from a cache containing partial results.

extension.ts line 528 · ctrace/CommandBuilder.ts line 331

Activity

  1. added
    bug
    on Nov 20, 2026
  2. Arthurvroum commented on Nov 25, 2026

    @Arthurvroum
    Collaborator

    Fixed on branch 34-report-incomplete-scans (160b622), pull request #48.

    • Exit code 3 marks the file as incomplete. Its findings are still shown, and the run ends with "Analysis incomplete" and the names of the tools that could not run, read from the ctrace output. Exit code 2 (completed with findings) works as before.
    • Only complete analyses are cached, so an incomplete file is analysed again on the next incremental scan. Cache entries written before this flag existed are treated as possibly partial and redone once.
    • The WSL fallback script now keeps the ctrace exit status after its cleanup command.

    Tests: incomplete files are shown and retried, legacy cache entries are redone, failed tools are parsed from the output, and the WSL script status is checked. This branch is built on top of #40 and #39. Unit and workspace suites pass locally (Linux).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions