Update folder structure for cache #2000
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Utils/util was not in a shared folder, as it is in the artifacts package, so updated it here and some other classes. This pull request includes a significant restructuring of the import paths in the
packages/cache
module to consolidate shared utilities and constants into a newshared
directory. The changes aim to improve code organization and maintainability by centralizing common functionalities.Reorganization of internal utilities:
packages/cache/__tests__/cacheHttpClient.test.ts
: Updated imports to use modules fromshared
directory.packages/cache/__tests__/cacheUtils.test.ts
: Updated imports to use modules fromshared
directory.packages/cache/__tests__/config.test.ts
: Updated imports to use modules fromshared
directory.packages/cache/__tests__/downloadUtils.test.ts
: Updated imports to use modules fromshared
directory.packages/cache/__tests__/requestUtils.test.ts
: Updated imports to use modules fromshared
directory.packages/cache/__tests__/restoreCache.test.ts
: Updated imports andjest.mock
calls to use modules fromshared
directory. [1] [2]packages/cache/__tests__/restoreCacheV2.test.ts
: Updated imports andjest.mock
calls to use modules fromshared
directory. [1] [2]packages/cache/__tests__/saveCache.test.ts
: Updated imports andjest.mock
calls to use modules fromshared
directory. [1] [2] [3]packages/cache/__tests__/saveCacheV2.test.ts
: Updated imports to use modules fromshared
directory.packages/cache/__tests__/tar.test.ts
: Updated imports to use modules fromshared
directory.packages/cache/__tests__/uploadUtils.test.ts
: Updated imports to use modules fromshared
directory.packages/cache/__tests__/util.test.ts
: Updated imports to userequestUtils
fromshared
directory.packages/cache/src/cache.ts
: Updated imports to use modules fromshared
directory. [1] [2]packages/cache/src/internal/cacheHttpClient.ts
: Updated imports to use modules fromshared
directory. [1] [2] [3]packages/cache/src/internal/cacheTwirpClient.ts
: Renamed file and updated imports to use modules fromshared
directory.packages/cache/src/internal/shared/downloadUtils.ts
: Renamed file and updated imports to use modules fromshared
directory.packages/cache/src/internal/shared/requestUtils.ts
: Renamed file and updated imports to use modules fromshared
directory. Added new functionsmaskSigUrl
andmaskSecretUrls
. [1] [2]