Skip to content

Commit

Permalink
Log osAgnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Apr 8, 2024
1 parent 33f34bd commit 1d09d35
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dist/dependency-submission/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140241,6 +140241,7 @@ exports.hashStrings = hashStrings;
function restoreCache(cachePath_1, cacheKey_1, cacheRestoreKeys_1, listener_1) {
return __awaiter(this, arguments, void 0, function* (cachePath, cacheKey, cacheRestoreKeys, listener, osAgnostic = false) {
listener.markRequested(cacheKey, cacheRestoreKeys);
core.info(`Restoring cache entry with key: ${cacheKey} - ${osAgnostic}`);
try {
const cacheRestoreOptions = process.env[SEGMENT_DOWNLOAD_TIMEOUT_VAR]
? {}
Expand All @@ -140261,6 +140262,7 @@ function restoreCache(cachePath_1, cacheKey_1, cacheRestoreKeys_1, listener_1) {
exports.restoreCache = restoreCache;
function saveCache(cachePath_1, cacheKey_1, listener_1) {
return __awaiter(this, arguments, void 0, function* (cachePath, cacheKey, listener, osAgnostic = false) {
core.info(`Saving cache entry with key: ${cacheKey} - ${osAgnostic}`);
try {
const savedEntry = yield cache.saveCache(cachePath, cacheKey, {}, osAgnostic);
listener.markSaved(savedEntry.key, savedEntry.size);
Expand Down
2 changes: 1 addition & 1 deletion dist/dependency-submission/main/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/dependency-submission/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91669,6 +91669,7 @@ exports.hashStrings = hashStrings;
function restoreCache(cachePath_1, cacheKey_1, cacheRestoreKeys_1, listener_1) {
return __awaiter(this, arguments, void 0, function* (cachePath, cacheKey, cacheRestoreKeys, listener, osAgnostic = false) {
listener.markRequested(cacheKey, cacheRestoreKeys);
core.info(`Restoring cache entry with key: ${cacheKey} - ${osAgnostic}`);
try {
const cacheRestoreOptions = process.env[SEGMENT_DOWNLOAD_TIMEOUT_VAR]
? {}
Expand All @@ -91689,6 +91690,7 @@ function restoreCache(cachePath_1, cacheKey_1, cacheRestoreKeys_1, listener_1) {
exports.restoreCache = restoreCache;
function saveCache(cachePath_1, cacheKey_1, listener_1) {
return __awaiter(this, arguments, void 0, function* (cachePath, cacheKey, listener, osAgnostic = false) {
core.info(`Saving cache entry with key: ${cacheKey} - ${osAgnostic}`);
try {
const savedEntry = yield cache.saveCache(cachePath, cacheKey, {}, osAgnostic);
listener.markSaved(savedEntry.key, savedEntry.size);
Expand Down
2 changes: 1 addition & 1 deletion dist/dependency-submission/post/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/setup-gradle/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140241,6 +140241,7 @@ exports.hashStrings = hashStrings;
function restoreCache(cachePath_1, cacheKey_1, cacheRestoreKeys_1, listener_1) {
return __awaiter(this, arguments, void 0, function* (cachePath, cacheKey, cacheRestoreKeys, listener, osAgnostic = false) {
listener.markRequested(cacheKey, cacheRestoreKeys);
core.info(`Restoring cache entry with key: ${cacheKey} - ${osAgnostic}`);
try {
const cacheRestoreOptions = process.env[SEGMENT_DOWNLOAD_TIMEOUT_VAR]
? {}
Expand All @@ -140261,6 +140262,7 @@ function restoreCache(cachePath_1, cacheKey_1, cacheRestoreKeys_1, listener_1) {
exports.restoreCache = restoreCache;
function saveCache(cachePath_1, cacheKey_1, listener_1) {
return __awaiter(this, arguments, void 0, function* (cachePath, cacheKey, listener, osAgnostic = false) {
core.info(`Saving cache entry with key: ${cacheKey} - ${osAgnostic}`);
try {
const savedEntry = yield cache.saveCache(cachePath, cacheKey, {}, osAgnostic);
listener.markSaved(savedEntry.key, savedEntry.size);
Expand Down
2 changes: 1 addition & 1 deletion dist/setup-gradle/main/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/setup-gradle/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137694,6 +137694,7 @@ exports.hashStrings = hashStrings;
function restoreCache(cachePath_1, cacheKey_1, cacheRestoreKeys_1, listener_1) {
return __awaiter(this, arguments, void 0, function* (cachePath, cacheKey, cacheRestoreKeys, listener, osAgnostic = false) {
listener.markRequested(cacheKey, cacheRestoreKeys);
core.info(`Restoring cache entry with key: ${cacheKey} - ${osAgnostic}`);
try {
const cacheRestoreOptions = process.env[SEGMENT_DOWNLOAD_TIMEOUT_VAR]
? {}
Expand All @@ -137714,6 +137715,7 @@ function restoreCache(cachePath_1, cacheKey_1, cacheRestoreKeys_1, listener_1) {
exports.restoreCache = restoreCache;
function saveCache(cachePath_1, cacheKey_1, listener_1) {
return __awaiter(this, arguments, void 0, function* (cachePath, cacheKey, listener, osAgnostic = false) {
core.info(`Saving cache entry with key: ${cacheKey} - ${osAgnostic}`);
try {
const savedEntry = yield cache.saveCache(cachePath, cacheKey, {}, osAgnostic);
listener.markSaved(savedEntry.key, savedEntry.size);
Expand Down
2 changes: 1 addition & 1 deletion dist/setup-gradle/post/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions sources/src/caching/cache-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export async function restoreCache(
osAgnostic = false
): Promise<cache.CacheEntry | undefined> {
listener.markRequested(cacheKey, cacheRestoreKeys)
core.info(`Restoring cache entry with key: ${cacheKey} - ${osAgnostic}`)
try {
// Only override the read timeout if the SEGMENT_DOWNLOAD_TIMEOUT_MINS env var has NOT been set
const cacheRestoreOptions = process.env[SEGMENT_DOWNLOAD_TIMEOUT_VAR]
Expand Down Expand Up @@ -67,6 +68,7 @@ export async function saveCache(
listener: CacheEntryListener,
osAgnostic = false
): Promise<void> {
core.info(`Saving cache entry with key: ${cacheKey} - ${osAgnostic}`)
try {
const savedEntry = await cache.saveCache(cachePath, cacheKey, {}, osAgnostic)
listener.markSaved(savedEntry.key, savedEntry.size)
Expand Down

0 comments on commit 1d09d35

Please sign in to comment.