Azure-pipelines-tasks: Only up to 10 warnings logged from a ShellScript task are displayed in the build summary

Created on 25 Nov 2019  路  5Comments  路  Source: microsoft/azure-pipelines-tasks

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Question

Enter Task Name: ShellScript

Environment

  • Server - Azure Pipelines

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

      • Org: ETCLabs

      • Project: RDMnet

      • Build number: 20191125.7

  • Agent - Hosted

    • If using Hosted agent, provide agent queue name: Azure Pipelines

Issue Description

In this build: https://dev.azure.com/ETCLabs/RDMnet/_build/results?buildId=572&view=results
Stage "Build and Test RDMnet"
Job "Documentation Deploy"
Step "Generate and Push Documentation"

This ShellScript task uses the command line logging syntax to log 365 warnings. Only 10 of the warnings from this step are displayed in the summary view. I see no indication anywhere in the UI that this step produced more than 10 warnings, unless I look at the raw log. Is this expected?

Task logs

Attached.
logs_572.zip

Build question

All 5 comments

Yeah, that's expected. We only render the first 10 in the UI and flag the total number as well (373 in this case)

Thanks @damccorm. I've played around with this a little more and gathered some more info.

When I have the "multi-stage pipelines" view (ostensibly the "new" UI) turned on, there is no indication anywhere in the UI of the total number of warnings. I have to manually inspect the build logs to find out.

image

image

image

When I turn multi-stage pipelines view off, I do get the total warnings number correctly in the overall build summary, but not in the individual step descriptions:

image

image

So if the expected behavior is to accurately display the total number of warnings, but only show up to 10 in detail, it looks like things might not entirely be behaving as expected. Multi-stage view is supposed to be the "new" UI but appears to be worse in this regard - I can find no indication anywhere in that view of the correct total number of warnings.

Repathing to build to take a look at the UI - it seems like we're correctly reporting the warnings, but maxing them out at 10 in some spots.

Just wanted to chime back in to say that the warnings display on the multi-stage pipelines UI is much nicer now! Thank you for the work! 馃槃

Thanks for the positive feedback, happy to help!

Was this page helpful?
0 / 5 - 0 ratings