Skip to content

Indicate BOM processing failure #2264

Closed

Description

@rkg-mm

Current Behavior

In rare cases processing a BOM file may fail. Since processing happens after the upload has finished and returned a 200-OK, this is only visible in logfiles. If someone has attached a log-analytics system to his logfiles, or is using email-notifications on errors, he might notice a problem, but otherwise it's hard to identify. Since many won't have log-systems in place, and email errors also contain a lot of noise about vuln-db updates, many won't have that either. Especially not the ones responsible for specific projects.

Proposed Behavior

Even though implementing a full error notification in UI might be too much for this project, at least some indication on a project would be helpful.

Idea:

  • If processing a BOM file produces errors, set a flag with timestamp at the project "bomUploadFailure=DateTime".
  • Indicate with a red exclamation mark or similar icon in the project List and Project view and a tooltip "Last BOM Upload at [Timestamp] produced errors. See Logs for Details."
  • If a following BOM upload succeeded without errors, the timestamp shall be cleared again

This would help to notice problems at low cost, and the timestamp gives a chance to identify the issue in logfiles/log-analytics systems. Ideally, the Project ID should be logged at such errors if not the case already, too. A project responsible could then request help from administrators if necessary.

Checklist

Activity

  1. added
    enhancement
    on Dec 9, 2022
  2. added
    p3
    on Dec 9, 2022
  3. valentijnscholten commented on Dec 13, 2022

    @valentijnscholten
    Contributor

    Could it be a notification i.e. BOM_FAILED? In a ideal world failing BOM uploads should be very very rare so not sure if it's worth the effort to add more fields, deal with timing/parallelism, etc.

  4. rkg-mm commented on Dec 20, 2022

    @rkg-mm
    ContributorAuthor

    Hmm ok I agree, this could be done as additional PORTFOLIO alert instead. The current alerts don't cover it.

  5. msymons commented on Dec 20, 2022

    @msymons
    Member

    this could be done as additional PORTFOLIO alert instead

    "instead" or "in addition to"? There are merits to both approaches.

  6. rkg-mm commented on Dec 20, 2022

    @rkg-mm
    ContributorAuthor

    I meant: Instead of a UI visibility, put a new option in PORTFOLIO alerts :)
    Since this really should not be a case happening often, an alert should be sufficient.

  7. nscuro commented on Feb 24, 2023

    @nscuro
    Member

    We definitely also need to communicate / store the failure reason somehow. Having this information persistent (until the next BOM upload succeeds, at least), would allow clients to determine whether or not they should retry the upload.

  8. rkg-mm commented on Feb 24, 2023

    @rkg-mm
    ContributorAuthor

    @nscuro the client would not get this information because the failure happens in a task after the upload call finished.

  9. nscuro commented on Feb 24, 2023

    @nscuro
    Member

    @rkg-mm Clients are already polling the API for the processing status. We could add a new endpoint that, instead of just returning true or false, returns a proper status (COMPLETED, FAILED, UNKNOWN), or even an entire object with more details.

    That way clients would receive an indication as to if they should check for error information. Or we find a way to provide this info directly in the status response.

  10. nscuro commented on Feb 24, 2023

    @nscuro
    Member

    But perhaps adding a notification and providing more details to clients are two separate enhancements. The former is trivial to add, the latter requires a bit more planning.

  11. added this to the 4.8 milestone on Mar 22, 2023
  12. nscuro commented on Mar 22, 2023

    @nscuro
    Member

    Implemented in #2600. Thanks @rkg-mm & @rbt-mm!

  13. github-actions commented on Apr 22, 2023

    @github-actions
    Contributor

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  14. locked as resolved and limited conversation to collaborators on Apr 22, 2023
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

    enhancementp3

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions