MicrosoftPremier / VstsExtensions

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

BuildQualityChecks always reports 0 out of 0 Coverage #231

Closed Pentadome closed 3 months ago

Pentadome commented 5 months ago

Describe the context

Describe the problem and expected behavior The extensions always reports 0 out of 0 coverage. Even though azure devops recognizes it image

Task logs

Publish code coverage results: ``` 2024-01-29T12:43:28.9957504Z ##[debug]Evaluating condition for step: 'Publish code coverage report' 2024-01-29T12:43:28.9957911Z ##[debug]Evaluating: SucceededNode() 2024-01-29T12:43:28.9958004Z ##[debug]Evaluating SucceededNode: 2024-01-29T12:43:28.9958438Z ##[debug]=> True 2024-01-29T12:43:28.9958553Z ##[debug]Result: True 2024-01-29T12:43:28.9958680Z ##[section]Starting: Publish code coverage report 2024-01-29T12:43:29.0029381Z ============================================================================== 2024-01-29T12:43:29.0029442Z Task : Publish code coverage results 2024-01-29T12:43:29.0029476Z Description : Publish Cobertura or JaCoCo code coverage results from a build 2024-01-29T12:43:29.0029521Z Version : 1.228.0 2024-01-29T12:43:29.0029547Z Author : Microsoft Corporation 2024-01-29T12:43:29.0029577Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-code-coverage-results 2024-01-29T12:43:29.0029627Z ============================================================================== 2024-01-29T12:43:29.0186718Z ##[debug]Using node path: C:\agent\2\externals\node16\bin\node.exe 2024-01-29T12:43:29.0878788Z ##[debug]agent.TempDirectory=C:\agent\2\_work\_temp 2024-01-29T12:43:29.0886102Z ##[debug]loading inputs and endpoints 2024-01-29T12:43:29.0889758Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2024-01-29T12:43:29.0935820Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2024-01-29T12:43:29.0937684Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2024-01-29T12:43:29.0939113Z ##[debug]loading INPUT_CODECOVERAGETOOL 2024-01-29T12:43:29.0940546Z ##[debug]loading INPUT_FAILIFCOVERAGEEMPTY 2024-01-29T12:43:29.0941750Z ##[debug]loading INPUT_REPORTDIRECTORY 2024-01-29T12:43:29.0943654Z ##[debug]loading INPUT_SUMMARYFILELOCATION 2024-01-29T12:43:29.0946005Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN 2024-01-29T12:43:29.0950602Z ##[debug]loaded 8 2024-01-29T12:43:29.0953823Z ##[debug]Agent.ProxyUrl=undefined 2024-01-29T12:43:29.0954850Z ##[debug]Agent.CAInfo=undefined 2024-01-29T12:43:29.0956006Z ##[debug]Agent.ClientCert=undefined 2024-01-29T12:43:29.0956304Z ##[debug]Agent.SkipCertValidation=undefined 2024-01-29T12:43:29.1797701Z ##[debug]check path : C:\agent\2\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\1.228.0\node_modules\azure-pipelines-tasks-codecoverage-tools\module.json 2024-01-29T12:43:29.1799739Z ##[debug]adding resource file: C:\agent\2\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\1.228.0\node_modules\azure-pipelines-tasks-codecoverage-tools\module.json 2024-01-29T12:43:29.1799932Z ##[debug]system.culture=en-US 2024-01-29T12:43:29.1808153Z ##[debug]check path : C:\agent\2\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\1.228.0\task.json 2024-01-29T12:43:29.1808393Z ##[debug]adding resource file: C:\agent\2\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\1.228.0\task.json 2024-01-29T12:43:29.1808731Z ##[debug]system.culture=en-US 2024-01-29T12:43:29.1817023Z ##[debug]codeCoverageTool=Cobertura 2024-01-29T12:43:29.1818779Z ##[debug]summaryFileLocation=C:\agent\2\_work\1\s/hidden/coverage//cobertura/coverage.cobertura.xml 2024-01-29T12:43:29.1820331Z ##[debug]reportDirectory=C:\agent\2\_work\1\s/hidden/coverage//link 2024-01-29T12:43:29.1820564Z ##[debug]additionalCodeCoverageFiles=undefined 2024-01-29T12:43:29.1821774Z ##[debug]failIfCoverageEmpty=false 2024-01-29T12:43:29.1821975Z ##[debug]System.DefaultWorkingDirectory=C:\agent\2\_work\1\s 2024-01-29T12:43:29.1822932Z ##[debug]pathToSources=undefined 2024-01-29T12:43:29.1823215Z ##[debug]disable.coverage.autogenerate=true 2024-01-29T12:43:29.1823478Z ##[debug]disabling auto generation 2024-01-29T12:43:29.1825225Z ##[debug]defaultRoot: 'C:\agent\2\_work\1\s' 2024-01-29T12:43:29.1825802Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false' 2024-01-29T12:43:29.1826051Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'false' 2024-01-29T12:43:29.1827691Z ##[debug]findOptions.followSymbolicLinks: 'false' 2024-01-29T12:43:29.1827968Z ##[debug]findOptions.skipMissingFiles: 'undefined' 2024-01-29T12:43:29.1828252Z ##[debug]matchOptions.debug: 'false' 2024-01-29T12:43:29.1828492Z ##[debug]matchOptions.nobrace: 'true' 2024-01-29T12:43:29.1828723Z ##[debug]matchOptions.noglobstar: 'false' 2024-01-29T12:43:29.1828956Z ##[debug]matchOptions.dot: 'true' 2024-01-29T12:43:29.1829178Z ##[debug]matchOptions.noext: 'false' 2024-01-29T12:43:29.1829406Z ##[debug]matchOptions.nocase: 'true' 2024-01-29T12:43:29.1829627Z ##[debug]matchOptions.nonull: 'false' 2024-01-29T12:43:29.1829858Z ##[debug]matchOptions.matchBase: 'false' 2024-01-29T12:43:29.1830086Z ##[debug]matchOptions.nocomment: 'false' 2024-01-29T12:43:29.1830319Z ##[debug]matchOptions.nonegate: 'false' 2024-01-29T12:43:29.1830562Z ##[debug]matchOptions.flipNegate: 'false' 2024-01-29T12:43:29.1830806Z ##[debug]pattern: 'C:\agent\2\_work\1\s/hidden/coverage//link' 2024-01-29T12:43:29.1836501Z ##[debug]findPath: 'C:\agent\2\_work\1\s\hidden\coverage\link' 2024-01-29T12:43:29.1836642Z ##[debug]statOnly: 'true' 2024-01-29T12:43:29.1837633Z ##[debug]found 1 paths 2024-01-29T12:43:29.1837761Z ##[debug]applying include pattern 2024-01-29T12:43:29.1841212Z ##[debug]1 matches 2024-01-29T12:43:29.1841351Z ##[debug]1 final results 2024-01-29T12:43:29.1850003Z ##[debug]Found 1 result(s) matching pattern: C:\agent\2\_work\1\s/hidden/coverage//link 2024-01-29T12:43:29.1850163Z ##[debug]defaultRoot: 'C:\agent\2\_work\1\s' 2024-01-29T12:43:29.1850290Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false' 2024-01-29T12:43:29.1850425Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'false' 2024-01-29T12:43:29.1850555Z ##[debug]findOptions.followSymbolicLinks: 'false' 2024-01-29T12:43:29.1850793Z ##[debug]findOptions.skipMissingFiles: 'undefined' 2024-01-29T12:43:29.1850922Z ##[debug]matchOptions.debug: 'false' 2024-01-29T12:43:29.1851044Z ##[debug]matchOptions.nobrace: 'true' 2024-01-29T12:43:29.1851236Z ##[debug]matchOptions.noglobstar: 'false' 2024-01-29T12:43:29.1851359Z ##[debug]matchOptions.dot: 'true' 2024-01-29T12:43:29.1851472Z ##[debug]matchOptions.noext: 'false' 2024-01-29T12:43:29.1851590Z ##[debug]matchOptions.nocase: 'true' 2024-01-29T12:43:29.1851708Z ##[debug]matchOptions.nonull: 'false' 2024-01-29T12:43:29.1851832Z ##[debug]matchOptions.matchBase: 'false' 2024-01-29T12:43:29.1851949Z ##[debug]matchOptions.nocomment: 'false' 2024-01-29T12:43:29.1852072Z ##[debug]matchOptions.nonegate: 'false' 2024-01-29T12:43:29.1852189Z ##[debug]matchOptions.flipNegate: 'false' 2024-01-29T12:43:29.1852327Z ##[debug]pattern: 'C:\agent\2\_work\1\s/hidden/coverage//cobertura/coverage.cobertura.xml' 2024-01-29T12:43:29.1852587Z ##[debug]findPath: 'C:\agent\2\_work\1\s\hidden\coverage\cobertura\coverage.cobertura.xml' 2024-01-29T12:43:29.1852726Z ##[debug]statOnly: 'true' 2024-01-29T12:43:29.1853353Z ##[debug]found 1 paths 2024-01-29T12:43:29.1853771Z ##[debug]applying include pattern 2024-01-29T12:43:29.1853902Z ##[debug]1 matches 2024-01-29T12:43:29.1854110Z ##[debug]1 final results 2024-01-29T12:43:29.1854251Z ##[debug]Found 1 result(s) matching pattern: C:\agent\2\_work\1\s/hidden/coverage//cobertura/coverage.cobertura.xml 2024-01-29T12:43:29.1854416Z ##[debug]Resolved summary file: C:\agent\2\_work\1\s\hidden\coverage\cobertura\coverage.cobertura.xml 2024-01-29T12:43:29.1874914Z Reading code coverage summary from 'C:\agent\2\_work\1\s\hidden\coverage\cobertura\coverage.cobertura.xml' 2024-01-29T12:43:29.6874209Z ##[debug]Processed: ##vso[codecoverage.publish codecoveragetool=Cobertura;summaryfile=C:\agent\2\_work\1\s\hidden\coverage\cobertura\coverage.cobertura.xml;reportdirectory=C:\agent\2\_work\1\s\hidden\coverage\link;] 2024-01-29T12:43:29.6875066Z ##[section]Async Command Start: Publish code coverage 2024-01-29T12:43:29.6875208Z Publishing coverage summary data to TFS server. 2024-01-29T12:43:29.6875259Z Lines- 2677 of 63371 covered. 2024-01-29T12:43:29.6875669Z Branches- 489 of 15991 covered. 2024-01-29T12:43:30.2087761Z Modifying Cobertura Index file 2024-01-29T12:43:30.2088150Z Publishing code coverage files to TFS server. 2024-01-29T12:43:30.2088435Z Uploading 2 files 2024-01-29T12:43:30.2088779Z ##[debug]File: 'C:\agent\2\_work\1\s\hidden\coverage\link\index.html' took 174 milliseconds to finish upload 2024-01-29T12:43:30.2089184Z ##[debug]Detail upload trace for file: Code Coverage Report_20890/index.html 2024-01-29T12:43:30.2089549Z ##[debug]File 'Code Coverage Report_20890/index.html' will be uploaded in one chunk. 2024-01-29T12:43:30.2089916Z ##[debug]Attempt '1' for uploading chunk '1' of file 'Code Coverage Report_20890/index.html'. 2024-01-29T12:43:30.2090315Z ##[debug]Generate new HttpRequest for uploading file 'Code Coverage Report_20890/index.html', chunk '1' of '1'. 2024-01-29T12:43:30.2090736Z ##[debug]Start uploading file 'Code Coverage Report_20890/index.html' to server, chunk '1'. 2024-01-29T12:43:30.2091171Z ##[debug]Finished upload chunk '1' of file 'Code Coverage Report_20890/index.html', elapsed 159 (ms), response code 'Created'. 2024-01-29T12:43:30.4420630Z ##[debug]File: 'C:\agent\2\_work\1\s\hidden\coverage\link\summary20890\coverage.cobertura.xml' took 542 milliseconds to finish upload 2024-01-29T12:43:30.4420830Z ##[debug]Detail upload trace for file: Code Coverage Report_20890/summary20890/coverage.cobertura.xml 2024-01-29T12:43:30.4420963Z ##[debug]File 'Code Coverage Report_20890/summary20890/coverage.cobertura.xml' will be uploaded in one chunk. 2024-01-29T12:43:30.4421106Z ##[debug]Attempt '1' for uploading chunk '1' of file 'Code Coverage Report_20890/summary20890/coverage.cobertura.xml'. 2024-01-29T12:43:30.4421252Z ##[debug]Generate new HttpRequest for uploading file 'Code Coverage Report_20890/summary20890/coverage.cobertura.xml', chunk '1' of '1'. 2024-01-29T12:43:30.4421430Z ##[debug]Start uploading file 'Code Coverage Report_20890/summary20890/coverage.cobertura.xml' to server, chunk '1'. 2024-01-29T12:43:30.4421571Z ##[debug]Finished upload chunk '1' of file 'Code Coverage Report_20890/summary20890/coverage.cobertura.xml', elapsed 391 (ms), response code 'Created'. 2024-01-29T12:43:30.4421689Z File upload succeed. 2024-01-29T12:43:30.4421779Z Published 'C:\agent\2\_work\1\s\hidden\coverage\link' as artifact 'Code Coverage Report_20890' 2024-01-29T12:43:30.4421882Z ##[section]Async Command End: Publish code coverage 2024-01-29T12:43:30.4422389Z ##[section]Finishing: Publish code coverage report ```
Build Quality Checks ``` 2024-02-01T14:14:07.2281864Z ##[debug]Evaluating condition for step: 'Check build quality' 2024-02-01T14:14:07.2282180Z ##[debug]Evaluating: succeeded() 2024-02-01T14:14:07.2282278Z ##[debug]Evaluating succeeded: 2024-02-01T14:14:07.2282439Z ##[debug]=> True 2024-02-01T14:14:07.2282568Z ##[debug]Result: True 2024-02-01T14:14:07.2282710Z ##[section]Starting: Check build quality 2024-02-01T14:14:07.2346260Z ============================================================================== 2024-02-01T14:14:07.2346316Z Task : Build Quality Checks 2024-02-01T14:14:07.2346347Z Description : Breaks a build based on quality metrics like number of warnings or code coverage. 2024-02-01T14:14:07.2346400Z Version : 9.1.0 2024-02-01T14:14:07.2346426Z Author : Microsoft 2024-02-01T14:14:07.2346466Z Help : [[Docs]](https://github.com/MicrosoftPremier/VstsExtensions/blob/master/BuildQualityChecks/en-US/overview.md) 2024-02-01T14:14:07.2346522Z ============================================================================== 2024-02-01T14:14:07.2372678Z ##[debug]Using node path: C:\agent\2\externals\node16\bin\node.exe 2024-02-01T14:14:07.3225888Z ##[debug]agent.TempDirectory=C:\agent\2\_work\_temp 2024-02-01T14:14:07.3233539Z ##[debug]loading inputs and endpoints 2024-02-01T14:14:07.3237803Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2024-02-01T14:14:07.3285158Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2024-02-01T14:14:07.3286709Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2024-02-01T14:14:07.3288993Z ##[debug]loading INPUT_ADDATTACHMENT 2024-02-01T14:14:07.3290431Z ##[debug]loading INPUT_ALLOWCOVERAGEVARIANCE 2024-02-01T14:14:07.3291626Z ##[debug]loading INPUT_ALLOWWARNINGVARIANCE 2024-02-01T14:14:07.3292869Z ##[debug]loading INPUT_BASEBRANCHREF 2024-02-01T14:14:07.3294671Z ##[debug]loading INPUT_BASEDEFINITIONSELECTOR 2024-02-01T14:14:07.3296462Z ##[debug]loading INPUT_BUILDCONFIGURATION 2024-02-01T14:14:07.3298140Z ##[debug]loading INPUT_BUILDPLATFORM 2024-02-01T14:14:07.3299885Z ##[debug]loading INPUT_CHECKCOVERAGE 2024-02-01T14:14:07.3301790Z ##[debug]loading INPUT_CHECKWARNINGS 2024-02-01T14:14:07.3304180Z ##[debug]loading INPUT_COVERAGEDELTATYPE 2024-02-01T14:14:07.3305809Z ##[debug]loading INPUT_COVERAGEFAILOPTION 2024-02-01T14:14:07.3307356Z ##[debug]loading INPUT_COVERAGEPRECISION 2024-02-01T14:14:07.3313303Z ##[debug]loading INPUT_COVERAGETHRESHOLD 2024-02-01T14:14:07.3314885Z ##[debug]loading INPUT_COVERAGETYPE 2024-02-01T14:14:07.3315836Z ##[debug]loading INPUT_COVERAGEUPPERTHRESHOLD 2024-02-01T14:14:07.3316711Z ##[debug]loading INPUT_COVERAGEVARIANCE 2024-02-01T14:14:07.3317641Z ##[debug]loading INPUT_CREATEBUILDISSUES 2024-02-01T14:14:07.3319560Z ##[debug]loading INPUT_DISABLECERTCHECK 2024-02-01T14:14:07.3320513Z ##[debug]loading INPUT_EVALUATEFILEWARNINGS 2024-02-01T14:14:07.3321426Z ##[debug]loading INPUT_EVALUATETASKWARNINGS 2024-02-01T14:14:07.3322332Z ##[debug]loading INPUT_EXPLICITSELECTOR 2024-02-01T14:14:07.3323795Z ##[debug]loading INPUT_FALLBACKONPRTARGETBRANCH 2024-02-01T14:14:07.3324967Z ##[debug]loading INPUT_FORCECOVERAGEIMPROVEMENT 2024-02-01T14:14:07.3325807Z ##[debug]loading INPUT_FORCEFEWERWARNINGS 2024-02-01T14:14:07.3326577Z ##[debug]loading INPUT_IGNOREDECREASEABOVEUPPERTHRESHOLD 2024-02-01T14:14:07.3327352Z ##[debug]loading INPUT_INCLUDEPARTIALLYSUCCEEDED 2024-02-01T14:14:07.3328149Z ##[debug]loading INPUT_INCLUSIVESELECTION 2024-02-01T14:14:07.3329006Z ##[debug]loading INPUT_SHOWSTATISTICS 2024-02-01T14:14:07.3329975Z ##[debug]loading INPUT_TREAT0OF0AS100 2024-02-01T14:14:07.3330716Z ##[debug]loading INPUT_USEUNCOVEREDELEMENTS 2024-02-01T14:14:07.3331454Z ##[debug]loading INPUT_WARNINGFAILOPTION 2024-02-01T14:14:07.3332234Z ##[debug]loading INPUT_WARNINGFILESARTIFACT 2024-02-01T14:14:07.3333026Z ##[debug]loading INPUT_WARNINGSELECTORS 2024-02-01T14:14:07.3333745Z ##[debug]loading INPUT_WARNINGTASKSELECTORS 2024-02-01T14:14:07.3335425Z ##[debug]loading INPUT_WARNINGTHRESHOLD 2024-02-01T14:14:07.3336367Z ##[debug]loading INPUT_WARNINGVARIANCE 2024-02-01T14:14:07.3338768Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN 2024-02-01T14:14:07.3342037Z ##[debug]loaded 40 2024-02-01T14:14:07.3346002Z ##[debug]Agent.ProxyUrl=undefined 2024-02-01T14:14:07.3346262Z ##[debug]Agent.CAInfo=undefined 2024-02-01T14:14:07.3346459Z ##[debug]Agent.ClientCert=undefined 2024-02-01T14:14:07.3346766Z ##[debug]Agent.SkipCertValidation=undefined 2024-02-01T14:14:07.4495649Z ##[debug]createBuildIssues=false 2024-02-01T14:14:07.4496530Z ##[debug]check path : C:\agent\2\_work\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\9.1.0\task.json 2024-02-01T14:14:07.4498585Z ##[debug]adding resource file: C:\agent\2\_work\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\9.1.0\task.json 2024-02-01T14:14:07.4498741Z ##[debug]system.culture=en-US 2024-02-01T14:14:07.4509597Z ##[debug]check path : C:\agent\2\_work\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\9.1.0\node_modules\nodeapihelpers\messages.json 2024-02-01T14:14:07.4510012Z ##[debug]adding resource file: C:\agent\2\_work\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\9.1.0\node_modules\nodeapihelpers\messages.json 2024-02-01T14:14:07.4510291Z ##[debug]system.culture=en-US 2024-02-01T14:14:07.4515352Z ##[debug]disableCertCheck=false 2024-02-01T14:14:07.4516870Z ##[debug]SystemVssConnection exists true 2024-02-01T14:14:07.4517627Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/hidden/ 2024-02-01T14:14:07.4528682Z ##[debug]BQC.LogRawData=undefined 2024-02-01T14:14:07.4528822Z ##[debug]Build.Repository.Provider=TfsGit 2024-02-01T14:14:07.4530344Z ##[debug]baseBranchRef=$(System.PullRequest.TargetBranch) 2024-02-01T14:14:07.4531297Z ##[debug]Build.SourceBranch=refs/heads/test-pls-ignore 2024-02-01T14:14:07.4534203Z Fixed branch ref from $(System.PullRequest.TargetBranch) to refs/heads/test-pls-ignore 2024-02-01T14:14:07.4534922Z ##[debug]baseDefinitionId=undefined 2024-02-01T14:14:07.4535059Z ##[debug]System.DefinitionId=28 2024-02-01T14:14:07.4536477Z ##[debug]includePartiallySucceeded=false 2024-02-01T14:14:07.4537409Z ##[debug]fallbackOnPRTargetBranch=true 2024-02-01T14:14:07.4538603Z ##[debug]System.TeamProject=SAM 2024-02-01T14:14:07.4538732Z ##[debug]System.DefinitionId=28 2024-02-01T14:14:07.4539412Z ##[debug]Build.DefinitionVersion=12 2024-02-01T14:14:07.4539632Z ##[debug]Build.BuildId=20926 2024-02-01T14:14:07.4540627Z ##[debug]PSGer.Build.PollInterval=undefined 2024-02-01T14:14:07.4540770Z ##[debug]PSGer.Build.MaxWaitTime=undefined 2024-02-01T14:14:07.4546973Z ##[debug]Resource file has already set to: C:\agent\2\_work\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\9.1.0\node_modules\nodeapihelpers\messages.json 2024-02-01T14:14:07.7883081Z ##[debug]System.StageName=__default 2024-02-01T14:14:07.7883462Z ##[debug]System.PhaseDisplayName=Job 2024-02-01T14:14:07.7883734Z ##[debug]System.PhaseName=Job 2024-02-01T14:14:07.7884022Z ##[debug]System.JobId=12f1170f-54f2-53f3-20dd-22fc7dff55f9 2024-02-01T14:14:07.7884333Z ##[debug]System.JobDisplayName=Job 2024-02-01T14:14:07.7884596Z ##[debug]System.JobName=__default 2024-02-01T14:14:07.7884783Z Using IdentifierJobResolver 2024-02-01T14:14:07.7885849Z ##[debug]Resource file has already set to: C:\agent\2\_work\_tasks\BuildQualityChecks_16a2ad20-f191-11e5-bed4-ab22bcd17937\9.1.0\node_modules\nodeapihelpers\messages.json 2024-02-01T14:14:07.7888628Z ##[debug]Build.Repository.Provider=TfsGit 2024-02-01T14:14:07.7888925Z ##[debug]System.PullRequest.PullRequestId=undefined 2024-02-01T14:14:07.7889210Z ##[debug]Build.SourceBranch=refs/heads/test-pls-ignore 2024-02-01T14:14:07.7891460Z ##[debug]runTitle=undefined 2024-02-01T14:14:07.7892279Z ##[debug]Build.Repository.ID=33db6f36-38d5-4613-9fbd-0415f290100a 2024-02-01T14:14:07.7892716Z ##[debug]System.TeamProject=SAM 2024-02-01T14:14:07.7893125Z ##[debug]System.CollectionUri=https://dev.azure.com/hidden/ 2024-02-01T14:14:07.7893524Z ##[debug]Build.BuildId=20926 2024-02-01T14:14:07.7894883Z ##[debug]BQC.ForceNewBaseline=undefined 2024-02-01T14:14:07.7895285Z ##[debug]BQC.DisableVariableCreation=undefined 2024-02-01T14:14:07.7895765Z ##[debug]getEnabledPolicies 2024-02-01T14:14:07.7899293Z ##[debug]checkWarnings=true 2024-02-01T14:14:07.7899503Z ##[debug] - warnings 2024-02-01T14:14:07.7904654Z ##[debug]checkCoverage=true 2024-02-01T14:14:07.7904937Z ##[debug] - coverage 2024-02-01T14:14:07.7906497Z ##[debug]getCurrentJobName 2024-02-01T14:14:07.7907211Z ##[debug]runTitle=undefined 2024-02-01T14:14:07.7908484Z ##[debug]waitForPreviousBuildStepsToFinish 2024-02-01T14:14:07.7909698Z ##[debug]getPreviousBuildSteps 2024-02-01T14:14:07.8848403Z Validating build warnings policy... 2024-02-01T14:14:07.8850740Z ##[debug]WarningsPolicy.runAnalyses 2024-02-01T14:14:07.8859916Z ##[debug]evaluateTaskWarnings=true 2024-02-01T14:14:07.8860521Z ##[debug]WarningsPolicy.runTaskWarningsAnalysis 2024-02-01T14:14:07.8862588Z ##[debug]getBuildJobRecords 2024-02-01T14:14:07.9687325Z ##[debug]warningTaskSelectors=/^Build$/i 2024-02-01T14:14:07.9689321Z ##[debug]RegExpConverter.convertToRegExp 2024-02-01T14:14:07.9694102Z ##[debug]Valid regular expressions: /^Build$/i 2024-02-01T14:14:07.9696475Z ##[debug]warningSelectors=/^((?!S1135)(?!S1133)(?!CS0618).)*$/i 2024-02-01T14:14:07.9697081Z ##[debug]RegExpConverter.convertToRegExp 2024-02-01T14:14:07.9698818Z ##[debug]Valid regular expressions: /^((?!S1135)(?!S1133)(?!CS0618).)*$/i 2024-02-01T14:14:07.9699607Z ##[debug]Build.BuildId=20926 2024-02-01T14:14:07.9701742Z ##[debug]WarningsAnalyzer.analyzeWarnings 2024-02-01T14:14:07.9702054Z Running task warnings analysis... 2024-02-01T14:14:07.9705802Z ##[debug]showStatistics=true 2024-02-01T14:14:07.9708098Z ##[debug]addAttachment=true 2024-02-01T14:14:07.9711036Z ##[debug]WarningsAnalyzer.getRelevantTaskRecordsFromTimeline 2024-02-01T14:14:07.9715602Z Counting warnings from tasks: 2024-02-01T14:14:07.9716219Z - Build 2024-02-01T14:14:07.9718852Z ##[debug]WarningsAnalyzer.runLogFileAnalysis 2024-02-01T14:14:07.9722748Z ##[debug]inclusiveSelection=false 2024-02-01T14:14:07.9726086Z ##[debug]getTimelineLogLines 2024-02-01T14:14:07.9726520Z ##[debug]waitForLogFile 2024-02-01T14:14:07.9775003Z Waiting for log information of task 'Build'... 2024-02-01T14:14:08.5495507Z Running detailed task log analysis... 2024-02-01T14:14:08.5912527Z Total warnings: 3865, Selected warnings: 3526 2024-02-01T14:14:08.5915655Z ##[debug]evaluateFileWarnings=false 2024-02-01T14:14:08.5916286Z Overall total warnings: 3865 2024-02-01T14:14:08.5916513Z Overall selected warnings: 3526 2024-02-01T14:14:08.5918151Z ##[debug]warningFailOption=build 2024-02-01T14:14:08.5920766Z ##[debug]NewBaselineWarningsRule.isFulfilledImpl 2024-02-01T14:14:08.5921256Z ##[debug]NewBaselineRule.evaluateRuleCore 2024-02-01T14:14:08.5922065Z ##[debug]CompareToBaselineWarningsRule.isFulfilledImpl 2024-02-01T14:14:08.5922364Z ##[debug]CompareToBaselineWarningsRule.getWarningsAnalysisFromBaselineBuild 2024-02-01T14:14:08.5922593Z ##[debug]getBaselineBuildId 2024-02-01T14:14:08.5923286Z ##[debug]getBaselineBuild 2024-02-01T14:14:08.5923619Z ##[debug]getCurrentJobStartTime 2024-02-01T14:14:08.7577946Z Found baseline build with ID 20890. 2024-02-01T14:14:08.7585550Z ##[debug]evaluateTaskWarnings=true 2024-02-01T14:14:08.7586013Z ##[debug]CompareToBaselineWarningsRule.runTaskWarningsAnalysis 2024-02-01T14:14:08.7586184Z ##[debug]getBuildJobRecords 2024-02-01T14:14:08.8399768Z ##[debug]getCorrelatingJobIdFromTimeline 2024-02-01T14:14:08.8904575Z ##[debug]warningTaskSelectors=/^Build$/i 2024-02-01T14:14:08.8904787Z ##[debug]RegExpConverter.convertToRegExp 2024-02-01T14:14:08.8905058Z ##[debug]Valid regular expressions: /^Build$/i 2024-02-01T14:14:08.8906699Z ##[debug]warningSelectors=/^((?!S1135)(?!S1133)(?!CS0618).)*$/i 2024-02-01T14:14:08.8907184Z ##[debug]RegExpConverter.convertToRegExp 2024-02-01T14:14:08.8907488Z ##[debug]Valid regular expressions: /^((?!S1135)(?!S1133)(?!CS0618).)*$/i 2024-02-01T14:14:08.8908010Z ##[debug]WarningsAnalyzer.analyzeWarnings 2024-02-01T14:14:08.8908211Z Running task warnings analysis... 2024-02-01T14:14:08.8908520Z ##[debug]showStatistics=true 2024-02-01T14:14:08.8908777Z ##[debug]addAttachment=true 2024-02-01T14:14:08.8909085Z ##[debug]WarningsAnalyzer.getRelevantTaskRecordsFromTimeline 2024-02-01T14:14:08.8909422Z Counting warnings from tasks: 2024-02-01T14:14:08.8909744Z - Build 2024-02-01T14:14:08.8910015Z ##[debug]WarningsAnalyzer.runLogFileAnalysis 2024-02-01T14:14:08.8911486Z ##[debug]inclusiveSelection=false 2024-02-01T14:14:08.8911873Z ##[debug]getTimelineLogLines 2024-02-01T14:14:08.8912144Z ##[debug]waitForLogFile 2024-02-01T14:14:08.8915067Z Waiting for log information of task 'Build'... 2024-02-01T14:14:09.4110951Z Running detailed task log analysis... 2024-02-01T14:14:09.4487041Z Total warnings: 3865, Selected warnings: 3526 2024-02-01T14:14:09.4489820Z ##[debug]evaluateFileWarnings=false 2024-02-01T14:14:09.4489960Z Overall total warnings: 3865 2024-02-01T14:14:09.4490070Z Overall selected warnings: 3526 2024-02-01T14:14:09.4491091Z ##[debug]CompareToBaselineWarningsRule.createOutputVariables 2024-02-01T14:14:09.4491741Z ##[debug]set WarningsPolicy.Baseline.Warnings.Total=3865 2024-02-01T14:14:09.4493004Z ##[debug]Processed: ##vso[task.setvariable variable=WarningsPolicy.Baseline.Warnings.Total;isOutput=false;issecret=false;]3865 2024-02-01T14:14:09.4493184Z ##[debug]set WarningsPolicy.Baseline.Warnings.Filtered=3526 2024-02-01T14:14:09.4494120Z ##[debug]Processed: ##vso[task.setvariable variable=WarningsPolicy.Baseline.Warnings.Filtered;isOutput=false;issecret=false;]3526 2024-02-01T14:14:09.4494512Z ##[debug]CompareToBaselineWarningsRule.preparePostRules 2024-02-01T14:14:09.4494857Z ##[debug]forceFewerWarnings=false 2024-02-01T14:14:09.4496998Z ##[debug]NotAboveBaselineWarningsRule.isFulfilledImpl 2024-02-01T14:14:09.4498426Z ##[debug]BQC.Statistics.MaxAddedWarnings=undefined 2024-02-01T14:14:09.4498811Z ##[debug]BQC.Statistics.MaxRemovedWarnings=undefined 2024-02-01T14:14:09.4498999Z ##[debug]StatisticsCreator.reportBuildWarningsStatistics 2024-02-01T14:14:09.4501554Z ##[debug]BQC.Statistics.PersistAnalysis=undefined 2024-02-01T14:14:09.4502187Z ##[debug]StatisticsCreator.createBuildWarningsStatisticsReport 2024-02-01T14:14:09.4502410Z ##[debug]StatisticsCreator.createCurrentBuildTasksStatisticsReports 2024-02-01T14:14:09.4502601Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsReport 2024-02-01T14:14:09.4502750Z ##[debug]StatisticsCreator.createTaskWarningsStatisticsHeader 2024-02-01T14:14:09.4502940Z ##[debug]StatisticsCreator.createChangedFilesWarningsStatisticsReport 2024-02-01T14:14:09.4584159Z ##[debug]System.Debug=True 2024-02-01T14:14:09.4584507Z ##[debug]System.Debug=True 2024-02-01T14:14:09.4584787Z ##[debug]BQC.Statistics.IgnoreHorizontalMoves=undefined 2024-02-01T14:14:09.4586449Z Warnings analysis for C:\agent\2\_work\_tool\dotnet\sdk\8.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets took 0.147ms 2024-02-01T14:14:09.4605594Z ##[debug]System.Debug=True 2024-02-01T14:14:09.4606001Z ##[debug]System.Debug=True 2024-02-01T14:14:09.4606286Z ##[debug]BQC.Statistics.IgnoreHorizontalMoves=undefined 2024-02-01T14:14:09.4606462Z Warnings analysis for CSC took 0.009ms 2024-02-01T14:14:09.4606675Z ##[debug]System.Debug=True 2024-02-01T14:14:09.4606906Z ##[debug]System.Debug=True 2024-02-01T14:14:09.5302763Z Warnings analysis for hidden.cs took 0.003ms .... 2024-02-01T14:14:09.5302997Z ##[debug]System.Debug=True 2024-02-01T14:14:09.5303211Z ##[debug]System.Debug=True 2024-02-01T14:14:09.5303450Z ##[debug]BQC.Statistics.IgnoreHorizontalMoves=undefined 2024-02-01T14:14:09.5303639Z Warnings analysis for hidden.cs took 0.002ms 2024-02-01T14:14:09.5303902Z ##[debug]StatisticsCreator.createFilesWithRemovedWarningsStatisticsReport 2024-02-01T14:14:09.5304173Z ##[debug]StatisticsCreator.createFilesWithNewWarningsStatisticsReport 2024-02-01T14:14:09.5304455Z ##[debug]StatisticsCreator.createMissingBaselineBuildTasksStatisticsReports 2024-02-01T14:14:09.5304631Z Statistics generation took 66.734ms 2024-02-01T14:14:09.5304823Z ##[debug]runTitle=undefined 2024-02-01T14:14:09.5305112Z ##[debug]set WarningsPolicy.Result=passed 2024-02-01T14:14:09.5305768Z ##[debug]Processed: ##vso[task.setvariable variable=WarningsPolicy.Result;isOutput=false;issecret=false;]passed 2024-02-01T14:14:09.5306054Z ##[debug]WarningsPolicy.createOutputVariables 2024-02-01T14:14:09.5306299Z ##[debug]set WarningsPolicyResult=passed 2024-02-01T14:14:09.5306778Z ##[debug]Processed: ##vso[task.setvariable variable=WarningsPolicyResult;isOutput=false;issecret=false;]passed 2024-02-01T14:14:09.5307069Z ##[debug]set WarningsPolicy.Warnings.Total=3865 2024-02-01T14:14:09.5332492Z ##[debug]Processed: ##vso[task.setvariable variable=WarningsPolicy.Warnings.Total;isOutput=false;issecret=false;]3865 2024-02-01T14:14:09.5332872Z ##[debug]set WarningsPolicy.Warnings.Filtered=3526 2024-02-01T14:14:09.5333448Z ##[debug]Processed: ##vso[task.setvariable variable=WarningsPolicy.Warnings.Filtered;isOutput=false;issecret=false;]3526 2024-02-01T14:14:09.5333652Z Validating code coverage policy... 2024-02-01T14:14:09.5333854Z ##[debug]System.TeamProject=SAM 2024-02-01T14:14:09.5334086Z ##[debug]Build.BuildId=20926 2024-02-01T14:14:09.5334321Z ##[debug]CoverageValueReader.getCoverageValue 2024-02-01T14:14:09.5334555Z ##[debug]Build.BuildId=20926 2024-02-01T14:14:09.5334797Z ##[debug]CoverageValueReader.getCodeCoverageSummaryFromBuild 2024-02-01T14:14:09.5335285Z ##[debug]getCodeCoverageData 2024-02-01T14:14:09.5335503Z ##[debug]prepareClients 2024-02-01T14:14:09.9440986Z ##[debug]PSGer.Cover.MaxWaitTime=undefined 2024-02-01T14:14:12.1586811Z ##[debug]Agent running environment resource - Disk:C:\ available:399270.00MB out of 953117.00MB, Memory: used 127MB out of 32538MB, CPU: usage 1.59 2024-02-01T14:14:12.4445010Z Successfully read code coverage data from build. 2024-02-01T14:14:12.4450975Z ##[debug]CoverageValueReader.filterCoverageDataByConfigAndPlatform 2024-02-01T14:14:12.4458280Z ##[debug]buildConfiguration=Debug 2024-02-01T14:14:12.4461340Z ##[debug]buildPlatform=Any CPU 2024-02-01T14:14:12.4464026Z ##[debug]explicitSelector=false 2024-02-01T14:14:12.4464762Z ##[debug]Inspecting 1 code coverage data sets... 2024-02-01T14:14:12.4469982Z ##[debug]CoverageValueReader.aggregateCoverageValues 2024-02-01T14:14:12.4473852Z ##[debug]coverageType=branches 2024-02-01T14:14:12.4475783Z ##[debug]CoverageValueReader.calculateCoveragePercentageWithPrecision 2024-02-01T14:14:12.4479031Z ##[debug]coveragePrecision=4 2024-02-01T14:14:12.4481455Z ##[debug]coverageVariance=0.5 2024-02-01T14:14:12.4483558Z ##[debug]treat0of0as100=false 2024-02-01T14:14:12.4485028Z ##[debug]treat0of0as100=false 2024-02-01T14:14:12.4485220Z Total branches: 0 2024-02-01T14:14:12.4485337Z Covered branches: 0 2024-02-01T14:14:12.4485509Z Code Coverage (%): 0 2024-02-01T14:14:12.4487759Z ##[debug]coverageFailOption=build 2024-02-01T14:14:12.4491565Z ##[debug]NewBaselineCoverageRule.isFulfilledImpl 2024-02-01T14:14:12.4492216Z ##[debug]NewBaselineRule.evaluateRuleCore 2024-02-01T14:14:12.4497007Z ##[debug]CompareToBaselinCoverageRule.isFulfilledImpl 2024-02-01T14:14:12.4497535Z ##[debug]CompareToBaselinCoverageRule.getCoverageValueFromBaselineBuild 2024-02-01T14:14:12.4497777Z ##[debug]getBaselineBuildId 2024-02-01T14:14:12.4497997Z ##[debug]getBaselineBuild 2024-02-01T14:14:12.4498214Z ##[debug]getCurrentJobStartTime 2024-02-01T14:14:12.4905547Z Found baseline build with ID 20890. 2024-02-01T14:14:12.4907498Z ##[debug]System.TeamProject=SAM 2024-02-01T14:14:12.4908102Z ##[debug]CoverageValueReader.getCoverageValue 2024-02-01T14:14:12.4908623Z ##[debug]Build.BuildId=20926 2024-02-01T14:14:12.4909142Z ##[debug]CoverageValueReader.getCodeCoverageSummaryFromBuild 2024-02-01T14:14:12.4909672Z ##[debug]getCodeCoverageData 2024-02-01T14:14:12.4910131Z ##[debug]prepareClients 2024-02-01T14:14:12.8320687Z Successfully read code coverage data from build. 2024-02-01T14:14:12.8322565Z ##[debug]CoverageValueReader.filterCoverageDataByConfigAndPlatform 2024-02-01T14:14:12.8326388Z ##[debug]buildConfiguration=Debug 2024-02-01T14:14:12.8329672Z ##[debug]buildPlatform=Any CPU 2024-02-01T14:14:12.8332608Z ##[debug]explicitSelector=false 2024-02-01T14:14:12.8334090Z ##[debug]Inspecting 1 code coverage data sets... 2024-02-01T14:14:12.8335537Z ##[debug]CoverageValueReader.aggregateCoverageValues 2024-02-01T14:14:12.8337108Z ##[debug]coverageType=branches 2024-02-01T14:14:12.8338329Z ##[debug]CoverageValueReader.calculateCoveragePercentageWithPrecision 2024-02-01T14:14:12.8338823Z ##[debug]coveragePrecision=4 2024-02-01T14:14:12.8340596Z ##[debug]coverageVariance=0.5 2024-02-01T14:14:12.8342665Z ##[debug]treat0of0as100=false 2024-02-01T14:14:12.8345815Z ##[debug]treat0of0as100=false 2024-02-01T14:14:12.8346155Z Total branches: 0 2024-02-01T14:14:12.8346333Z Covered branches: 0 2024-02-01T14:14:12.8346512Z Code Coverage (%): 0 2024-02-01T14:14:12.8347035Z ##[debug]CompareToBaselineCoverageRule.createOutputVariables 2024-02-01T14:14:12.8347478Z ##[debug]set CodeCoveragePolicy.Baseline.Elements.Total=0 2024-02-01T14:14:12.8349763Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Baseline.Elements.Total;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8350289Z ##[debug]set CodeCoveragePolicy.Baseline.Elements.Covered=0 2024-02-01T14:14:12.8351107Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Baseline.Elements.Covered;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8352733Z ##[debug]set CodeCoveragePolicy.Baseline.Elements.Uncovered=0 2024-02-01T14:14:12.8354118Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Baseline.Elements.Uncovered;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8354760Z ##[debug]set CodeCoveragePolicy.Baseline.Percentage.Covered=0 2024-02-01T14:14:12.8356045Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Baseline.Percentage.Covered;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8356679Z ##[debug]set CodeCoveragePolicy.Baseline.Percentage.Uncovered=0 2024-02-01T14:14:12.8357601Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Baseline.Percentage.Uncovered;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8358143Z ##[debug]CompareToBaselinCoverageRule.preparePostRules 2024-02-01T14:14:12.8358636Z ##[debug]forceCoverageImprovement=false 2024-02-01T14:14:12.8359058Z ##[debug]useUncoveredElements=false 2024-02-01T14:14:12.8359666Z ##[debug]NotBelowBaselineCoverageRule.isFulfilledImpl 2024-02-01T14:14:12.8361713Z ##[debug]forceCoverageImprovement=false 2024-02-01T14:14:12.8364125Z ##[debug]coverageDeltaType=percentage 2024-02-01T14:14:12.8365425Z ##[debug]runTitle=undefined 2024-02-01T14:14:12.8365835Z ##[debug]set CodeCoveragePolicy.Result=passed 2024-02-01T14:14:12.8366965Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Result;isOutput=false;issecret=false;]passed 2024-02-01T14:14:12.8367466Z ##[debug]CodeCoveragePolicy.createOutputVariables 2024-02-01T14:14:12.8367731Z ##[debug]set CodeCoveragePolicyResult=passed 2024-02-01T14:14:12.8368562Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicyResult;isOutput=false;issecret=false;]passed 2024-02-01T14:14:12.8368997Z ##[debug]set CodeCoveragePolicy.Elements.Total=0 2024-02-01T14:14:12.8369634Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Elements.Total;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8369956Z ##[debug]set CodeCoveragePolicy.Elements.Covered=0 2024-02-01T14:14:12.8370465Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Elements.Covered;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8370780Z ##[debug]set CodeCoveragePolicy.Elements.Uncovered=0 2024-02-01T14:14:12.8371296Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Elements.Uncovered;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8371612Z ##[debug]set CodeCoveragePolicy.Percentage.Covered=0 2024-02-01T14:14:12.8372260Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Percentage.Covered;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8372563Z ##[debug]set CodeCoveragePolicy.Percentage.Uncovered=0 2024-02-01T14:14:12.8373189Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Percentage.Uncovered;isOutput=false;issecret=false;]0 2024-02-01T14:14:12.8373538Z ##[debug]set CodeCoveragePolicy.Elements.Label=branches 2024-02-01T14:14:12.8374138Z ##[debug]Processed: ##vso[task.setvariable variable=CodeCoveragePolicy.Elements.Label;isOutput=false;issecret=false;]branches 2024-02-01T14:14:12.8374377Z ##[debug]setTaskResult 2024-02-01T14:14:12.8374691Z ##[debug]addAttachment=true 2024-02-01T14:14:12.8375895Z ##[debug]addResultAttachment 2024-02-01T14:14:12.8376800Z ##[debug]Agent.TempDirectory=C:\agent\2\_work\_temp 2024-02-01T14:14:12.8398762Z ##[debug]Processed: ##vso[task.addattachment type=Distributedtask.Core.Summary;name=Build Quality Checks;]C:\agent\2\_work\_temp\BuildQualityChecksSummary.md 2024-02-01T14:14:12.8496665Z ##[section]Finishing: Check build quality ```
ReneSchumacher commented 4 months ago

Hi @Pentadome,

unfortunately, the logs don't show that much information. Could you please set the variable BQC.LogRawData to true in addition to System.Debug, which is already enabled? This will show the API responses in the BQC logs. We haven't seen this for a while now, but it might be a timing issue. If you don't want to share the full logs here, send them to PSGerExtSupport@microsoft.com.

You should also prepare to move to v2 of the publish code coverage results tasks as announced at New version of PCCR task.

nanivijay commented 4 months ago

We are also facing the same issue.

Pool: OneBranchPipelines Agent: OneBranchPipelines 53

Task : Build Quality Checks Description : Breaks a build based on quality metrics like number of warnings or code coverage. Version : 8.2.1 Author : Microsoft Help : [Docs]

Using IdentifierJobResolver Validating code coverage policy... Waiting for code coverage data... Waiting for code coverage data... Successfully read code coverage data from build. Total blocks: 0 Covered blocks: 0 Code Coverage (%): 0 Found baseline build with ID 9371003. Successfully read code coverage data from build. Evaluating coverage data from 1 filtered code coverage data sets... Total blocks: 11458 Covered blocks: 8580 Code Coverage (%): 74.8822 [ERROR] The code coverage (percentage) value (0%, 0 blocks) is lower than the value of the previous build including variance! The previous build had a coverage value of 74.8822% (8580 blocks).

[error]The code coverage (percentage) value (0%, 0 blocks) is lower than the value of the previous build including variance! The previous build had a coverage value of 74.8822% (8580 blocks).

nicobarengo commented 4 months ago

Same issue here... was working perfectly until friday and in monday started to fail without changing anything in the pipeline.

Friday log: Validating code coverage policy... Waiting for code coverage data... Waiting for code coverage data... Successfully read code coverage data from build. Evaluating coverage data from 1 filtered code coverage data sets... Total lines: 65733 Covered lines: 20625 Code Coverage (%): 31.4 Found baseline build with ID 19358. Successfully read code coverage data from build. Evaluating coverage data from 1 filtered code coverage data sets... Total lines: 65733 Covered lines: 20625 Code Coverage (%): 31.4 [SUCCESS] Code coverage policy passed with 31.4% (20625/65733 lines).

Monday log: Validating code coverage policy... Waiting for code coverage data... Waiting for code coverage data... Waiting for code coverage data... Waiting for code coverage data... Waiting for code coverage data... Successfully read code coverage data from build. Total lines: 0 Covered lines: 0 Code Coverage (%): 0 Found baseline build with ID 19359. Successfully read code coverage data from build. Evaluating coverage data from 1 filtered code coverage data sets... Total lines: 65733 Covered lines: 20625 Code Coverage (%): 31.4 [ERROR] The code coverage (percentage) value (0%, 0 lines) is lower than the value of the previous build! The previous build had a coverage value of 31.4% (20625 lines).

[error]The code coverage (percentage) value (0%, 0 lines) is lower than the value of the previous build! The previous build had a coverage value of 31.4% (20625 lines).

alanpo1 commented 4 months ago

We are also facing the same issue...

Logs today (tuesday 2/7):

Starting: BuildQualityChecks

Task : Build Quality Checks Description : Breaks a build based on quality metrics like number of warnings or code coverage. Version : 8.2.1 Author : Microsoft Help : [Docs]

Using IdentifierJobResolver Validating code coverage policy... Successfully read code coverage data from build. Total lines: 0 Covered lines: 0 Code Coverage (%): 0 Found baseline build with ID 118012916. Successfully read code coverage data from build. Evaluating coverage data from 1 filtered code coverage data sets... Total lines: 15507 Covered lines: 12234 Code Coverage (%): 78.8934 [ERROR] The code coverage (percentage) value (0%, 0 lines) is lower than the value of the previous build including variance! The previous build had a coverage value of 78.8934% (12234 lines).

[error]The code coverage (percentage) value (0%, 0 lines) is lower than the value of the previous build including variance! The previous build had a coverage value of 78.8934% (12234 lines).

Finishing: BuildQualityChecks

ReneSchumacher commented 4 months ago

Hi all,

we're currently investigating the issue. It seems to be related to an old bug in the way Azure DevOps reports coverage data processing status. When you enable additional logging by setting variables System.Debug and BQC.LogRawData to true, you should see output in the log file similar to this:

CoverageValueReader.getCodeCoverageSummaryFromBuild
…
{"coverageData":[],"build":{"id":"13694018","url":https://dev.azure.com/...},"deltaBuild":null,"status":4,"coverageDetailedSummaryStatus":"codeCoverageSuccess"}
...
Waiting for code coverage data...
...
{"coverageData":[],"build":{"id":"13694018","url":https://dev.azure.com/...},"deltaBuild":null,"status":4,"coverageDetailedSummaryStatus":"codeCoverageSuccess"}
...
Waiting for code coverage data...
...
{"coverageData":[],"build":{"id":"13694018","url":https://dev.azure.com/...},"deltaBuild":null,"status":2,"coverageDetailedSummaryStatus":"codeCoverageSuccess"}
...
Successfully read code coverage data from build.

You can see that the status property changes from 4 (i.e., pending) to 2 (i.e., complete), even though the coverageData property does not return any data. This usually means that you have multiple test runs and, thus, multiple coverage results in your pipeline and Azure DevOps has not yet fully processed all data. However, the API returns the complete status (in fact, it is flipping between pending, in progress, and complete) indicating that data has been processed.

There's not much we can do from the task side to fix this issue. The only workaround is to add additional time between the publish code coverage results task and our build quality checks task. You can try moving BQC further down in your pipeline job, or you could try adding some wait time to the pipeline.

For those of you who are still using v1 of the publish code coverage results task, it might also be an option to update the task to v2. This should be working properly, even though I cannot guarantee it. We're still working on parsing coverage data within the BQC task, so we become independent of the Azure DevOps functionality.

nicobarengo commented 4 months ago

Hi, I've tried moving the build quality checks to the end of the pipeline, running a minute after the tests are completed and it keeps reporting 0 lines covered.

Validating code coverage policy... Successfully read code coverage data from build. Total lines: 0 Covered lines: 0 Code Coverage (%): 0

ReneSchumacher commented 4 months ago

Hi @nicobarengo,

did you also try using publish code coverage results v2? Or have you been using that version already?

nicobarengo commented 4 months ago

No, I just get the coverage from dotnet test task

ReneSchumacher commented 4 months ago

Got it. We can try two things:

  1. Once the pipeline has finished, can you check the summary page and see if a code coverage value is shown in the upper right corner?
  2. Can you, just for testing purposes, add a PowerShell (or script) task before BQC and inject a wait? In PowerShell this would be something like Start-Sleep -Seconds 300. Let's try waiting for five minutes and see if coverage data appears.

There was an issue with the publish task before that prevented data processing until the pipeline was finished. Maybe the internal publishing of the .NET core task suffers from the same issue. You can see that when looking at the build summary page as soon as the pipeline finishes. If it shows coverage data right away, it has been processed during the pipeline run. However, if it takes a couple seconds and refreshes until data is shown, processing starts after the pipeline finishes.

If the issue is with the .NET task, I must inform Azure DevOps PG.

jhofer commented 4 months ago

We are facing the same issue. tried also both approches (sleep and v2) without success We are using it in combination with the VSTest@2 task

In our case no coverage is displayed: image

ReneSchumacher commented 4 months ago

Hi @jhofer,

that was exactly what I was assuming. There seems to be an issue - again - with coverage processing in the backend. 😭 That's why we want to become independent of the Azure DevOps APIs. I'll talk to the team.

oviradoi commented 4 months ago

We are also facing the same issue 🙁

jhofer commented 4 months ago

@ReneSchumacher did you find a related issue on a MS repository?

ReneSchumacher commented 4 months ago

Hi @jhofer,

there is no public repository for the code that might have the issue, this is all internal. I have discussed the issue with PG and they were looking into it. However, I received the information from an internal user that the issue has resolved itself. Are you still impacted?

oviradoi commented 4 months ago

@ReneSchumacher Since Monday, all of our pipelines are back to normal except for one of them 🙂 It keeps failing consistently with the same issue. So it seems the problem is not 100% resolved, it might still be broken on some server somewhere that handles only some pipelines, ours included.

nicobarengo commented 4 months ago

I can confirm from my side that is working again

ReneSchumacher commented 3 months ago

Closing the issue as the problem seems to be resolved on the Azure DevOps side. If you are still impacted, please comment.