Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41193

Add log API for Org scanning and MBP indexing

    Details

    • Epic Link:
    • Similar Issues:

      Description

      Creation flow needs API to fetch log for organization folder scanning and multi-branch-pipeline indexing logs.

      cc: Cliff Meyers

        Attachments

          Issue Links

            Activity

            Hide
            jamesdumay James Dumay added a comment -

            Vivek Pandey Cliff Meyers I saw this one hanging in the backlog - I assume you want this on the sprint?

            Show
            jamesdumay James Dumay added a comment - Vivek Pandey Cliff Meyers I saw this one hanging in the backlog - I assume you want this on the sprint?
            Hide
            cliffmeyers Cliff Meyers added a comment -

            Yes, please.

            Show
            cliffmeyers Cliff Meyers added a comment - Yes, please.
            Hide
            jamesdumay James Dumay added a comment - - edited

            Vivek Pandey is it possible to also get the actual error that was thrown during Org Scanning or MBP indexing? I'd prefer if we could turn these into better error messages and only show the log if we fail to do that. (ping Cliff Meyers Tom FENNELLY)

            Show
            jamesdumay James Dumay added a comment - - edited Vivek Pandey is it possible to also get the actual error that was thrown during Org Scanning or MBP indexing? I'd prefer if we could turn these into better error messages and only show the log if we fail to do that. (ping Cliff Meyers Tom FENNELLY )
            Hide
            cliffmeyers Cliff Meyers added a comment -

            Per Tom FENNELLY and Jesse we can't really get more information from the event: https://github.com/jenkinsci/blueocean-plugin/pull/700#issuecomment-274851641

            So if we want a way to represent specific errors in the UI, the log API covered by this ticket perhaps needs some was for the client to express that it's looking for more detailed info about an error.

            Show
            cliffmeyers Cliff Meyers added a comment - Per Tom FENNELLY and Jesse we can't really get more information from the event: https://github.com/jenkinsci/blueocean-plugin/pull/700#issuecomment-274851641 So if we want a way to represent specific errors in the UI, the log API covered by this ticket perhaps needs some was for the client to express that it's looking for more detailed info about an error.
            Hide
            vivek Vivek Pandey added a comment -

            James DumayBranchIndexing.run() or FolderComputation.run() does not have anything which can be used to get notified in case of error. Same goes for other Run classes, for example WorkflowRun, which is better than FolderComputation or BranchIndexing, here it notifies pipeline run lifecycle and even sets Result object but even there nothing there that sets build exceptions.

            I also noticed something in WorkflowRun,there I could call WorkflowRun.getExecutionPromise() that gives instance of SettableFuture, where WorkflowRun sets execution errors.

            Cliff Meyers suggested an API for log file search that looks for given text (sort of like grep), but this has limited uses and won't work in all cases. Needs proper spec.

            Or maybe annotated log file, poc I did during Jenkins hackathon might be something we can take up to show logs in segments.

            Show
            vivek Vivek Pandey added a comment - James Dumay BranchIndexing.run() or FolderComputation.run() does not have anything which can be used to get notified in case of error. Same goes for other Run classes, for example WorkflowRun, which is better than FolderComputation or BranchIndexing, here it notifies pipeline run lifecycle and even sets Result object but even there nothing there that sets build exceptions. I also noticed something in WorkflowRun,there I could call WorkflowRun.getExecutionPromise() that gives instance of SettableFuture, where WorkflowRun sets execution errors. Cliff Meyers suggested an API for log file search that looks for given text (sort of like grep), but this has limited uses and won't work in all cases. Needs proper spec. Or maybe annotated log file, poc I did during Jenkins hackathon might be something we can take up to show logs in segments.
            Hide
            jamesdumay James Dumay added a comment -

            Obsolete

            Show
            jamesdumay James Dumay added a comment - Obsolete

              People

              • Assignee:
                vivek Vivek Pandey
                Reporter:
                vivek Vivek Pandey
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: