[bot] Update dist directory

This commit is contained in:
bigdaz 2024-04-18 19:41:35 +00:00 committed by github-actions[bot]
parent c198d84863
commit 750cdda3ed
10 changed files with 77 additions and 47 deletions

View File

@ -144345,6 +144345,9 @@ class DependencyGraphConfig {
getJobCorrelator() { getJobCorrelator() {
return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix()); return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix());
} }
getReportDirectory() {
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
}
static constructJobCorrelator(workflow, jobId, matrixJson) { static constructJobCorrelator(workflow, jobId, matrixJson) {
const matrixString = this.describeMatrix(matrixJson); const matrixString = this.describeMatrix(matrixJson);
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`; const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;
@ -144694,7 +144697,7 @@ async function setup(config) {
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_REF', github.context.ref); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_REF', github.context.ref);
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext());
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)());
maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', path.resolve((0, configuration_1.getWorkspaceDirectory)(), 'dependency-graph-reports')); maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory());
if (option === configuration_1.DependencyGraphOption.Clear) { if (option === configuration_1.DependencyGraphOption.Clear) {
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', ''); core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', '');
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', ''); core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', '');
@ -144716,10 +144719,10 @@ async function complete(config) {
return; return;
case configuration_1.DependencyGraphOption.GenerateAndSubmit: case configuration_1.DependencyGraphOption.GenerateAndSubmit:
case configuration_1.DependencyGraphOption.Clear: case configuration_1.DependencyGraphOption.Clear:
await submitDependencyGraphs(await findGeneratedDependencyGraphFiles()); await submitDependencyGraphs(await findDependencyGraphFiles());
return; return;
case configuration_1.DependencyGraphOption.GenerateAndUpload: case configuration_1.DependencyGraphOption.GenerateAndUpload:
await uploadDependencyGraphs(await findGeneratedDependencyGraphFiles(), config); await uploadDependencyGraphs(await findDependencyGraphFiles(), config);
} }
} }
catch (e) { catch (e) {
@ -144727,11 +144730,11 @@ async function complete(config) {
} }
} }
exports.complete = complete; exports.complete = complete;
async function findGeneratedDependencyGraphFiles() {
const workspaceDirectory = (0, configuration_1.getWorkspaceDirectory)();
return await findDependencyGraphFiles(workspaceDirectory);
}
async function uploadDependencyGraphs(dependencyGraphFiles, config) { async function uploadDependencyGraphs(dependencyGraphFiles, config) {
if (dependencyGraphFiles.length === 0) {
core.info('No dependency graph files found to upload.');
return;
}
if (isRunningInActEnvironment()) { if (isRunningInActEnvironment()) {
core.info('Dependency graph upload not supported in the ACT environment.'); core.info('Dependency graph upload not supported in the ACT environment.');
core.info(`Would upload: ${dependencyGraphFiles.join(', ')}`); core.info(`Would upload: ${dependencyGraphFiles.join(', ')}`);
@ -144761,6 +144764,10 @@ async function downloadAndSubmitDependencyGraphs(config) {
} }
} }
async function submitDependencyGraphs(dependencyGraphFiles) { async function submitDependencyGraphs(dependencyGraphFiles) {
if (dependencyGraphFiles.length === 0) {
core.info('No dependency graph files found to submit.');
return;
}
if (isRunningInActEnvironment()) { if (isRunningInActEnvironment()) {
core.info('Dependency graph submit not supported in the ACT environment.'); core.info('Dependency graph submit not supported in the ACT environment.');
core.info(`Would submit: ${dependencyGraphFiles.join(', ')}`); core.info(`Would submit: ${dependencyGraphFiles.join(', ')}`);
@ -144802,7 +144809,6 @@ async function submitDependencyGraphFile(jsonFile) {
core.notice(`Submitted ${relativeJsonFile}: ${response.data.message}`); core.notice(`Submitted ${relativeJsonFile}: ${response.data.message}`);
} }
async function downloadDependencyGraphs() { async function downloadDependencyGraphs() {
const workspaceDirectory = (0, configuration_1.getWorkspaceDirectory)();
const findBy = github.context.payload.workflow_run const findBy = github.context.payload.workflow_run
? { ? {
token: (0, configuration_1.getGithubToken)(), token: (0, configuration_1.getGithubToken)(),
@ -144812,27 +144818,29 @@ async function downloadDependencyGraphs() {
} }
: undefined; : undefined;
const artifactClient = new artifact_1.DefaultArtifactClient(); const artifactClient = new artifact_1.DefaultArtifactClient();
const downloadPath = path.resolve(workspaceDirectory, 'dependency-graph');
const dependencyGraphArtifacts = (await artifactClient.listArtifacts({ const dependencyGraphArtifacts = (await artifactClient.listArtifacts({
latest: true, latest: true,
findBy findBy
})).artifacts.filter(candidate => candidate.name.startsWith(DEPENDENCY_GRAPH_PREFIX)); })).artifacts.filter(artifact => artifact.name.startsWith(DEPENDENCY_GRAPH_PREFIX));
for (const artifact of dependencyGraphArtifacts) { for (const artifact of dependencyGraphArtifacts) {
const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, { const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, {
path: downloadPath,
findBy findBy
}); });
core.info(`Downloading dependency-graph artifact ${artifact.name} to ${downloadedArtifact.downloadPath}`); core.info(`Downloading dependency-graph artifact ${artifact.name} to ${downloadedArtifact.downloadPath}`);
} }
return findDependencyGraphFiles(downloadPath); return findDependencyGraphFiles();
} }
async function findDependencyGraphFiles(dir) { async function findDependencyGraphFiles() {
const globber = await glob.create(`${dir}/dependency-graph-reports/*.json`); const globber = await glob.create(`${getReportDirectory()}/**/*.json`);
const allFiles = await globber.glob(); const allFiles = await globber.glob();
const unprocessedFiles = allFiles.filter(file => !isProcessed(file)); const unprocessedFiles = allFiles.filter(file => !isProcessed(file));
unprocessedFiles.forEach(markProcessed); unprocessedFiles.forEach(markProcessed);
core.info(`Found dependency graph files: ${unprocessedFiles.join(', ')}`);
return unprocessedFiles; return unprocessedFiles;
} }
function getReportDirectory() {
return process.env.DEPENDENCY_GRAPH_REPORT_DIR;
}
function isProcessed(dependencyGraphFile) { function isProcessed(dependencyGraphFile) {
const markerFile = `${dependencyGraphFile}.processed`; const markerFile = `${dependencyGraphFile}.processed`;
return fs_1.default.existsSync(markerFile); return fs_1.default.existsSync(markerFile);

File diff suppressed because one or more lines are too long

View File

@ -95773,6 +95773,9 @@ class DependencyGraphConfig {
getJobCorrelator() { getJobCorrelator() {
return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix()); return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix());
} }
getReportDirectory() {
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
}
static constructJobCorrelator(workflow, jobId, matrixJson) { static constructJobCorrelator(workflow, jobId, matrixJson) {
const matrixString = this.describeMatrix(matrixJson); const matrixString = this.describeMatrix(matrixJson);
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`; const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;

File diff suppressed because one or more lines are too long

View File

@ -144345,6 +144345,9 @@ class DependencyGraphConfig {
getJobCorrelator() { getJobCorrelator() {
return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix()); return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix());
} }
getReportDirectory() {
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
}
static constructJobCorrelator(workflow, jobId, matrixJson) { static constructJobCorrelator(workflow, jobId, matrixJson) {
const matrixString = this.describeMatrix(matrixJson); const matrixString = this.describeMatrix(matrixJson);
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`; const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;
@ -144694,7 +144697,7 @@ async function setup(config) {
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_REF', github.context.ref); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_REF', github.context.ref);
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext());
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)());
maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', path.resolve((0, configuration_1.getWorkspaceDirectory)(), 'dependency-graph-reports')); maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory());
if (option === configuration_1.DependencyGraphOption.Clear) { if (option === configuration_1.DependencyGraphOption.Clear) {
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', ''); core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', '');
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', ''); core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', '');
@ -144716,10 +144719,10 @@ async function complete(config) {
return; return;
case configuration_1.DependencyGraphOption.GenerateAndSubmit: case configuration_1.DependencyGraphOption.GenerateAndSubmit:
case configuration_1.DependencyGraphOption.Clear: case configuration_1.DependencyGraphOption.Clear:
await submitDependencyGraphs(await findGeneratedDependencyGraphFiles()); await submitDependencyGraphs(await findDependencyGraphFiles());
return; return;
case configuration_1.DependencyGraphOption.GenerateAndUpload: case configuration_1.DependencyGraphOption.GenerateAndUpload:
await uploadDependencyGraphs(await findGeneratedDependencyGraphFiles(), config); await uploadDependencyGraphs(await findDependencyGraphFiles(), config);
} }
} }
catch (e) { catch (e) {
@ -144727,11 +144730,11 @@ async function complete(config) {
} }
} }
exports.complete = complete; exports.complete = complete;
async function findGeneratedDependencyGraphFiles() {
const workspaceDirectory = (0, configuration_1.getWorkspaceDirectory)();
return await findDependencyGraphFiles(workspaceDirectory);
}
async function uploadDependencyGraphs(dependencyGraphFiles, config) { async function uploadDependencyGraphs(dependencyGraphFiles, config) {
if (dependencyGraphFiles.length === 0) {
core.info('No dependency graph files found to upload.');
return;
}
if (isRunningInActEnvironment()) { if (isRunningInActEnvironment()) {
core.info('Dependency graph upload not supported in the ACT environment.'); core.info('Dependency graph upload not supported in the ACT environment.');
core.info(`Would upload: ${dependencyGraphFiles.join(', ')}`); core.info(`Would upload: ${dependencyGraphFiles.join(', ')}`);
@ -144761,6 +144764,10 @@ async function downloadAndSubmitDependencyGraphs(config) {
} }
} }
async function submitDependencyGraphs(dependencyGraphFiles) { async function submitDependencyGraphs(dependencyGraphFiles) {
if (dependencyGraphFiles.length === 0) {
core.info('No dependency graph files found to submit.');
return;
}
if (isRunningInActEnvironment()) { if (isRunningInActEnvironment()) {
core.info('Dependency graph submit not supported in the ACT environment.'); core.info('Dependency graph submit not supported in the ACT environment.');
core.info(`Would submit: ${dependencyGraphFiles.join(', ')}`); core.info(`Would submit: ${dependencyGraphFiles.join(', ')}`);
@ -144802,7 +144809,6 @@ async function submitDependencyGraphFile(jsonFile) {
core.notice(`Submitted ${relativeJsonFile}: ${response.data.message}`); core.notice(`Submitted ${relativeJsonFile}: ${response.data.message}`);
} }
async function downloadDependencyGraphs() { async function downloadDependencyGraphs() {
const workspaceDirectory = (0, configuration_1.getWorkspaceDirectory)();
const findBy = github.context.payload.workflow_run const findBy = github.context.payload.workflow_run
? { ? {
token: (0, configuration_1.getGithubToken)(), token: (0, configuration_1.getGithubToken)(),
@ -144812,27 +144818,29 @@ async function downloadDependencyGraphs() {
} }
: undefined; : undefined;
const artifactClient = new artifact_1.DefaultArtifactClient(); const artifactClient = new artifact_1.DefaultArtifactClient();
const downloadPath = path.resolve(workspaceDirectory, 'dependency-graph');
const dependencyGraphArtifacts = (await artifactClient.listArtifacts({ const dependencyGraphArtifacts = (await artifactClient.listArtifacts({
latest: true, latest: true,
findBy findBy
})).artifacts.filter(candidate => candidate.name.startsWith(DEPENDENCY_GRAPH_PREFIX)); })).artifacts.filter(artifact => artifact.name.startsWith(DEPENDENCY_GRAPH_PREFIX));
for (const artifact of dependencyGraphArtifacts) { for (const artifact of dependencyGraphArtifacts) {
const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, { const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, {
path: downloadPath,
findBy findBy
}); });
core.info(`Downloading dependency-graph artifact ${artifact.name} to ${downloadedArtifact.downloadPath}`); core.info(`Downloading dependency-graph artifact ${artifact.name} to ${downloadedArtifact.downloadPath}`);
} }
return findDependencyGraphFiles(downloadPath); return findDependencyGraphFiles();
} }
async function findDependencyGraphFiles(dir) { async function findDependencyGraphFiles() {
const globber = await glob.create(`${dir}/dependency-graph-reports/*.json`); const globber = await glob.create(`${getReportDirectory()}/**/*.json`);
const allFiles = await globber.glob(); const allFiles = await globber.glob();
const unprocessedFiles = allFiles.filter(file => !isProcessed(file)); const unprocessedFiles = allFiles.filter(file => !isProcessed(file));
unprocessedFiles.forEach(markProcessed); unprocessedFiles.forEach(markProcessed);
core.info(`Found dependency graph files: ${unprocessedFiles.join(', ')}`);
return unprocessedFiles; return unprocessedFiles;
} }
function getReportDirectory() {
return process.env.DEPENDENCY_GRAPH_REPORT_DIR;
}
function isProcessed(dependencyGraphFile) { function isProcessed(dependencyGraphFile) {
const markerFile = `${dependencyGraphFile}.processed`; const markerFile = `${dependencyGraphFile}.processed`;
return fs_1.default.existsSync(markerFile); return fs_1.default.existsSync(markerFile);

File diff suppressed because one or more lines are too long

View File

@ -141798,6 +141798,9 @@ class DependencyGraphConfig {
getJobCorrelator() { getJobCorrelator() {
return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix()); return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix());
} }
getReportDirectory() {
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
}
static constructJobCorrelator(workflow, jobId, matrixJson) { static constructJobCorrelator(workflow, jobId, matrixJson) {
const matrixString = this.describeMatrix(matrixJson); const matrixString = this.describeMatrix(matrixJson);
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`; const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;
@ -142147,7 +142150,7 @@ async function setup(config) {
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_REF', github.context.ref); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_REF', github.context.ref);
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_SHA', getShaFromContext());
maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)()); maybeExportVariable('GITHUB_DEPENDENCY_GRAPH_WORKSPACE', (0, configuration_1.getWorkspaceDirectory)());
maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', path.resolve((0, configuration_1.getWorkspaceDirectory)(), 'dependency-graph-reports')); maybeExportVariable('DEPENDENCY_GRAPH_REPORT_DIR', config.getReportDirectory());
if (option === configuration_1.DependencyGraphOption.Clear) { if (option === configuration_1.DependencyGraphOption.Clear) {
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', ''); core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_PROJECTS', '');
core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', ''); core.exportVariable('DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS', '');
@ -142169,10 +142172,10 @@ async function complete(config) {
return; return;
case configuration_1.DependencyGraphOption.GenerateAndSubmit: case configuration_1.DependencyGraphOption.GenerateAndSubmit:
case configuration_1.DependencyGraphOption.Clear: case configuration_1.DependencyGraphOption.Clear:
await submitDependencyGraphs(await findGeneratedDependencyGraphFiles()); await submitDependencyGraphs(await findDependencyGraphFiles());
return; return;
case configuration_1.DependencyGraphOption.GenerateAndUpload: case configuration_1.DependencyGraphOption.GenerateAndUpload:
await uploadDependencyGraphs(await findGeneratedDependencyGraphFiles(), config); await uploadDependencyGraphs(await findDependencyGraphFiles(), config);
} }
} }
catch (e) { catch (e) {
@ -142180,11 +142183,11 @@ async function complete(config) {
} }
} }
exports.complete = complete; exports.complete = complete;
async function findGeneratedDependencyGraphFiles() {
const workspaceDirectory = (0, configuration_1.getWorkspaceDirectory)();
return await findDependencyGraphFiles(workspaceDirectory);
}
async function uploadDependencyGraphs(dependencyGraphFiles, config) { async function uploadDependencyGraphs(dependencyGraphFiles, config) {
if (dependencyGraphFiles.length === 0) {
core.info('No dependency graph files found to upload.');
return;
}
if (isRunningInActEnvironment()) { if (isRunningInActEnvironment()) {
core.info('Dependency graph upload not supported in the ACT environment.'); core.info('Dependency graph upload not supported in the ACT environment.');
core.info(`Would upload: ${dependencyGraphFiles.join(', ')}`); core.info(`Would upload: ${dependencyGraphFiles.join(', ')}`);
@ -142214,6 +142217,10 @@ async function downloadAndSubmitDependencyGraphs(config) {
} }
} }
async function submitDependencyGraphs(dependencyGraphFiles) { async function submitDependencyGraphs(dependencyGraphFiles) {
if (dependencyGraphFiles.length === 0) {
core.info('No dependency graph files found to submit.');
return;
}
if (isRunningInActEnvironment()) { if (isRunningInActEnvironment()) {
core.info('Dependency graph submit not supported in the ACT environment.'); core.info('Dependency graph submit not supported in the ACT environment.');
core.info(`Would submit: ${dependencyGraphFiles.join(', ')}`); core.info(`Would submit: ${dependencyGraphFiles.join(', ')}`);
@ -142255,7 +142262,6 @@ async function submitDependencyGraphFile(jsonFile) {
core.notice(`Submitted ${relativeJsonFile}: ${response.data.message}`); core.notice(`Submitted ${relativeJsonFile}: ${response.data.message}`);
} }
async function downloadDependencyGraphs() { async function downloadDependencyGraphs() {
const workspaceDirectory = (0, configuration_1.getWorkspaceDirectory)();
const findBy = github.context.payload.workflow_run const findBy = github.context.payload.workflow_run
? { ? {
token: (0, configuration_1.getGithubToken)(), token: (0, configuration_1.getGithubToken)(),
@ -142265,27 +142271,29 @@ async function downloadDependencyGraphs() {
} }
: undefined; : undefined;
const artifactClient = new artifact_1.DefaultArtifactClient(); const artifactClient = new artifact_1.DefaultArtifactClient();
const downloadPath = path.resolve(workspaceDirectory, 'dependency-graph');
const dependencyGraphArtifacts = (await artifactClient.listArtifacts({ const dependencyGraphArtifacts = (await artifactClient.listArtifacts({
latest: true, latest: true,
findBy findBy
})).artifacts.filter(candidate => candidate.name.startsWith(DEPENDENCY_GRAPH_PREFIX)); })).artifacts.filter(artifact => artifact.name.startsWith(DEPENDENCY_GRAPH_PREFIX));
for (const artifact of dependencyGraphArtifacts) { for (const artifact of dependencyGraphArtifacts) {
const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, { const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, {
path: downloadPath,
findBy findBy
}); });
core.info(`Downloading dependency-graph artifact ${artifact.name} to ${downloadedArtifact.downloadPath}`); core.info(`Downloading dependency-graph artifact ${artifact.name} to ${downloadedArtifact.downloadPath}`);
} }
return findDependencyGraphFiles(downloadPath); return findDependencyGraphFiles();
} }
async function findDependencyGraphFiles(dir) { async function findDependencyGraphFiles() {
const globber = await glob.create(`${dir}/dependency-graph-reports/*.json`); const globber = await glob.create(`${getReportDirectory()}/**/*.json`);
const allFiles = await globber.glob(); const allFiles = await globber.glob();
const unprocessedFiles = allFiles.filter(file => !isProcessed(file)); const unprocessedFiles = allFiles.filter(file => !isProcessed(file));
unprocessedFiles.forEach(markProcessed); unprocessedFiles.forEach(markProcessed);
core.info(`Found dependency graph files: ${unprocessedFiles.join(', ')}`);
return unprocessedFiles; return unprocessedFiles;
} }
function getReportDirectory() {
return process.env.DEPENDENCY_GRAPH_REPORT_DIR;
}
function isProcessed(dependencyGraphFile) { function isProcessed(dependencyGraphFile) {
const markerFile = `${dependencyGraphFile}.processed`; const markerFile = `${dependencyGraphFile}.processed`;
return fs_1.default.existsSync(markerFile); return fs_1.default.existsSync(markerFile);

File diff suppressed because one or more lines are too long

View File

@ -89925,6 +89925,9 @@ class DependencyGraphConfig {
getJobCorrelator() { getJobCorrelator() {
return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix()); return DependencyGraphConfig.constructJobCorrelator(github.context.workflow, github.context.job, getJobMatrix());
} }
getReportDirectory() {
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
}
static constructJobCorrelator(workflow, jobId, matrixJson) { static constructJobCorrelator(workflow, jobId, matrixJson) {
const matrixString = this.describeMatrix(matrixJson); const matrixString = this.describeMatrix(matrixJson);
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`; const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;

File diff suppressed because one or more lines are too long