Skip to content

Commit

Permalink
fix(NA): unhandled exception for junit report generation when no code…
Browse files Browse the repository at this point in the history
…owners (#187597)

This PR fixes what was brought on at
#181711 .

What was proposed won't work as we don't have codeowners files on
branches other than main.

(cherry picked from commit 228a6ff)
  • Loading branch information
mistic committed Jul 4, 2024
1 parent 1c1713a commit 20d55e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/kbn-test/src/mocha/junit_report_generation.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ export function setupJUnitReportGeneration(runner, options = {}) {
.map((node) => ({ skipped: true, node }));

// cache codeowners for quicker lookup
const reversedCodeowners = getPathsWithOwnersReversed();
let reversedCodeowners = [];
try {
reversedCodeowners = getPathsWithOwnersReversed();
} catch {}

const commandLine = prettifyCommandLine(process.argv);

Expand Down

0 comments on commit 20d55e1

Please sign in to comment.