[bot] Update dist directory

This commit is contained in:
bigdaz
2024-07-18 17:34:32 +00:00
committed by github-actions[bot]
parent 723ca4de01
commit b7e399239c
10 changed files with 822 additions and 424 deletions

View File

@@ -142896,6 +142896,81 @@ utils.walkdir = function(dirpath, base, callback) {
};
/***/ }),
/***/ 93287:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = void 0;
const core = __importStar(__nccwpck_require__(42186));
const setupGradle = __importStar(__nccwpck_require__(18652));
const gradle = __importStar(__nccwpck_require__(94475));
const dependencyGraph = __importStar(__nccwpck_require__(80));
const string_argv_1 = __nccwpck_require__(19663);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
const errors_1 = __nccwpck_require__(36976);
async function run() {
try {
(0, configuration_1.setActionId)('gradle/actions/dependency-submission');
await setupGradle.setup(new configuration_1.CacheConfig(), new configuration_1.BuildScanConfig());
const originallyEnabled = process.env['GITHUB_DEPENDENCY_GRAPH_ENABLED'];
const config = new configuration_1.DependencyGraphConfig();
await dependencyGraph.setup(config);
if (config.getDependencyGraphOption() === configuration_1.DependencyGraphOption.DownloadAndSubmit) {
return;
}
const executionConfig = new configuration_1.GradleExecutionConfig();
const taskList = executionConfig.getDependencyResolutionTask();
const additionalArgs = executionConfig.getAdditionalArguments();
const executionArgs = `
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
${taskList}
${additionalArgs}
`;
const args = (0, string_argv_1.parseArgsStringToArgv)(executionArgs);
await gradle.provisionAndMaybeExecute(executionConfig.getGradleVersion(), executionConfig.getBuildRootDirectory(), args);
await dependencyGraph.complete(config);
core.exportVariable('GITHUB_DEPENDENCY_GRAPH_ENABLED', originallyEnabled);
(0, deprecation_collector_1.saveDeprecationState)();
}
catch (error) {
(0, errors_1.handleMainActionError)(error);
}
process.exit();
}
exports.run = run;
run();
/***/ }),
/***/ 82107:
@@ -142927,14 +143002,28 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.markBuildResultsProcessed = exports.loadBuildResults = void 0;
exports.markBuildResultsProcessed = exports.loadBuildResults = exports.BuildResults = void 0;
const fs = __importStar(__nccwpck_require__(57147));
const path = __importStar(__nccwpck_require__(71017));
class BuildResults {
constructor(results) {
this.results = results;
}
anyFailed() {
return this.results.some(result => result.buildFailed);
}
uniqueGradleHomes() {
const allHomes = this.results.map(buildResult => buildResult.gradleHomeDir);
return Array.from(new Set(allHomes));
}
}
exports.BuildResults = BuildResults;
function loadBuildResults() {
return getUnprocessedResults().map(filePath => {
const results = getUnprocessedResults().map(filePath => {
const content = fs.readFileSync(filePath, 'utf8');
return JSON.parse(content);
});
return new BuildResults(results);
}
exports.loadBuildResults = loadBuildResults;
function markBuildResultsProcessed() {
@@ -143173,15 +143262,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = void 0;
exports.generateCachingReport = exports.CacheEntryListener = exports.CacheListener = exports.CLEANUP_DISABLED_DUE_TO_FAILURE = exports.DEFAULT_CLEANUP_ENABLED_REASON = exports.DEFAULT_CLEANUP_DISABLED_REASON = exports.CLEANUP_DISABLED_READONLY = exports.EXISTING_GRADLE_HOME = exports.DEFAULT_WRITEONLY_REASON = exports.DEFAULT_DISABLED_REASON = exports.DEFAULT_READONLY_REASON = exports.DEFAULT_CACHE_ENABLED_REASON = void 0;
const cache = __importStar(__nccwpck_require__(27799));
exports.DEFAULT_CACHE_ENABLED_REASON = `[Cache was enabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.`;
exports.DEFAULT_READONLY_REASON = `[Cache was read-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.`;
exports.DEFAULT_DISABLED_REASON = `[Cache was disabled](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#disabling-caching) via action confiugration. Gradle User Home was not restored from or saved to the cache.`;
exports.DEFAULT_WRITEONLY_REASON = `[Cache was set to write-only](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.`;
exports.EXISTING_GRADLE_HOME = `[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.`;
exports.CLEANUP_DISABLED_READONLY = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) is always disabled when cache is read-only or disabled.`;
exports.DEFAULT_CLEANUP_DISABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was not enabled. It must be explicitly enabled.`;
exports.DEFAULT_CLEANUP_ENABLED_REASON = `[Cache cleanup](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup) was enabled.`;
exports.CLEANUP_DISABLED_DUE_TO_FAILURE = '[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/v3/docs/setup-gradle.md#enabling-cache-cleanup). Use `cache-cleanup: always` to override this behavior.';
class CacheListener {
constructor() {
this.cacheEntries = [];
this.cacheReadOnly = false;
this.cacheWriteOnly = false;
this.cacheDisabled = false;
this.cacheDisabledReason = 'disabled';
this.cacheStatusReason = exports.DEFAULT_CACHE_ENABLED_REASON;
this.cacheCleanupMessage = exports.DEFAULT_CLEANUP_DISABLED_REASON;
}
get fullyRestored() {
return this.cacheEntries.every(x => !x.wasRequestedButNotRestored());
@@ -143190,13 +143289,33 @@ class CacheListener {
if (!cache.isFeatureAvailable())
return 'not available';
if (this.cacheDisabled)
return this.cacheDisabledReason;
return 'disabled';
if (this.cacheWriteOnly)
return 'write-only';
if (this.cacheReadOnly)
return 'read-only';
return 'enabled';
}
setReadOnly(reason = exports.DEFAULT_READONLY_REASON) {
this.cacheReadOnly = true;
this.cacheStatusReason = reason;
this.cacheCleanupMessage = exports.CLEANUP_DISABLED_READONLY;
}
setDisabled(reason = exports.DEFAULT_DISABLED_REASON) {
this.cacheDisabled = true;
this.cacheStatusReason = reason;
this.cacheCleanupMessage = exports.CLEANUP_DISABLED_READONLY;
}
setWriteOnly(reason = exports.DEFAULT_WRITEONLY_REASON) {
this.cacheWriteOnly = true;
this.cacheStatusReason = reason;
}
setCacheCleanupEnabled() {
this.cacheCleanupMessage = exports.DEFAULT_CLEANUP_ENABLED_REASON;
}
setCacheCleanupDisabled(reason = exports.DEFAULT_CLEANUP_DISABLED_REASON) {
this.cacheCleanupMessage = reason;
}
entry(name) {
for (const entry of this.cacheEntries) {
if (entry.entryName === name) {
@@ -143266,6 +143385,10 @@ function generateCachingReport(listener) {
return `
<details>
<summary><h4>Caching for Gradle actions was ${listener.cacheStatus} - expand for details</h4></summary>
- ${listener.cacheStatusReason}
- ${listener.cacheCleanupMessage}
${renderEntryTable(entries)}
<h5>Cache Entry Details</h5>
@@ -143546,6 +143669,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.save = exports.restore = void 0;
const core = __importStar(__nccwpck_require__(42186));
const cache_reporting_1 = __nccwpck_require__(7391);
const gradle_user_home_cache_1 = __nccwpck_require__(27655);
const cache_cleaner_1 = __nccwpck_require__(50651);
const CACHE_RESTORED_VAR = 'GRADLE_BUILD_ACTION_CACHE_RESTORED';
@@ -143559,15 +143683,14 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
if (cacheConfig.isCacheDisabled()) {
core.info('Cache is disabled: will not restore state from previous builds.');
gradleStateCache.init();
cacheListener.cacheDisabled = true;
cacheListener.setDisabled();
return;
}
if (gradleStateCache.cacheOutputExists()) {
if (!cacheConfig.isCacheOverwriteExisting()) {
core.info('Gradle User Home already exists: will not restore from cache.');
gradleStateCache.init();
cacheListener.cacheDisabled = true;
cacheListener.cacheDisabledReason = 'disabled due to pre-existing Gradle User Home';
cacheListener.setDisabled(cache_reporting_1.EXISTING_GRADLE_HOME);
return;
}
core.info('Gradle User Home already exists: will overwrite with cached contents.');
@@ -143576,7 +143699,7 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
core.saveState(CACHE_RESTORED_VAR, true);
if (cacheConfig.isCacheWriteOnly()) {
core.info('Cache is write-only: will not restore from cache.');
cacheListener.cacheWriteOnly = true;
cacheListener.setWriteOnly();
return;
}
await core.group('Restore Gradle state from cache', async () => {
@@ -143589,7 +143712,7 @@ async function restore(userHome, gradleUserHome, cacheListener, cacheConfig) {
}
}
exports.restore = restore;
async function save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig) {
async function save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig) {
if (cacheConfig.isCacheDisabled()) {
core.info('Cache is disabled: will not save state for later builds.');
return;
@@ -143600,18 +143723,18 @@ async function save(userHome, gradleUserHome, cacheListener, daemonController, c
}
if (cacheConfig.isCacheReadOnly()) {
core.info('Cache is read-only: will not save state for use in subsequent builds.');
cacheListener.cacheReadOnly = true;
cacheListener.setReadOnly();
return;
}
await daemonController.stopAllDaemons();
if (cacheConfig.isCacheCleanupEnabled()) {
core.info('Forcing cache cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
try {
await cacheCleaner.forceCleanup();
if (cacheConfig.shouldPerformCacheCleanup(buildResults.anyFailed())) {
cacheListener.setCacheCleanupEnabled();
await performCacheCleanup(gradleUserHome);
}
catch (e) {
core.warning(`Cache cleanup failed. Will continue. ${String(e)}`);
else {
core.info('Not performing cache-cleanup due to build failure');
cacheListener.setCacheCleanupDisabled(cache_reporting_1.CLEANUP_DISABLED_DUE_TO_FAILURE);
}
}
await core.group('Caching Gradle state', async () => {
@@ -143619,6 +143742,16 @@ async function save(userHome, gradleUserHome, cacheListener, daemonController, c
});
}
exports.save = save;
async function performCacheCleanup(gradleUserHome) {
core.info('Forcing cache cleanup.');
const cacheCleaner = new cache_cleaner_1.CacheCleaner(gradleUserHome, process.env['RUNNER_TEMP']);
try {
await cacheCleaner.forceCleanup();
}
catch (e) {
core.warning(`Cache cleanup failed. Will continue. ${String(e)}`);
}
}
/***/ }),
@@ -143913,7 +144046,7 @@ class ConfigurationCacheEntryExtractor extends AbstractEntryExtractor {
});
}
getConfigCacheDirectoriesWithAssociatedBuildResults() {
return (0, build_results_1.loadBuildResults)().reduce((acc, buildResult) => {
return (0, build_results_1.loadBuildResults)().results.reduce((acc, buildResult) => {
const configCachePath = path_1.default.resolve(buildResult.rootProjectDir, '.gradle/configuration-cache');
if (!fs_1.default.existsSync(configCachePath)) {
return acc;
@@ -144263,7 +144396,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.parseNumericInput = exports.setActionId = exports.getActionId = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.doValidateWrappers = exports.GradleExecutionConfig = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
exports.parseNumericInput = exports.setActionId = exports.getActionId = exports.getWorkspaceDirectory = exports.getGithubToken = exports.getJobMatrix = exports.doValidateWrappers = exports.GradleExecutionConfig = exports.BuildScanConfig = exports.JobSummaryOption = exports.SummaryConfig = exports.CacheCleanupOption = exports.CacheConfig = exports.DependencyGraphOption = exports.DependencyGraphConfig = void 0;
const core = __importStar(__nccwpck_require__(42186));
const github = __importStar(__nccwpck_require__(95438));
const cache = __importStar(__nccwpck_require__(27799));
@@ -144357,7 +144490,35 @@ class CacheConfig {
return getBooleanInput('gradle-home-cache-strict-match');
}
isCacheCleanupEnabled() {
return getBooleanInput('gradle-home-cache-cleanup') && !this.isCacheReadOnly();
if (this.isCacheReadOnly()) {
return false;
}
const cleanupOption = this.getCacheCleanupOption();
return cleanupOption === CacheCleanupOption.Always || cleanupOption === CacheCleanupOption.OnSuccess;
}
shouldPerformCacheCleanup(hasFailure) {
const cleanupOption = this.getCacheCleanupOption();
if (cleanupOption === CacheCleanupOption.Always) {
return true;
}
if (cleanupOption === CacheCleanupOption.OnSuccess) {
return !hasFailure;
}
return false;
}
getCacheCleanupOption() {
const val = core.getInput('cache-cleanup');
switch (val.toLowerCase().trim()) {
case 'always':
return CacheCleanupOption.Always;
case 'on-success':
return CacheCleanupOption.OnSuccess;
case 'never':
return getBooleanInput('gradle-home-cache-cleanup')
? CacheCleanupOption.Always
: CacheCleanupOption.Never;
}
throw TypeError(`The value '${val}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`);
}
getCacheEncryptionKey() {
return core.getInput('cache-encryption-key');
@@ -144370,6 +144531,12 @@ class CacheConfig {
}
}
exports.CacheConfig = CacheConfig;
var CacheCleanupOption;
(function (CacheCleanupOption) {
CacheCleanupOption["Never"] = "never";
CacheCleanupOption["OnSuccess"] = "on-success";
CacheCleanupOption["Always"] = "always";
})(CacheCleanupOption || (exports.CacheCleanupOption = CacheCleanupOption = {}));
class SummaryConfig {
shouldGenerateJobSummary(hasFailure) {
if (!process.env[summary_1.SUMMARY_ENV_VAR]) {
@@ -144617,8 +144784,7 @@ const fs = __importStar(__nccwpck_require__(57147));
const path = __importStar(__nccwpck_require__(71017));
class DaemonController {
constructor(buildResults) {
const allHomes = buildResults.map(buildResult => buildResult.gradleHomeDir);
this.gradleHomes = Array.from(new Set(allHomes));
this.gradleHomes = buildResults.uniqueGradleHomes();
}
async stopAllDaemons() {
core.info('Stopping all Gradle daemons before saving Gradle User Home state');
@@ -144910,81 +145076,6 @@ function isRunningInActEnvironment() {
}
/***/ }),
/***/ 15575:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = void 0;
const core = __importStar(__nccwpck_require__(42186));
const setupGradle = __importStar(__nccwpck_require__(18652));
const gradle = __importStar(__nccwpck_require__(94475));
const dependencyGraph = __importStar(__nccwpck_require__(80));
const string_argv_1 = __nccwpck_require__(19663);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
const errors_1 = __nccwpck_require__(36976);
async function run() {
try {
(0, configuration_1.setActionId)('gradle/actions/dependency-submission');
await setupGradle.setup(new configuration_1.CacheConfig(), new configuration_1.BuildScanConfig());
const originallyEnabled = process.env['GITHUB_DEPENDENCY_GRAPH_ENABLED'];
const config = new configuration_1.DependencyGraphConfig();
await dependencyGraph.setup(config);
if (config.getDependencyGraphOption() === configuration_1.DependencyGraphOption.DownloadAndSubmit) {
return;
}
const executionConfig = new configuration_1.GradleExecutionConfig();
const taskList = executionConfig.getDependencyResolutionTask();
const additionalArgs = executionConfig.getAdditionalArguments();
const executionArgs = `
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
${taskList}
${additionalArgs}
`;
const args = (0, string_argv_1.parseArgsStringToArgv)(executionArgs);
await gradle.provisionAndMaybeExecute(executionConfig.getGradleVersion(), executionConfig.getBuildRootDirectory(), args);
await dependencyGraph.complete(config);
core.exportVariable('GITHUB_DEPENDENCY_GRAPH_ENABLED', originallyEnabled);
(0, deprecation_collector_1.saveDeprecationState)();
}
catch (error) {
(0, errors_1.handleMainActionError)(error);
}
process.exit();
}
exports.run = run;
run();
/***/ }),
/***/ 22572:
@@ -145739,8 +145830,8 @@ const request_error_1 = __nccwpck_require__(10537);
const configuration_1 = __nccwpck_require__(15778);
const deprecation_collector_1 = __nccwpck_require__(22572);
async function generateJobSummary(buildResults, cachingReport, config) {
const summaryTable = renderSummaryTable(buildResults);
const hasFailure = buildResults.some(result => result.buildFailed);
const summaryTable = renderSummaryTable(buildResults.results);
const hasFailure = buildResults.anyFailed();
if (config.shouldGenerateJobSummary(hasFailure)) {
core.info('Generating Job Summary');
core.summary.addRaw(summaryTable);
@@ -145972,7 +146063,7 @@ async function complete(cacheConfig, summaryConfig) {
const gradleUserHome = core.getState(GRADLE_USER_HOME);
const cacheListener = cache_reporting_1.CacheListener.rehydrate(core.getState(CACHE_LISTENER));
const daemonController = new daemon_controller_1.DaemonController(buildResults);
await caches.save(userHome, gradleUserHome, cacheListener, daemonController, cacheConfig);
await caches.save(userHome, gradleUserHome, cacheListener, daemonController, buildResults, cacheConfig);
const cachingReport = (0, cache_reporting_1.generateCachingReport)(cacheListener);
await jobSummary.generateJobSummary(buildResults, cachingReport, summaryConfig);
(0, build_results_1.markBuildResultsProcessed)();
@@ -146729,7 +146820,7 @@ module.exports = JSON.parse('[{"version":"8.9","checksum":"498495120a03b9a6ab5d1
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module is referenced by other modules so it can't be inlined
/******/ var __webpack_exports__ = __nccwpck_require__(15575);
/******/ var __webpack_exports__ = __nccwpck_require__(93287);
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()