Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-3739

Cherry-pick bot: Update error messages posted to gerrit to include a friendly summary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: production
    • Fix Version/s: None
    • Component/s: Cherry-pick bot
    • Labels:
      None

      Description

      Current error messages posted to gerrit are not always helpful and usually only contain the raw error code and message returned by some request to gerrit. While some users may be familiar enough with git errors or gerrit permissions to interpret these messages, error messages posted to changes should include a human-readable summary (with a suggestion of how to handle it where applicable) for each error case that a user may encounter.

       

      Current format:

      INFO: The cherry-pick bot failed to automatically stage this change to CI. Please try to stage it manually.
      Contact gerrit administration if you continue to experience issues.
      
      Reason: {
          "status": 403,
          "data": "stage change for continuous integration not permitted\n"
      }

      Friendly format:

      INFO: The cherry-pick bot failed to automatically stage this change to CI.
      This error may occur when the branch this change was picked to is closed to new changes. 
      If you're not able to stage it manually, check to make sure that the
      branch is still open and then contact the gerrit admins.
      
      Raw Error from bot action "stage": {
          "status": 403,
          "data": "stage change for continuous integration not permitted\n"
      }

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              daniel.smith Daniel Smith
              Reporter:
              daniel.smith Daniel Smith
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes