add logging for debugging

This commit is contained in:
jpaul 2023-11-21 11:06:39 +01:00
parent 1f506365db
commit 38a653dad2
3 changed files with 3 additions and 3 deletions

2
dist/cleanup/index.js generated vendored
View File

@ -74452,11 +74452,11 @@ exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
function generateReports() {
return __awaiter(this, void 0, void 0, function* () {
if (areJobReportsEnabled() || arePRReportsEnabled()) {
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`);
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
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);

2
dist/main/index.js generated vendored
View File

@ -74551,11 +74551,11 @@ exports.setUpNativeImageBuildReports = setUpNativeImageBuildReports;
function generateReports() {
return __awaiter(this, void 0, void 0, function* () {
if (areJobReportsEnabled() || arePRReportsEnabled()) {
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`);
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
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);

View File

@ -117,13 +117,13 @@ export async function setUpNativeImageBuildReports(
export async function generateReports(): Promise<void> {
if (areJobReportsEnabled() || arePRReportsEnabled()) {
core.info(`DEBUGGING: ${BUILD_OUTPUT_JSON_PATH}`)
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
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: BuildOutput = JSON.parse(
fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8')
)