konveyor / tackle2-addon-analyzer

Apache License 2.0
0 stars 12 forks source link

Analysis logs should be available for debugging #61

Closed pranavgaikwad closed 10 months ago

pranavgaikwad commented 11 months ago

It is hard to debug issues without having access to full analysis logs. It'd be great if analysis logs could be stored somewhere, I don't know the right answer where, but there seems to be a need of being able to look at full analysis logs.

jortel commented 10 months ago

Solution

For all addons: command output will be uploaded to the hub and attached to the task (TaskReport).

Add new checkbox to the analysis advanced options page:

[ ] Enable enhanced details.

When enabled (true) analyzer command output will be reported (Live) to the hub as it is emitted.

A new checkbox added to the analysis detail modal. When checked, the attached (output) files are merged into the activity after the command is reported.

[ ] Merged 

When enabled (true) output is appended to the file (uploaded as it's output by the command) to the hub. This is rate limited <= 1 second using a auto-adjusted back-off. The files will be injected to the Task.Activity by the GET /tasks/:id?merged=1 endpoint.

Long term: The files can be listed, viewed and downloaded on a new Tab on the "Analysis Detail" modal.

jortel commented 10 months ago

Closed: #68