Unverified Commit f25f0d46 authored by Daz DeBoer's avatar Daz DeBoer Committed by GitHub
Browse files

Dependency updates (#480)

parents df34468a 69215f1c
Loading
Loading
Loading
Loading
+6 −5
Changes for .github/workflows/ci-combine-bot-prs.yml: 6 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -3,14 +3,15 @@ name: Combine Bot PRs
on:
  workflow_dispatch:

# The minimum permissions required to run this Action
permissions:
  contents: write
  pull-requests: write
  checks: read
  contents: read

jobs:
  combine-wrapperbot-prs:
    permissions:
      contents: write
      pull-requests: write
      checks: read
    if: github.repository == 'gradle/actions'
    runs-on: ubuntu-latest
    steps:
@@ -18,6 +19,6 @@ jobs:
        uses: github/[email protected]
        with:
          branch_prefix: wrapperbot
          combine_branch_name: wrapperbot/combined-wrapper-updates
          pr_title: 'Bump Gradle Wrappers'
          ci_required: "false"
          github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
+741 −183

File changed.

Preview size limit exceeded, changes collapsed.

+5 −5
Changes for sources/package.json: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@
  "license": "MIT",
  "dependencies": {
    "@actions/artifact": "2.1.11",
    "@actions/cache": "3.3.0",
    "@actions/cache": "4.0.0",
    "@actions/core": "1.11.1",
    "@actions/exec": "1.1.1",
    "@actions/github": "6.0.0",
@@ -51,21 +51,21 @@
  },
  "devDependencies": {
    "@types/jest": "29.5.14",
    "@types/node": "20.17.6",
    "@types/node": "20.17.10",
    "@types/unzipper": "0.10.10",
    "@types/which": "3.0.4",
    "@typescript-eslint/parser": "7.18.0",
    "@vercel/ncc": "0.38.3",
    "eslint": "8.57.1",
    "eslint-plugin-github": "5.0.2",
    "eslint-plugin-github": "5.1.4",
    "eslint-plugin-jest": "28.9.0",
    "jest": "29.7.0",
    "js-yaml": "4.1.0",
    "nock": "13.5.6",
    "npm-run-all": "4.1.5",
    "patch-package": "8.0.0",
    "prettier": "3.3.3",
    "prettier": "3.4.2",
    "ts-jest": "29.2.5",
    "typescript": "5.6.3"
    "typescript": "5.7.2"
  }
}
+80 −10
Changes for sources/patches/@actions+cache+4.0.0.patch: 80 added lines, 10 removed lines.
Original line number Diff line number Diff line
diff --git a/node_modules/@actions/cache/lib/cache.d.ts b/node_modules/@actions/cache/lib/cache.d.ts
index 4658366..b796e58 100644
index ef0928b..4e2f570 100644
--- a/node_modules/@actions/cache/lib/cache.d.ts
+++ b/node_modules/@actions/cache/lib/cache.d.ts
@@ -21,7 +21,7 @@ export declare function isFeatureAvailable(): boolean;
@@ -25,11 +25,12 @@ index 4658366..b796e58 100644
+    size?: number;
+    constructor(key: string, size?: number);
+}
\ No newline at end of file
diff --git a/node_modules/@actions/cache/lib/cache.js b/node_modules/@actions/cache/lib/cache.js
index 9d636aa..a176bd7 100644
index 45201b6..2654e4b 100644
--- a/node_modules/@actions/cache/lib/cache.js
+++ b/node_modules/@actions/cache/lib/cache.js
@@ -127,18 +127,21 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
@@ -154,18 +154,21 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
             core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`);
             yield (0, tar_1.extractTar)(archivePath, compressionMethod);
             core.info('Cache restored successfully');
@@ -45,7 +46,7 @@ index 9d636aa..a176bd7 100644
-                core.warning(`Failed to restore: ${error.message}`);
-            }
+
+            // PATCHED - Return more inforamtion about restored entry
+            // PATCHED - Include size of restored entry
+            return new CacheEntry(cacheEntry.cacheKey, archiveFileSize);;
         }
+            // PATCHED - propagate errors
@@ -62,12 +63,81 @@ index 9d636aa..a176bd7 100644
         finally {
             // Try to delete the archive to save space
             try {
@@ -206,19 +209,23 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
@@ -232,18 +235,21 @@ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
             }
             yield (0, tar_1.extractTar)(archivePath, compressionMethod);
             core.info('Cache restored successfully');
-            return response.matchedKey;
-        }
-        catch (error) {
-            const typedError = error;
-            if (typedError.name === ValidationError.name) {
-                throw error;
-            }
-            else {
-                // Supress all non-validation cache related errors because caching should be optional
-                core.warning(`Failed to restore: ${error.message}`);
-            }
+
+            // PATCHED - Include size of restored entry
+            return new CacheEntry(response.matchedKey, archiveFileSize);;
         }
+            // PATCHED - propagate errors
+            // catch (error) {
+            //     const typedError = error;
+            //     if (typedError.name === ValidationError.name) {
+            //         throw error;
+            //     }
+            //     else {
+            //         // Supress all non-validation cache related errors because caching should be optional
+            //         core.warning(`Failed to restore: ${error.message}`);
+            //     }
+            // }
         finally {
             try {
                 if (archivePath) {
@@ -334,19 +340,23 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
             }
             core.debug(`Saving Cache (ID: ${cacheId})`);
             yield cacheHttpClient.saveCache(cacheId, archivePath, options);
             yield cacheHttpClient.saveCache(cacheId, archivePath, '', options);
+
+            // PATCHED - Include size of saved entry
+            return new CacheEntry(key, archiveFileSize);
         }
-        catch (error) {
-            const typedError = error;
-            if (typedError.name === ValidationError.name) {
-                throw error;
-            }
-            else if (typedError.name === ReserveCacheError.name) {
-                core.info(`Failed to save: ${typedError.message}`);
-            }
-            else {
-                core.warning(`Failed to save: ${typedError.message}`);
-            }
-        }
+            // PATCHED - propagate errors
+            // catch (error) {
+            //     const typedError = error;
+            //     if (typedError.name === ValidationError.name) {
+            //         throw error;
+            //     }
+            //     else if (typedError.name === ReserveCacheError.name) {
+            //         core.info(`Failed to save: ${typedError.message}`);
+            //     }
+            //     else {
+            //         core.warning(`Failed to save: ${typedError.message}`);
+            //     }
+            // }
         finally {
             // Try to delete the archive to save space
             try {
@@ -422,19 +432,23 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
                 throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
             }
             cacheId = parseInt(finalizeResponse.entryId);
+
+            // PATCHED - Return more inforamtion about saved entry
+            // PATCHED - Include size of saved entry
+            return new CacheEntry(key, archiveFileSize);
         }
-        catch (error) {
@@ -98,16 +168,16 @@ index 9d636aa..a176bd7 100644
         finally {
             // Try to delete the archive to save space
             try {
@@ -232,4 +239,11 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
@@ -447,4 +461,11 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
         return cacheId;
     });
 }
 exports.saveCache = saveCache;
+// PATCHED - CacheEntry class
+class CacheEntry {
+    constructor(key, size) {
+        this.key = key;
+        this.size = size;
+    }
+}
+exports.CacheEntry = CacheEntry;
 //# sourceMappingURL=cache.js.map
\ No newline at end of file