Skip to content

CxSAST queuing feature doesn't have any logs #198

@cx-samuel-cordeiro

Description

@cx-samuel-cordeiro

There isn't any logging when waiting for scan completion when queuing scans in the SDK backend, currently, logging in queuing is limited to when the timeout is reached.

We need to have informative logging at least in debug mode so we can understand if we're waiting for a scan to finish before committing a new one or else we can't even understand if we even reach the queuing phase.

My proposal:

  1. Add INFO logging once a scan is queued in the logs here with the scan ID outputted:
  2. Add debug logging for each 5 or 10 minutes informing that the scan with the given ID of the current project hasn't finished yet here:

This is also related to CxFlow issue 905 enhancement since PRs are not receiving prompt Markdown feedback on whether a scan was queued and/or is still in queue, so that CxFlow knows that the scan is still waiting in queue to be triggered in CxSAST.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions