Skip to content

Commit bb61cea

Browse files
committed
debug artifact presence
1 parent 27216e6 commit bb61cea

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/testResultsSummary.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,19 @@ export function getTestResults(
217217
};
218218
const resultsPath = path.join(runnerTemp, `matlabTestResults_${runId}_${actionName}.json`);
219219

220+
try {
221+
const fs = require('fs');
222+
console.log(`Contents of runnerTemp directory (${runnerTemp}):`);
223+
const files = fs.readdirSync(runnerTemp);
224+
files.forEach((file: string) => {
225+
const filePath = path.join(runnerTemp, file);
226+
const stats = fs.statSync(filePath);
227+
console.log(`- ${file} (${stats.isDirectory() ? 'directory' : 'file'}, ${stats.size} bytes)`);
228+
});
229+
} catch (listError) {
230+
console.error(`Error listing files in runnerTemp directory: ${listError}`);
231+
}
232+
220233
if (existsSync(resultsPath)) {
221234
try {
222235
const testArtifact = JSON.parse(readFileSync(resultsPath, "utf8"));
@@ -250,6 +263,8 @@ export function getTestResults(
250263
);
251264
}
252265
}
266+
} else {
267+
console.warn(`Test results summary file ${resultsPath} does not exist.`);
253268
}
254269

255270
return testResultsData;

0 commit comments

Comments
 (0)