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 (elastic#187597)

This PR fixes what was brought on at
elastic#181711 .

What was proposed won't work as we don't have codeowners files on
branches other than main.
  • Loading branch information
mistic authored Jul 4, 2024
1 parent 13b3de2 commit 228a6ff
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 228a6ff

Please sign in to comment.