Skip to content

Pr.Metrics breaks all builds (groupby is not a function)Β #790

@RealCoda

Description

@RealCoda

Summary

should not break the build with

πŸ” info – TypeError – message: "Object.groupBy is not a function"
##[error]Object.groupBy is not a function

Reproduction Steps

run the build on Azure DevOps On Premise

Troubleshooting Undertaken

ran the build again :-/
checked version 1.7.14 was installed automagically 4 hours ago

Additional Information

πŸ” debug – * AzureReposInvoker.getGitApi()
πŸ” debug – * GitInvoker.pullRequestId
πŸ” debug – * GitInvoker.pullRequestIdInternal
πŸ” debug – * CodeMetricsCalculator.updateComments()
πŸ” debug – * PullRequestComments.getCommentData()
πŸ” debug – * CodeMetrics.getFilesNotRequiringReview()
πŸ” debug – * CodeMetrics.initialize()
πŸ” debug – * CodeMetrics.performInitialization()
πŸ” debug – * GitInvoker.getDiffSummary()
πŸ” debug – * GitInvoker.initialize()
πŸ” debug – * GitInvoker.invokeGit()
πŸ” debug – * CodeMetrics.initializeMetrics()
πŸ” debug – * CodeMetrics.createFileMetricsMap()
πŸ” debug – * Inputs.fileMatchingPatterns
πŸ” debug – * Inputs.initialize()
πŸ” debug – * Inputs.initializeBaseSize()
πŸ” debug – * Inputs.initializeNumeric()
πŸ” info – Adjusting the base size input to '200'.
πŸ” debug – * Inputs.initializeGrowthRate()
πŸ” debug – * Inputs.initializeNumeric()
πŸ” info – Adjusting the growth rate input to '2'.
πŸ” debug – * Inputs.initializeTestFactor()
πŸ” info – Adjusting the test factor input to '1'.
πŸ” debug – * Inputs.initializeAlwaysCloseComment()
πŸ” info – Adjusting the always-close-comment mode input to 'false'.
πŸ” debug – * Inputs.initializeFileMatchingPatterns()
πŸ” debug – * Inputs.initializeMatchingPatterns()
πŸ” info – Adjusting the file matching patterns input to '["/*","!/package-lock.json"]'.
πŸ” debug – * Inputs.initializeTestMatchingPatterns()
πŸ” debug – * Inputs.initializeMatchingPatterns()
πŸ” info – Adjusting the test matching patterns input to '["/{{t,T}est,TEST}","/{{t,T}est,TEST}/","/.{{s,S}pec,SPEC}.","/.{{s,S}pec,SPEC}./"]'.
πŸ” debug – * Inputs.initializeCodeFileExtensions()
πŸ” info – Adjusting the code file extensions input to '["js","_js","bones","cjs","es","es6","frag","gs","jake","jsb","jscad","jsfl","jsm","jss","jsx","mjs","njs","pac","sjs","ssjs","xsjs","xsjslib","epj","erb","py","cgi","fcgi","gyp","gypi","lmi","py3","pyde","pyi","pyp","pyt","pyw","rpy","smk","spec","tac","wsgi","xpy","pyx","pxd","pxi","eb","numpy","numpyw","numsc","pytb","java","jsp","ts","mts","tsx","mtsx","cs","cake","csx","linq","php","aw","ctp","inc","php3","php4","php5","phps","phpt","cpp","c++","cc","cp","cxx","h","h++","hh","hpp","hxx","inl","ino","ipp","re","tcc","tpp","c","cats","idc","cl","opencl","upc","xbm","xpm","pm","sh","bash","bats","command","env","ksh","tmux","tool","zsh","fish","ebuild","eclass","ps1","psd1","psm1","tcsh","csh","rb","builder","eye","gemspec","god","jbuilder","mspec","pluginspec","podspec","prawn","rabl","rake","rbi","rbuild","rbw","rbx","ru","ruby","thor","watchr"]'.
πŸ” info – TypeError – stack: "TypeError: Object.groupBy is not a function\n at CodeMetrics.initializeMetrics (file:///C:/agent/_work/_tasks/PRMetrics_907d3b28-6b37-4ac7-ac75-9631ee53e512/1.7.14/index.mjs:40:59055)\n at CodeMetrics.performInitialization (file:///C:/agent/_work/_tasks/PRMetrics_907d3b28-6b37-4ac7-ac75-9631ee53e512/1.7.14/index.mjs:40:58808)\n at async CodeMetrics.getFilesNotRequiringReview (file:///C:/agent/_work/_tasks/PRMetrics_907d3b28-6b37-4ac7-ac75-9631ee53e512/1.7.14/index.mjs:40:57557)\n at async PullRequestComments.getCommentData (file:///C:/agent/_work/_tasks/PRMetrics_907d3b28-6b37-4ac7-ac75-9631ee53e512/1.7.14/index.mjs:45:107151)\n at async CodeMetricsCalculator.updateComments (file:///C:/agent/_work/_tasks/PRMetrics_907d3b28-6b37-4ac7-ac75-9631ee53e512/1.7.14/index.mjs:40:66847)\n at async Promise.all (index 1)\n at async PullRequestMetrics.run (file:///C:/agent/_work/_tasks/PRMetrics_907d3b28-6b37-4ac7-ac75-9631ee53e512/1.7.14/index.mjs:45:111145)\n at async run (file:///C:/agent/_work/_tasks/PRMetrics_907d3b28-6b37-4ac7-ac75-9631ee53e512/1.7.14/index.mjs:45:117404)"
πŸ” info – TypeError – message: "Object.groupBy is not a function"
##[error]Object.groupBy is not a function
Finishing: PR Metrics

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions