diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 8cc783d01..07a899038 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -95506,8 +95506,6 @@ class CacheDistributor { else { core.info(`${this.packageManager} cache is not found`); } - core.debug(`matchedKey: ${matchedKey}`); - core.debug(`primaryKey: ${primaryKey}`); core.setOutput('cache-hit', matchedKey === primaryKey); } } diff --git a/dist/setup/index.js b/dist/setup/index.js index 5394825ce..ed0a80df6 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -104749,8 +104749,6 @@ class CacheDistributor { else { core.info(`${this.packageManager} cache is not found`); } - core.debug(`matchedKey: ${matchedKey}`); - core.debug(`primaryKey: ${primaryKey}`); core.setOutput('cache-hit', matchedKey === primaryKey); } } @@ -106306,7 +106304,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); -const why_is_node_running_1 = __importDefault(__nccwpck_require__(70475)); const core = __importStar(__nccwpck_require__(37484)); const finder = __importStar(__nccwpck_require__(66843)); const finderPyPy = __importStar(__nccwpck_require__(82625)); @@ -106374,9 +106371,7 @@ function run() { if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) { process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; } - // core.debug( - // `Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}` - // ); + core.debug(`Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`); try { const versions = resolveVersionInput(); const checkLatest = core.getBooleanInput('check-latest'); @@ -106411,25 +106406,18 @@ function run() { const cache = core.getInput('cache'); if (cache && (0, utils_1.isCacheFeatureAvailable)()) { yield cacheDependencies(cache, pythonVersion); - core.debug('Completed cache dependencies'); } } else { core.warning('The `python-version` input is not set. The version of Python currently in `PATH` will be used.'); } - core.debug('Before matchers path'); const matchersPath = path.join(__dirname, '../..', '.github'); - core.debug('After matchers path'); core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`); } catch (err) { core.setFailed(err.message); } - core.debug('Before process exit'); - setTimeout(() => { - (0, why_is_node_running_1.default)(); - }, 3000); - // process.exit(0); + process.exit(0); }); } run(); @@ -136751,153 +136739,6 @@ module.exports = axios; //# sourceMappingURL=axios.cjs.map -/***/ }), - -/***/ 70475: -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__nccwpck_require__.r(__webpack_exports__); - -// EXPORTS -__nccwpck_require__.d(__webpack_exports__, { - "default": () => (/* binding */ whyIsNodeRunning) -}); - -;// CONCATENATED MODULE: external "node:async_hooks" -const external_node_async_hooks_namespaceObject = require("node:async_hooks"); -;// CONCATENATED MODULE: external "node:fs" -const external_node_fs_namespaceObject = require("node:fs"); -;// CONCATENATED MODULE: external "node:path" -const external_node_path_namespaceObject = require("node:path"); -;// CONCATENATED MODULE: external "node:url" -const external_node_url_namespaceObject = require("node:url"); -;// CONCATENATED MODULE: ./node_modules/why-is-node-running/index.js - - - - - -const IGNORED_TYPES = [ - 'TIMERWRAP', - 'PROMISE', - 'PerformanceObserver', - 'RANDOMBYTESREQUEST' -] - -const asyncResources = new Map() -const hook = (0,external_node_async_hooks_namespaceObject.createHook)({ - init (asyncId, type, triggerAsyncId, resource) { - if (IGNORED_TYPES.includes(type)) { - return - } - - const stacks = captureStackTraces().slice(1) - - asyncResources.set(asyncId, { - type, - resourceRef: new WeakRef(resource), - stacks - }) - }, - destroy (asyncId) { - asyncResources.delete(asyncId) - } -}) - -hook.enable() - -function whyIsNodeRunning (logger = console) { - hook.disable() - - const activeAsyncResources = Array.from(asyncResources.values()) - .filter(({ resourceRef }) => { - const resource = resourceRef.deref() - - if (resource === undefined) { - return false - } - - return resource.hasRef?.() ?? true - }) - - logger.error(`There are ${activeAsyncResources.length} handle(s) keeping the process running.`) - - for (const asyncResource of activeAsyncResources) { - printStacks(asyncResource, logger) - } -} - -function printStacks (asyncResource, logger) { - const stacks = asyncResource.stacks.filter((stack) => { - const fileName = stack.fileName - return fileName !== null && !fileName.startsWith('node:') - }) - - logger.error('') - logger.error(`# ${asyncResource.type}`) - - if (!stacks[0]) { - logger.error('(unknown stack trace)') - return - } - - const maxLength = stacks.reduce((length, stack) => Math.max(length, formatLocation(stack).length), 0) - - for (const stack of stacks) { - const location = formatLocation(stack) - const padding = ' '.repeat(maxLength - location.length) - - try { - const lines = (0,external_node_fs_namespaceObject.readFileSync)(normalizeFilePath(stack.fileName), 'utf-8').split(/\n|\r\n/) - const line = lines[stack.lineNumber - 1].trim() - - logger.error(`${location}${padding} - ${line}`) - } catch (e) { - logger.error(`${location}${padding}`) - } - } -} - -function formatLocation (stack) { - const filePath = formatFilePath(stack.fileName) - return `${filePath}:${stack.lineNumber}` -} - -function formatFilePath (filePath) { - const absolutePath = normalizeFilePath(filePath) - const relativePath = (0,external_node_path_namespaceObject.relative)(process.cwd(), absolutePath) - - return relativePath.startsWith('..') ? absolutePath : relativePath -} - -function normalizeFilePath (filePath) { - return filePath.startsWith('file://') ? (0,external_node_url_namespaceObject.fileURLToPath)(filePath) : filePath -} - -function prepareStackTrace(error, stackTraces) { - return stackTraces.map(stack => ({ - lineNumber: stack.getLineNumber(), - fileName: stack.getFileName() - })) -} - -// See: https://v8.dev/docs/stack-trace-api -function captureStackTraces () { - const target = {} - const original = Error.prepareStackTrace - - Error.prepareStackTrace = prepareStackTrace - Error.captureStackTrace(target, captureStackTraces) - - const capturedTraces = target.stack - Error.prepareStackTrace = original - - return capturedTraces -} - - /***/ }), /***/ 72721: @@ -136973,34 +136814,6 @@ module.exports = /*#__PURE__*/JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45 /******/ } /******/ /************************************************************************/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; diff --git a/src/cache-distributions/cache-distributor.ts b/src/cache-distributions/cache-distributor.ts index 497620d86..211946fbb 100644 --- a/src/cache-distributions/cache-distributor.ts +++ b/src/cache-distributions/cache-distributor.ts @@ -64,8 +64,6 @@ abstract class CacheDistributor { } else { core.info(`${this.packageManager} cache is not found`); } - core.debug(`matchedKey: ${matchedKey}`); - core.debug(`primaryKey: ${primaryKey}`); core.setOutput('cache-hit', matchedKey === primaryKey); } } diff --git a/src/setup-python.ts b/src/setup-python.ts index 8074fc2da..d6b79f1c1 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -86,9 +86,9 @@ async function run() { process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; } - // core.debug( - // `Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}` - // ); + core.debug( + `Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}` + ); try { const versions = resolveVersionInput(); const checkLatest = core.getBooleanInput('check-latest'); @@ -145,26 +145,18 @@ async function run() { const cache = core.getInput('cache'); if (cache && isCacheFeatureAvailable()) { await cacheDependencies(cache, pythonVersion); - core.debug('Completed cache dependencies'); } } else { core.warning( 'The `python-version` input is not set. The version of Python currently in `PATH` will be used.' ); } - core.debug('Before matchers path'); const matchersPath = path.join(__dirname, '../..', '.github'); - core.debug('After matchers path'); core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`); } catch (err) { core.setFailed((err as Error).message); } - - core.debug('Before process exit'); - setTimeout(() => { - why(); - }, 3000); - // process.exit(0); + process.exit(0); } run();