MicrosoftPremier / VstsExtensions

Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
MIT License
56 stars 14 forks source link

Wrong warning count #67

Closed rs200x closed 4 years ago

rs200x commented 4 years ago

Hi,

with the latest update all my checks are failing because of wrong warning count comparison.

2020-01-17T09:57:37.9587261Z ##[section]Starting: Check build quality
2020-01-17T09:57:37.9597292Z ==============================================================================
2020-01-17T09:57:37.9597292Z Task         : Build Quality Checks
2020-01-17T09:57:37.9597292Z Description  : Breaks a build based on quality metrics like number of warnings or code coverage.
2020-01-17T09:57:37.9597292Z Version      : 6.2.4
2020-01-17T09:57:37.9597292Z Author       : Microsoft Premier Services
2020-01-17T09:57:37.9597292Z Help         : [[Docs]](https://github.com/MicrosoftPremier/VstsExtensions/blob/master/BuildQualityChecks/en-US/overview.md)
2020-01-17T09:57:37.9597292Z ==============================================================================
2020-01-17T09:57:38.4267585Z SystemVssConnection exists true
2020-01-17T09:57:38.4927653Z Using LegacyJobResolver
2020-01-17T09:57:38.5217662Z Validating build warnings policy...
2020-01-17T09:57:38.5347668Z Counting warnings from tasks:
2020-01-17T09:57:38.5347668Z - Projektmappe src/...lEngineering.sln erstellen
2020-01-17T09:57:38.5357668Z -   Running MSBuild log analysis...
2020-01-17T09:57:38.7933312Z -   Total warnings: 2409, Filtered warnings: 2409
2020-01-17T09:57:38.7933312Z Total warnings: 2409
2020-01-17T09:57:38.7933312Z Filtered warnings: 2409
2020-01-17T09:57:38.8103259Z Found baseline build with ID 15810.
2020-01-17T09:57:38.8243269Z Counting warnings from tasks:
2020-01-17T09:57:38.8243269Z - Projektmappe src/...Engineering.sln erstellen
2020-01-17T09:57:38.8243269Z -   Running MSBuild log analysis...
2020-01-17T09:57:39.1373276Z -   Total warnings: 2436, Filtered warnings: 2436
2020-01-17T09:57:39.1373276Z Total warnings: 2436
2020-01-17T09:57:39.1373276Z Filtered warnings: 2436
2020-01-17T09:57:39.1393232Z [ERROR] The number of warnings (2409) has increased since the previous build! The previous build had 2409 warning(s).
2020-01-17T09:57:39.1393232Z ##[error]The number of warnings (2409) has increased since the previous build! The previous build had 2409 warning(s).
2020-01-17T09:57:39.1663269Z ##[error]At least one build quality policy was violated. See Build Quality Checks section for more details.
2020-01-17T09:57:39.1833259Z ##[section]Finishing: Check build quality

I guess the numbers 2436 / 2409 just wrongly compared.

ReneSchumacher commented 4 years ago

Hi @rs200x,

I double checked the code and can't see any issue in there except for a small bug in the error message (it's using the same value for current and previous build when warnings aren't filtered). The comparison is done correctly based on the correct values.

Could you set the variable System.Debug to true, run your build again, and either post the task log here or send it via email to PSGerExtSupport@microsoft.com? The debug log should give us enough information to find the root cause for this.

René

rs200x commented 4 years ago

Hi Rene,

I have 1592 issues on my current build, but 1656 on my baseline reference build. It was working right before the updates this week.

2020-01-17T20:50:18.4032823Z ##[debug]Evaluating condition for step: 'Check build quality'
2020-01-17T20:50:18.4033718Z ##[debug]Evaluating: succeeded()
2020-01-17T20:50:18.4033886Z ##[debug]Evaluating succeeded:
2020-01-17T20:50:18.4034150Z ##[debug]=> True
2020-01-17T20:50:18.4034411Z ##[debug]Result: True
2020-01-17T20:50:18.4034636Z ##[section]Starting: Check build quality
2020-01-17T20:50:18.4172946Z ==============================================================================
2020-01-17T20:50:18.4173068Z Task         : Build Quality Checks
2020-01-17T20:50:18.4173177Z Description  : Breaks a build based on quality metrics like number of warnings or code coverage.
2020-01-17T20:50:18.4173299Z Version      : 6.2.4
2020-01-17T20:50:18.4173380Z Author       : Microsoft Premier Services
2020-01-17T20:50:18.4173651Z Help         : [[Docs]](https://github.com/MicrosoftPremier/VstsExtensions/blob/master/BuildQualityChecks/en-US/overview.md)
2020-01-17T20:50:18.4173741Z ==============================================================================
2020-01-17T20:50:18.6534722Z ##[debug]agent.TempDirectory=d:\a\_temp
2020-01-17T20:50:18.6564529Z ##[debug]loading inputs and endpoints
2020-01-17T20:50:18.6571254Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-01-17T20:50:18.6583185Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-01-17T20:50:18.6588502Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-01-17T20:50:18.6591635Z ##[debug]loading INPUT_ALLOWCOVERAGEVARIANCE
2020-01-17T20:50:18.6621046Z ##[debug]loading INPUT_ALLOWWARNINGVARIANCE
2020-01-17T20:50:18.6621548Z ##[debug]loading INPUT_BASEBRANCHREF
2020-01-17T20:50:18.6621843Z ##[debug]loading INPUT_BASEDEFINITIONFILTER
2020-01-17T20:50:18.6622133Z ##[debug]loading INPUT_BASEDEFINITIONID
2020-01-17T20:50:18.6622395Z ##[debug]loading INPUT_BASEREPOID
2020-01-17T20:50:18.6622653Z ##[debug]loading INPUT_CHECKCOVERAGE
2020-01-17T20:50:18.6624112Z ##[debug]loading INPUT_CHECKWARNINGS
2020-01-17T20:50:18.6626113Z ##[debug]loading INPUT_COVERAGEDELTATYPE
2020-01-17T20:50:18.6627996Z ##[debug]loading INPUT_COVERAGEFAILOPTION
2020-01-17T20:50:18.6631414Z ##[debug]loading INPUT_COVERAGEPRECISION
2020-01-17T20:50:18.6634879Z ##[debug]loading INPUT_COVERAGETHRESHOLD
2020-01-17T20:50:18.6635246Z ##[debug]loading INPUT_COVERAGETYPE
2020-01-17T20:50:18.6636787Z ##[debug]loading INPUT_COVERAGEUPPERTHRESHOLD
2020-01-17T20:50:18.6638233Z ##[debug]loading INPUT_CREATEBUILDISSUES
2020-01-17T20:50:18.6639778Z ##[debug]loading INPUT_DISABLECERTCHECK
2020-01-17T20:50:18.6641778Z ##[debug]loading INPUT_EXPLICITFILTER
2020-01-17T20:50:18.6643383Z ##[debug]loading INPUT_FORCECOVERAGEIMPROVEMENT
2020-01-17T20:50:18.6645045Z ##[debug]loading INPUT_FORCEFEWERWARNINGS
2020-01-17T20:50:18.6654459Z ##[debug]loading INPUT_IGNOREDECREASEABOVEUPPERTHRESHOLD
2020-01-17T20:50:18.6663037Z ##[debug]loading INPUT_INCLUDEPARTIALLYSUCCEEDED
2020-01-17T20:50:18.6668413Z ##[debug]loading INPUT_INCLUSIVEFILTERING
2020-01-17T20:50:18.6682883Z ##[debug]loading INPUT_SHOWSTATISTICS
2020-01-17T20:50:18.6686819Z ##[debug]loading INPUT_WARNINGFAILOPTION
2020-01-17T20:50:18.6691868Z ##[debug]loading INPUT_WARNINGTASKFILTERS
2020-01-17T20:50:18.6696560Z ##[debug]loading INPUT_WARNINGTHRESHOLD
2020-01-17T20:50:18.6699762Z ##[debug]loading SECRET_SONARQUBE_ENDPOINT
2020-01-17T20:50:18.6705587Z ##[debug]loaded 30
2020-01-17T20:50:18.6709966Z ##[debug]Agent.ProxyUrl=undefined
2020-01-17T20:50:18.6713159Z ##[debug]Agent.CAInfo=undefined
2020-01-17T20:50:18.6713554Z ##[debug]Agent.ClientCert=undefined
2020-01-17T20:50:18.6713864Z ##[debug]Agent.SkipCertValidation=undefined
2020-01-17T20:50:18.9575401Z ##[debug]createBuildIssues=true
2020-01-17T20:50:18.9579653Z ##[debug]check path : d:\a\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\6.2.4\task.json
2020-01-17T20:50:18.9582156Z ##[debug]adding resource file: d:\a\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\6.2.4\task.json
2020-01-17T20:50:18.9582586Z ##[debug]system.culture=en-US
2020-01-17T20:50:18.9627378Z ##[debug]check path : d:\a\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\6.2.4\node_modules\nodeapihelpers\messages.json
2020-01-17T20:50:18.9627887Z ##[debug]adding resource file: d:\a\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\6.2.4\node_modules\nodeapihelpers\messages.json
2020-01-17T20:50:18.9628163Z ##[debug]system.culture=en-US
2020-01-17T20:50:18.9634936Z ##[debug]disableCertCheck=false
2020-01-17T20:50:18.9635332Z ##[debug]BQC.LogRawData=undefined
2020-01-17T20:50:18.9635581Z ##[debug]BQC.ForceNewBaseline=undefined
2020-01-17T20:50:18.9641212Z SystemVssConnection exists true
2020-01-17T20:50:18.9641729Z ##[debug]SystemVssConnection exists true
2020-01-17T20:50:18.9643065Z ##[debug]System.TeamFoundationCollectionUri=https://.....visualstudio.com/
2020-01-17T20:50:18.9677791Z ##[debug]Build.Repository.Provider=TfsGit
2020-01-17T20:50:18.9681444Z ##[debug]baseBranchRef=refs/heads/master
2020-01-17T20:50:18.9683130Z ##[debug]baseDefinitionId=17
2020-01-17T20:50:18.9684682Z ##[debug]includePartiallySucceeded=true
2020-01-17T20:50:18.9689594Z ##[debug]System.TeamProject=.....
2020-01-17T20:50:18.9690395Z ##[debug]System.DefinitionId=10
2020-01-17T20:50:18.9690744Z ##[debug]Build.DefinitionVersion=35
2020-01-17T20:50:18.9691013Z ##[debug]Build.BuildId=1267
2020-01-17T20:50:18.9691328Z ##[debug]PSGer.Build.PollInterval=undefined
2020-01-17T20:50:18.9691580Z ##[debug]PSGer.Build.MaxWaitTime=undefined
2020-01-17T20:50:19.3015745Z ##[debug]System.PhaseDisplayName=Phase 1
2020-01-17T20:50:19.3016657Z ##[debug]System.PhaseName=Phase_1
2020-01-17T20:50:19.3016996Z ##[debug]System.JobId=fd490c07-0b22-5182-fac9-6d67fe1e939b
2020-01-17T20:50:19.3017459Z ##[debug]System.JobDisplayName=Phase 1
2020-01-17T20:50:19.3019787Z Using IdentifierJobResolver
2020-01-17T20:50:19.3024362Z ##[debug]getEnabledPolicies
2020-01-17T20:50:19.3026400Z ##[debug]checkWarnings=true
2020-01-17T20:50:19.3026706Z ##[debug] - warnings
2020-01-17T20:50:19.3028332Z ##[debug]checkCoverage=true
2020-01-17T20:50:19.3028640Z ##[debug] - coverage
2020-01-17T20:50:19.3030501Z ##[debug]getCurrentJobName
2020-01-17T20:50:19.3033444Z ##[debug]getCurrentJobName
2020-01-17T20:50:19.3045410Z ##[debug]runTitle=null
2020-01-17T20:50:19.3050601Z ##[debug]waitForPreviousBuildStepsToFinish
2020-01-17T20:50:19.3057630Z ##[debug]getPreviousBuildSteps
2020-01-17T20:50:19.3837006Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3837634Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3837879Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3838092Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3838302Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3839008Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3839225Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3839437Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3840210Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3840572Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3840835Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3841107Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3841355Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3846338Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3847162Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3851447Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3851963Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3852244Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3852589Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3852854Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3853262Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3853671Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3853942Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3854502Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.3896121Z Validating build warnings policy...
2020-01-17T20:50:19.3898154Z ##[debug]getBuildJobRecords
2020-01-17T20:50:19.4996807Z ##[debug]getCurrentJobId
2020-01-17T20:50:19.5003215Z ##[debug]showStatistics=true
2020-01-17T20:50:19.5006090Z ##[debug]warningTaskFilters=/^(((android|xcode|gradlew)\s+)?build|ant|maven|cmake|gulp)/i
2020-01-17T20:50:19.5007869Z ##[debug]WarningsAnalyzer.prepareRegexFilters
2020-01-17T20:50:19.5014845Z ##[debug]Valid regex filters: /^(((android|xcode|gradlew)\s+)?build|ant|maven|cmake|gulp)/i
2020-01-17T20:50:19.5015228Z ##[debug]warningFilters=null
2020-01-17T20:50:19.5015464Z ##[debug]WarningsAnalyzer.prepareRegexFilters
2020-01-17T20:50:19.5015841Z ##[debug]Valid regex filters: 
2020-01-17T20:50:19.5016072Z ##[debug]Build.BuildId=1267
2020-01-17T20:50:19.5021263Z ##[debug]WarningsAnalyzer.analyzeWarnings
2020-01-17T20:50:19.5023927Z ##[debug]WarningsAnalyzer.getRelevantTaskRecordsFromTimeline
2020-01-17T20:50:19.5026094Z Counting warnings from tasks:
2020-01-17T20:50:19.5026357Z - Build solution .../....sln
2020-01-17T20:50:19.5031491Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:19.5036009Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:19.5042029Z -   Running MSBuild log analysis...
2020-01-17T20:50:19.5048108Z ##[debug]getTimelineLogLines
2020-01-17T20:50:19.8486485Z -   Total warnings: 1592, Filtered warnings: 1592
2020-01-17T20:50:19.8487113Z - Build solution Installation/....sln x86
2020-01-17T20:50:19.8487514Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:19.8491891Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:19.8492518Z -   Running MSBuild log analysis...
2020-01-17T20:50:19.8493218Z ##[debug]getTimelineLogLines
2020-01-17T20:50:19.9675671Z -   Total warnings: 0, Filtered warnings: 0
2020-01-17T20:50:19.9676268Z - Build solution Installation/....sln x64
2020-01-17T20:50:19.9676685Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:19.9679487Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:19.9680177Z -   Running MSBuild log analysis...
2020-01-17T20:50:19.9680508Z ##[debug]getTimelineLogLines
2020-01-17T20:50:20.0841298Z -   Total warnings: 0, Filtered warnings: 0
2020-01-17T20:50:20.0841861Z - Build solution Installation/....sln x86
2020-01-17T20:50:20.0842304Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:20.0844288Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:20.0844742Z -   Running MSBuild log analysis...
2020-01-17T20:50:20.0845151Z ##[debug]getTimelineLogLines
2020-01-17T20:50:20.1476597Z -   Total warnings: 0, Filtered warnings: 0
2020-01-17T20:50:20.1477213Z - Build solution Installation/....sln x64
2020-01-17T20:50:20.1477694Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:20.1480670Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:20.1481204Z -   Running MSBuild log analysis...
2020-01-17T20:50:20.1481748Z ##[debug]getTimelineLogLines
2020-01-17T20:50:20.2198296Z -   Total warnings: 0, Filtered warnings: 0
2020-01-17T20:50:20.2200769Z Total warnings: 1592
2020-01-17T20:50:20.2202100Z Filtered warnings: 1592
2020-01-17T20:50:20.2206122Z ##[debug]warningFailOption=build
2020-01-17T20:50:20.2228281Z ##[debug]NewBaselineRule.evaluateRuleCore
2020-01-17T20:50:20.2237823Z ##[debug]CompareToBaselineWarningsRule.evaluateRuleCore
2020-01-17T20:50:20.2240178Z ##[debug]CompareToBaselineWarningsRule.getWarningsAnalysisFromBaselineBuild
2020-01-17T20:50:20.2251695Z ##[debug]getBaselineBuildId
2020-01-17T20:50:20.2254485Z ##[debug]getBaselineBuild
2020-01-17T20:50:20.2257475Z ##[debug]getCurrentJobStartTime
2020-01-17T20:50:20.4520737Z Found baseline build with ID 1244.
2020-01-17T20:50:20.4584319Z ##[debug]getBuildJobRecords
2020-01-17T20:50:20.5208753Z ##[debug]getCurrentJobId
2020-01-17T20:50:20.5211340Z ##[debug]getCorrelatingJobIdFromTimeline
2020-01-17T20:50:20.5216500Z ##[debug]showStatistics=true
2020-01-17T20:50:20.5217927Z ##[debug]warningTaskFilters=/^(((android|xcode|gradlew)\s+)?build|ant|maven|cmake|gulp)/i
2020-01-17T20:50:20.5218410Z ##[debug]WarningsAnalyzer.prepareRegexFilters
2020-01-17T20:50:20.5219653Z ##[debug]Valid regex filters: /^(((android|xcode|gradlew)\s+)?build|ant|maven|cmake|gulp)/i
2020-01-17T20:50:20.5220445Z ##[debug]warningFilters=null
2020-01-17T20:50:20.5221004Z ##[debug]WarningsAnalyzer.prepareRegexFilters
2020-01-17T20:50:20.5221271Z ##[debug]Valid regex filters: 
2020-01-17T20:50:20.5221585Z ##[debug]WarningsAnalyzer.analyzeWarnings
2020-01-17T20:50:20.5221859Z ##[debug]WarningsAnalyzer.getRelevantTaskRecordsFromTimeline
2020-01-17T20:50:20.5222112Z Counting warnings from tasks:
2020-01-17T20:50:20.5222329Z - Build solution .../....sln
2020-01-17T20:50:20.5222616Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:20.5224864Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:20.5225158Z -   Running MSBuild log analysis...
2020-01-17T20:50:20.5225619Z ##[debug]getTimelineLogLines
2020-01-17T20:50:20.9971130Z -   Total warnings: 1656, Filtered warnings: 1656
2020-01-17T20:50:20.9971911Z - Build solution Installation/....sln x86
2020-01-17T20:50:20.9972432Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:20.9974701Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:20.9975630Z -   Running MSBuild log analysis...
2020-01-17T20:50:20.9975986Z ##[debug]getTimelineLogLines
2020-01-17T20:50:21.1582423Z -   Total warnings: 0, Filtered warnings: 0
2020-01-17T20:50:21.1583028Z - Build solution Installation/....sln x64
2020-01-17T20:50:21.1583777Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:21.1585767Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:21.1586022Z -   Running MSBuild log analysis...
2020-01-17T20:50:21.1586304Z ##[debug]getTimelineLogLines
2020-01-17T20:50:21.2800991Z -   Total warnings: 0, Filtered warnings: 0
2020-01-17T20:50:21.2801419Z - Build solution Installation/....sln x86
2020-01-17T20:50:21.2802009Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:21.2803870Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:21.2804172Z -   Running MSBuild log analysis...
2020-01-17T20:50:21.2804868Z ##[debug]getTimelineLogLines
2020-01-17T20:50:21.4419510Z -   Total warnings: 0, Filtered warnings: 0
2020-01-17T20:50:21.4420768Z - Build solution Installation/....sln x64
2020-01-17T20:50:21.4421228Z ##[debug]WarningsAnalyzer.runLogFileAnalysis
2020-01-17T20:50:21.4424337Z ##[debug]inclusiveFiltering=false
2020-01-17T20:50:21.4424683Z -   Running MSBuild log analysis...
2020-01-17T20:50:21.4424982Z ##[debug]getTimelineLogLines
2020-01-17T20:50:21.5259997Z -   Total warnings: 0, Filtered warnings: 0
2020-01-17T20:50:21.5260712Z Total warnings: 1656
2020-01-17T20:50:21.5261804Z Filtered warnings: 1656
2020-01-17T20:50:21.5262501Z ##[debug]CompareToBaselineWarningsRule.preparePostRules
2020-01-17T20:50:21.5265103Z ##[debug]forceFewerWarnings=false
2020-01-17T20:50:21.5270995Z ##[debug]NotBelowBaselineWarningsRule.evaluateRuleCore
2020-01-17T20:50:21.5272298Z ##[debug]NotBelowBaselineWarningsRule.isWarningsDecreaseWithinVariance
2020-01-17T20:50:21.5274122Z ##[debug]allowWarningVariance=false
2020-01-17T20:50:21.5275162Z ##[debug]NotBelowBaselineWarningsRule.getResult
2020-01-17T20:50:21.5278174Z [ERROR] The number of warnings (1592) has increased since the previous build! The previous build had 1592 warning(s).
2020-01-17T20:50:21.5278871Z ##[error]The number of warnings (1592) has increased since the previous build! The previous build had 1592 warning(s).
2020-01-17T20:50:21.5279697Z ##[debug]Processed: ##vso[task.logissue type=error;]The number of warnings (1592) has increased since the previous build! The previous build had 1592 warning(s).
2020-01-17T20:50:21.5284069Z ##[debug]StatisticsCreator.reportBuildWarningsStatistics
2020-01-17T20:50:21.5285110Z ##[debug]StatisticsCreator.createBuildWarningsStatisticsReport
2020-01-17T20:50:21.5286720Z ##[debug]StatisticsCreator.createCurrentBuildTasksStatisticsReports
2020-01-17T20:50:21.5289014Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsReport
2020-01-17T20:50:21.5290656Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsHeader
2020-01-17T20:50:21.5292958Z ##[debug]StatisticsCreator.createChangedFilesWarningsStatisticsReport
2020-01-17T20:50:21.5432038Z ##[debug]StatisticsCreator.createFilesWithRemovedWarningsStatisticsReport
2020-01-17T20:50:21.5461260Z ##[debug]StatisticsCreator.createFilesWithNewWarningsStatisticsReport
2020-01-17T20:50:21.5495059Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsReport
2020-01-17T20:50:21.5495653Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsHeader
2020-01-17T20:50:21.5495958Z ##[debug]StatisticsCreator.createChangedFilesWarningsStatisticsReport
2020-01-17T20:50:21.5497530Z ##[debug]StatisticsCreator.createFilesWithRemovedWarningsStatisticsReport
2020-01-17T20:50:21.5498601Z ##[debug]StatisticsCreator.createFilesWithNewWarningsStatisticsReport
2020-01-17T20:50:21.5500037Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsReport
2020-01-17T20:50:21.5500424Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsHeader
2020-01-17T20:50:21.5500708Z ##[debug]StatisticsCreator.createChangedFilesWarningsStatisticsReport
2020-01-17T20:50:21.5502346Z ##[debug]StatisticsCreator.createFilesWithRemovedWarningsStatisticsReport
2020-01-17T20:50:21.5503225Z ##[debug]StatisticsCreator.createFilesWithNewWarningsStatisticsReport
2020-01-17T20:50:21.5505608Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsReport
2020-01-17T20:50:21.5505956Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsHeader
2020-01-17T20:50:21.5506232Z ##[debug]StatisticsCreator.createChangedFilesWarningsStatisticsReport
2020-01-17T20:50:21.5508235Z ##[debug]StatisticsCreator.createFilesWithRemovedWarningsStatisticsReport
2020-01-17T20:50:21.5509180Z ##[debug]StatisticsCreator.createFilesWithNewWarningsStatisticsReport
2020-01-17T20:50:21.5510418Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsReport
2020-01-17T20:50:21.5510815Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsHeader
2020-01-17T20:50:21.5511099Z ##[debug]StatisticsCreator.createChangedFilesWarningsStatisticsReport
2020-01-17T20:50:21.5527714Z ##[debug]StatisticsCreator.createFilesWithRemovedWarningsStatisticsReport
2020-01-17T20:50:21.5528716Z ##[debug]StatisticsCreator.createFilesWithNewWarningsStatisticsReport
2020-01-17T20:50:21.5531519Z ##[debug]StatisticsCreator.createMissingBaselineBuildTasksStatisticsReports
2020-01-17T20:50:21.5539264Z Validating code coverage policy...
2020-01-17T20:50:21.5540946Z ##[debug]System.TeamProject=...
2020-01-17T20:50:21.5541335Z ##[debug]Build.BuildId=1267
2020-01-17T20:50:21.5545047Z ##[debug]CoverageValueReader.getCoverageValue
2020-01-17T20:50:21.5545468Z ##[debug]Build.BuildId=1267
2020-01-17T20:50:21.5547257Z ##[debug]CoverageValueReader.getCodeCoverageSummaryFromBuild
2020-01-17T20:50:21.5551151Z ##[debug]getCodeCoverageData
2020-01-17T20:50:21.5552561Z ##[debug]prepareClients
2020-01-17T20:50:24.5519622Z Successfully read code coverage data from build.
2020-01-17T20:50:24.5524139Z ##[debug]CoverageValueReader.filterCoverageDataByConfigAndPlatform
2020-01-17T20:50:24.5524592Z ##[debug]buildConfiguration=null
2020-01-17T20:50:24.5524878Z ##[debug]buildPlatform=null
2020-01-17T20:50:24.5527045Z ##[debug]explicitFilter=false
2020-01-17T20:50:24.5527359Z ##[debug]Inspecting 1 code coverage data sets...
2020-01-17T20:50:24.5531030Z ##[debug]CoverageValueReader.aggregateCoverageValues
2020-01-17T20:50:24.5533635Z ##[debug]coverageType=blocks
2020-01-17T20:50:24.5534134Z Evaluating coverage data from 1 filtered code coverage data sets...
2020-01-17T20:50:24.5537129Z ##[debug]CoverageValueReader.calcualteCoveragePercentageWithPrecision
2020-01-17T20:50:24.5539637Z ##[debug]coveragePrecision=4
2020-01-17T20:50:24.5540055Z ##[debug]coverageVariance=null
2020-01-17T20:50:24.5540719Z Total blocks: 45489
2020-01-17T20:50:24.5540986Z Covered blocks: 20183
2020-01-17T20:50:24.5541210Z Code Coverage (%): 44.369
2020-01-17T20:50:24.5543919Z ##[debug]coverageFailOption=build
2020-01-17T20:50:24.5551062Z ##[debug]NewBaselineCoverageRule.evaluateRuleCore
2020-01-17T20:50:24.5551570Z ##[debug]NewBaselineRule.evaluateRuleCore
2020-01-17T20:50:24.5556216Z ##[debug]CompareToBaselinCoverageRule.evaluateRuleCore
2020-01-17T20:50:24.5557732Z ##[debug]CompareToBaselinCoverageRule.getCoverageValueFromBaselineBuild
2020-01-17T20:50:24.5558054Z ##[debug]getBaselineBuildId
2020-01-17T20:50:24.5558333Z ##[debug]getBaselineBuild
2020-01-17T20:50:24.5558602Z ##[debug]getCurrentJobStartTime
2020-01-17T20:50:24.7178074Z Found baseline build with ID 1244.
2020-01-17T20:50:24.7179980Z ##[debug]System.TeamProject=...
2020-01-17T20:50:24.7180524Z ##[debug]CoverageValueReader.getCoverageValue
2020-01-17T20:50:24.7180872Z ##[debug]Build.BuildId=1267
2020-01-17T20:50:24.7181191Z ##[debug]CoverageValueReader.getCodeCoverageSummaryFromBuild
2020-01-17T20:50:24.7181524Z ##[debug]getCodeCoverageData
2020-01-17T20:50:24.7181786Z ##[debug]prepareClients
2020-01-17T20:50:25.0599523Z Successfully read code coverage data from build.
2020-01-17T20:50:25.0600773Z ##[debug]CoverageValueReader.filterCoverageDataByConfigAndPlatform
2020-01-17T20:50:25.0601118Z ##[debug]buildConfiguration=null
2020-01-17T20:50:25.0601429Z ##[debug]buildPlatform=null
2020-01-17T20:50:25.0602965Z ##[debug]explicitFilter=false
2020-01-17T20:50:25.0603351Z ##[debug]Inspecting 1 code coverage data sets...
2020-01-17T20:50:25.0603641Z ##[debug]CoverageValueReader.aggregateCoverageValues
2020-01-17T20:50:25.0642441Z ##[debug]coverageType=blocks
2020-01-17T20:50:25.0642995Z Evaluating coverage data from 1 filtered code coverage data sets...
2020-01-17T20:50:25.0643344Z ##[debug]CoverageValueReader.calcualteCoveragePercentageWithPrecision
2020-01-17T20:50:25.0643811Z ##[debug]coveragePrecision=4
2020-01-17T20:50:25.0644256Z ##[debug]coverageVariance=null
2020-01-17T20:50:25.0644494Z Total blocks: 44545
2020-01-17T20:50:25.0644683Z Covered blocks: 19476
2020-01-17T20:50:25.0645063Z Code Coverage (%): 43.7221
2020-01-17T20:50:25.0645483Z ##[debug]CompareToBaselinCoverageRule.preparePostRules
2020-01-17T20:50:25.0646077Z ##[debug]forceCoverageImprovement=false
2020-01-17T20:50:25.0646355Z ##[debug]NotBelowBaselineCoverageRule.evaluateRuleCore
2020-01-17T20:50:25.0732332Z ##[debug]forceCoverageImprovement=false
2020-01-17T20:50:25.0737071Z ##[debug]coverageDeltaType=absolute
2020-01-17T20:50:25.0741278Z [SUCCESS] Code coverage policy passed with 44.369% (20183 blocks).
2020-01-17T20:50:25.0744673Z ##[debug]setTaskResult
2020-01-17T20:50:25.0746351Z ##[debug]Build.SourcesDirectory=d:\a\1\s
2020-01-17T20:50:25.0751765Z ##[debug]Processed: ##vso[task.addattachment type=Distributedtask.Core.Summary;name=Build Quality Checks;]d:\a\1\s\BuildQualityChecksSummary.md
2020-01-17T20:50:25.0761013Z ##[debug]task result: Failed
2020-01-17T20:50:25.0765918Z ##[error]At least one build quality policy was violated. See Build Quality Checks section for more details.
2020-01-17T20:50:25.0768311Z ##[debug]Processed: ##vso[task.issue type=error;]At least one build quality policy was violated. See Build Quality Checks section for more details.
2020-01-17T20:50:25.0772887Z ##[debug]Processed: ##vso[task.complete result=Failed;]At least one build quality policy was violated. See Build Quality Checks section for more details.
2020-01-17T20:50:25.0807203Z ##[section]Finishing: Check build quality

This is from Monday

2020-01-13T15:54:29.7217676Z ##[section]Starting: Check build quality
2020-01-13T15:54:29.7343609Z ==============================================================================
2020-01-13T15:54:29.7343731Z Task         : Build Quality Checks
2020-01-13T15:54:29.7343815Z Description  : Breaks a build based on quality metrics like number of warnings or code coverage.
2020-01-13T15:54:29.7343911Z Version      : 6.1.2
2020-01-13T15:54:29.7343999Z Author       : Microsoft Premier Services
2020-01-13T15:54:29.7344083Z Help         : [[Docs]](https://github.com/MicrosoftPremier/VstsExtensions/blob/master/BuildQualityChecks/en-US/overview.md)
2020-01-13T15:54:29.7344209Z ==============================================================================
2020-01-13T15:54:30.2775686Z SystemVssConnection exists true
2020-01-13T15:54:30.6361202Z Validating build warnings policy...
2020-01-13T15:54:30.7948592Z Counting warnings from tasks:
2020-01-13T15:54:30.7950066Z - Build solution .../....sln
2020-01-13T15:54:30.7964796Z -   Running MSBuild log analysis...
2020-01-13T15:54:31.1104245Z -   Total warnings: 1606, Filtered warnings: 1606
2020-01-13T15:54:31.1105024Z - Build solution Installation/....sln x86
2020-01-13T15:54:31.1150322Z -   Running MSBuild log analysis...
2020-01-13T15:54:31.2163594Z -   Total warnings: 0, Filtered warnings: 0
2020-01-13T15:54:31.2164377Z - Build solution Installation/....sln x64
2020-01-13T15:54:31.2167461Z -   Running MSBuild log analysis...
2020-01-13T15:54:31.6465073Z -   Total warnings: 0, Filtered warnings: 0
2020-01-13T15:54:31.6465999Z - Build solution Installation/....sln x86
2020-01-13T15:54:31.6468982Z -   Running MSBuild log analysis...
2020-01-13T15:54:31.7470220Z -   Total warnings: 0, Filtered warnings: 0
2020-01-13T15:54:31.7471371Z - Build solution Installation/....sln x64
2020-01-13T15:54:31.7473550Z -   Running MSBuild log analysis...
2020-01-13T15:54:31.8316560Z -   Total warnings: 0, Filtered warnings: 0
2020-01-13T15:54:31.8317933Z Total warnings: 1606
2020-01-13T15:54:31.8319323Z Filtered warnings: 1606
2020-01-13T15:54:32.1536487Z Found baseline build with ID 1244.
2020-01-13T15:54:32.6121994Z Counting warnings from tasks:
2020-01-13T15:54:32.6122325Z - Build solution .../....sln
2020-01-13T15:54:32.6124762Z -   Running MSBuild log analysis...
2020-01-13T15:54:32.9526120Z -   Total warnings: 1656, Filtered warnings: 1656
2020-01-13T15:54:32.9526682Z - Build solution Installation/....sln x86
2020-01-13T15:54:32.9529588Z -   Running MSBuild log analysis...
2020-01-13T15:54:33.0996287Z -   Total warnings: 0, Filtered warnings: 0
2020-01-13T15:54:33.0996984Z - Build solution Installation/....sln x64
2020-01-13T15:54:33.1000405Z -   Running MSBuild log analysis...
2020-01-13T15:54:33.2694541Z -   Total warnings: 0, Filtered warnings: 0
2020-01-13T15:54:33.2695954Z - Build solution Installation/....sln x86
2020-01-13T15:54:33.2697409Z -   Running MSBuild log analysis...
2020-01-13T15:54:33.4704111Z -   Total warnings: 0, Filtered warnings: 0
2020-01-13T15:54:33.4705892Z - Build solution Installation/....sln x64
2020-01-13T15:54:33.4707736Z -   Running MSBuild log analysis...
2020-01-13T15:54:33.8331481Z -   Total warnings: 0, Filtered warnings: 0
2020-01-13T15:54:33.8332641Z Total warnings: 1656
2020-01-13T15:54:33.8332950Z Filtered warnings: 1656
2020-01-13T15:54:33.8505666Z Validating code coverage policy...
2020-01-13T15:54:36.9910175Z Successfully read code coverage data from build.
2020-01-13T15:54:36.9927870Z Total blocks: 45428
2020-01-13T15:54:36.9928169Z Covered blocks: 19988
2020-01-13T15:54:36.9930148Z Code Coverage (%): 43.9993
2020-01-13T15:54:37.3921763Z Found baseline build with ID 1244.
2020-01-13T15:54:37.7451281Z Successfully read code coverage data from build.
2020-01-13T15:54:37.7495796Z Total blocks: 44545
2020-01-13T15:54:37.7495951Z Covered blocks: 19476
2020-01-13T15:54:37.7496107Z Code Coverage (%): 43.7221
2020-01-13T15:54:37.7590720Z ##[section]Finishing: Check build quality
ReneSchumacher commented 4 years ago

Hi @rs200x,

I found the issue and am currently creating a fix for it. I will bundle the fix with the new feature request from issue #68 and post an update when the new version has entered our release process.

René

ReneSchumacher commented 4 years ago

Hey again,

the issue is fixed in v6.3.0 of the task and the new version is currently being published. It should be visible in the marketplace in a couple minutes. Thank you for reporting this and sorry for the inconvenience this might have caused. I'm closing this issue but please feel free to open a new one or post additional comments if you still have problems running our task.

Happy building, René