Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Sep 13, 2024
1 parent aaeb507 commit 50dda00
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/get_test_infos/get_test_infos.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@ export async function getTestInfos(dirs, excludeDirs) {
return [...acc, ...discoveredDirs];
}, Promise.resolve([]));

console.error(`These are all the dirs we found`);
console.error(JSON.stringify(allDirs));
console.error(`These are all of the dirs we are excluding`);
console.error(excludeDirs);
const testDirs = [...new Set(allDirs)] // Remove duplicates if any
.sort()
.filter((dir) => dir && !isExcluded(dir, excludeDirs));
console.error(`These are all of the dirs after we have filtered`);
console.error(testDirs);

const testInfos = testDirs.map((dir) => dirToTestInfo(dir));

return testInfos;
}

function isExcluded(dir, excludeDirs) {
if (dir.includes('bitcoin')) {
console.error('This is a bitcoin dir');
console.error(dir);
console.error('odds are it should be excluded');
console.error(excludeDirs.some((exclude) => dir.includes(exclude)));
}
return excludeDirs.some((exclude) => dir.includes(exclude));
}

0 comments on commit 50dda00

Please sign in to comment.