From 1f506365db6ca48bfa849eb414a471a353218ee8 Mon Sep 17 00:00:00 2001 From: jpaul Date: Sat, 18 Nov 2023 08:49:11 +0100 Subject: [PATCH] add logging for debugging --- dist/cleanup/index.js | 2 ++ dist/main/index.js | 2 ++ src/features/reports.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 016510f..b3244cd 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -74444,6 +74444,7 @@ function setUpNativeImageBuildReports(isGraalVMforJDK17OrLater, graalVMVersion) core.warning(`Build reports for PRs and job summaries are only available in GraalVM 22.2.0 or later. This build job uses GraalVM ${graalVMVersion}.`); return; } + core.info(`DEBUGGING: -H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); setNativeImageOption(`-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); // Escape backslashes for Windows }); } @@ -74455,6 +74456,7 @@ function generateReports() { core.warning('Unable to find build output data to create a report. Are you sure this build job has used GraalVM Native Image?'); return; } + core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`); const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8')); const treeSha = yield (0, utils_1.createTree)(JSON.stringify(buildOutput)); yield (0, utils_1.createRef)(treeSha); diff --git a/dist/main/index.js b/dist/main/index.js index e967358..324b84e 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -74543,6 +74543,7 @@ function setUpNativeImageBuildReports(isGraalVMforJDK17OrLater, graalVMVersion) core.warning(`Build reports for PRs and job summaries are only available in GraalVM 22.2.0 or later. This build job uses GraalVM ${graalVMVersion}.`); return; } + core.info(`DEBUGGING: -H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); setNativeImageOption(`-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`); // Escape backslashes for Windows }); } @@ -74554,6 +74555,7 @@ function generateReports() { core.warning('Unable to find build output data to create a report. Are you sure this build job has used GraalVM Native Image?'); return; } + core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`); const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8')); const treeSha = yield (0, utils_1.createTree)(JSON.stringify(buildOutput)); yield (0, utils_1.createRef)(treeSha); diff --git a/src/features/reports.ts b/src/features/reports.ts index c736648..d824da3 100644 --- a/src/features/reports.ts +++ b/src/features/reports.ts @@ -109,6 +109,7 @@ export async function setUpNativeImageBuildReports( ) return } + core.info(`DEBUGGING: -H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}`) setNativeImageOption( `-H:BuildOutputJSONFile=${BUILD_OUTPUT_JSON_PATH.replace(/\\/g, '\\\\')}` )// Escape backslashes for Windows @@ -122,6 +123,7 @@ export async function generateReports(): Promise { ) return } + core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`) const buildOutput: BuildOutput = JSON.parse( fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8') )