mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:48:39 +08:00 
			
		
		
		
	Troubleshoot
This commit is contained in:
		
							parent
							
								
									b1468b1cf5
								
							
						
					
					
						commit
						ac6da278d8
					
				
							
								
								
									
										11
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -9825,19 +9825,18 @@ class UploadProgress {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.UploadProgress = UploadProgress;
 | 
					exports.UploadProgress = UploadProgress;
 | 
				
			||||||
function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
 | 
					function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
 | 
				
			||||||
    var _a;
 | 
					 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
 | 
					        const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
 | 
				
			||||||
        const blockBlobClient = blobClient.getBlockBlobClient();
 | 
					        const blockBlobClient = blobClient.getBlockBlobClient();
 | 
				
			||||||
        const properties = yield blobClient.getProperties();
 | 
					        // const properties = await blobClient.getProperties()
 | 
				
			||||||
        const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1;
 | 
					        // const contentLength = properties.contentLength ?? -1
 | 
				
			||||||
        const uploadProgress = new UploadProgress(contentLength);
 | 
					        const uploadProgress = new UploadProgress(100 * 1024 * 1024);
 | 
				
			||||||
        // Specify data transfer options
 | 
					        // Specify data transfer options
 | 
				
			||||||
        const uploadOptions = {
 | 
					        const uploadOptions = {
 | 
				
			||||||
            blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
 | 
					            blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
 | 
				
			||||||
            concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
 | 
					            concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
 | 
				
			||||||
            maxSingleShotSize: 128 * 1024 * 1024 // 128 MiB initial transfer size
 | 
					            maxSingleShotSize: 128 * 1024 * 1024,
 | 
				
			||||||
            // onProgress: uploadProgress.onProgress()
 | 
					            onProgress: uploadProgress.onProgress()
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            uploadProgress.startDisplayTimer();
 | 
					            uploadProgress.startDisplayTimer();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										11
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -9825,19 +9825,18 @@ class UploadProgress {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.UploadProgress = UploadProgress;
 | 
					exports.UploadProgress = UploadProgress;
 | 
				
			||||||
function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
 | 
					function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
 | 
				
			||||||
    var _a;
 | 
					 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
 | 
					        const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
 | 
				
			||||||
        const blockBlobClient = blobClient.getBlockBlobClient();
 | 
					        const blockBlobClient = blobClient.getBlockBlobClient();
 | 
				
			||||||
        const properties = yield blobClient.getProperties();
 | 
					        // const properties = await blobClient.getProperties()
 | 
				
			||||||
        const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1;
 | 
					        // const contentLength = properties.contentLength ?? -1
 | 
				
			||||||
        const uploadProgress = new UploadProgress(contentLength);
 | 
					        const uploadProgress = new UploadProgress(100 * 1024 * 1024);
 | 
				
			||||||
        // Specify data transfer options
 | 
					        // Specify data transfer options
 | 
				
			||||||
        const uploadOptions = {
 | 
					        const uploadOptions = {
 | 
				
			||||||
            blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
 | 
					            blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
 | 
				
			||||||
            concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
 | 
					            concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
 | 
				
			||||||
            maxSingleShotSize: 128 * 1024 * 1024 // 128 MiB initial transfer size
 | 
					            maxSingleShotSize: 128 * 1024 * 1024,
 | 
				
			||||||
            // onProgress: uploadProgress.onProgress()
 | 
					            onProgress: uploadProgress.onProgress()
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            uploadProgress.startDisplayTimer();
 | 
					            uploadProgress.startDisplayTimer();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										11
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -9825,19 +9825,18 @@ class UploadProgress {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.UploadProgress = UploadProgress;
 | 
					exports.UploadProgress = UploadProgress;
 | 
				
			||||||
function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
 | 
					function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
 | 
				
			||||||
    var _a;
 | 
					 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
 | 
					        const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
 | 
				
			||||||
        const blockBlobClient = blobClient.getBlockBlobClient();
 | 
					        const blockBlobClient = blobClient.getBlockBlobClient();
 | 
				
			||||||
        const properties = yield blobClient.getProperties();
 | 
					        // const properties = await blobClient.getProperties()
 | 
				
			||||||
        const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1;
 | 
					        // const contentLength = properties.contentLength ?? -1
 | 
				
			||||||
        const uploadProgress = new UploadProgress(contentLength);
 | 
					        const uploadProgress = new UploadProgress(100 * 1024 * 1024);
 | 
				
			||||||
        // Specify data transfer options
 | 
					        // Specify data transfer options
 | 
				
			||||||
        const uploadOptions = {
 | 
					        const uploadOptions = {
 | 
				
			||||||
            blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
 | 
					            blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
 | 
				
			||||||
            concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
 | 
					            concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
 | 
				
			||||||
            maxSingleShotSize: 128 * 1024 * 1024 // 128 MiB initial transfer size
 | 
					            maxSingleShotSize: 128 * 1024 * 1024,
 | 
				
			||||||
            // onProgress: uploadProgress.onProgress()
 | 
					            onProgress: uploadProgress.onProgress()
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            uploadProgress.startDisplayTimer();
 | 
					            uploadProgress.startDisplayTimer();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										11
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -9825,19 +9825,18 @@ class UploadProgress {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.UploadProgress = UploadProgress;
 | 
					exports.UploadProgress = UploadProgress;
 | 
				
			||||||
function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
 | 
					function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
 | 
				
			||||||
    var _a;
 | 
					 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
 | 
					        const blobClient = new storage_blob_1.BlobClient(signedUploadURL);
 | 
				
			||||||
        const blockBlobClient = blobClient.getBlockBlobClient();
 | 
					        const blockBlobClient = blobClient.getBlockBlobClient();
 | 
				
			||||||
        const properties = yield blobClient.getProperties();
 | 
					        // const properties = await blobClient.getProperties()
 | 
				
			||||||
        const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1;
 | 
					        // const contentLength = properties.contentLength ?? -1
 | 
				
			||||||
        const uploadProgress = new UploadProgress(contentLength);
 | 
					        const uploadProgress = new UploadProgress(100 * 1024 * 1024);
 | 
				
			||||||
        // Specify data transfer options
 | 
					        // Specify data transfer options
 | 
				
			||||||
        const uploadOptions = {
 | 
					        const uploadOptions = {
 | 
				
			||||||
            blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
 | 
					            blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize,
 | 
				
			||||||
            concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
 | 
					            concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency,
 | 
				
			||||||
            maxSingleShotSize: 128 * 1024 * 1024 // 128 MiB initial transfer size
 | 
					            maxSingleShotSize: 128 * 1024 * 1024,
 | 
				
			||||||
            // onProgress: uploadProgress.onProgress()
 | 
					            onProgress: uploadProgress.onProgress()
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            uploadProgress.startDisplayTimer();
 | 
					            uploadProgress.startDisplayTimer();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user