Commit Graph

48 Commits

Author SHA1 Message Date
Nick Rolfe 805b7e1790 Clean up JavaMinimizeDependencyJars feature flag 2025-12-11 10:46:56 +00:00
Michael B. Gale 0155561719 Merge branch 'main' into mbg/csharp/more-cache-locations 2025-11-26 10:01:51 +00:00
Henry Mercer cac5926de5 Delete unused exports 2025-11-18 18:16:54 +00:00
Michael B. Gale 51c9af3a3b Don't try to upload cache if we have restored a cache with the same key 2025-11-14 14:30:54 +00:00
Michael B. Gale 11889c27fd Return keys of restored caches from downloadDependencyCaches 2025-11-14 14:30:54 +00:00
Michael B. Gale ecaa6db95a Include getCsharpTempDependencyDir in C# caches if FF is enabled 2025-11-13 13:40:58 +00:00
Michael B. Gale d854ba6ec0 Pass FeatureEnablement to getDependencyPaths 2025-11-13 13:40:57 +00:00
Michael B. Gale cf8b7a6e14 Refactor C# cache content paths into a function 2025-11-13 13:40:56 +00:00
Michael B. Gale 48a56f6b93 Add some tests for downloadDependencyCaches related to feature prefixes 2025-11-09 12:03:18 +00:00
Michael B. Gale 4885eb2ad9 Insert new featurePrefix after general cache key prefix 2025-11-09 11:17:02 +00:00
Michael B. Gale a47d5507cf Restore earlier log messages for checkHashPatterns 2025-11-09 11:11:10 +00:00
Michael B. Gale b0e9dfce55 Restore missing status.push resulting from a bad merge 2025-11-09 11:10:27 +00:00
Michael B. Gale 35c91ef0af Add tests for getCsharpHashPatterns
- Make the function more easily testable by allowing `makePatternCheck` to be stubbed.
- Use `makePatternCheck` for base patterns as well.
2025-11-09 11:03:15 +00:00
Michael B. Gale 71abac76d2 Fix comment in getCsharpHashPatterns 2025-11-09 10:32:10 +00:00
Michael B. Gale 46e03b48bc Fix JSDoc param name 2025-11-09 10:05:18 +00:00
Michael B. Gale 26804552e4 Use undefined instead of NoMatchingFilesError
Add tests for `makePatternCheck` and `checkHashPatterns`
2025-11-05 17:23:22 +00:00
Michael B. Gale 03b2dc2a3f Add and use getFeaturePrefix for dependency caching 2025-11-05 16:33:21 +00:00
Michael B. Gale 0324490286 Use additional files for C# key hashes if Feature.CsharpNewCacheKey is enabled 2025-11-05 16:03:41 +00:00
Michael B. Gale 6b48207907 Move check whether there are files for hashing into getHashPatterns 2025-11-05 16:03:39 +00:00
Michael B. Gale ab1c84236a Change hash to be a function that can use Features 2025-11-05 15:57:57 +00:00
Michael B. Gale 2a7680fca6 Change getDefaultCacheConfig to be a const by turning paths into a function
Changing `paths` to be a function is necessary to allow `getTemporaryDirectory` to be called
2025-11-05 15:57:55 +00:00
Michael B. Gale 2aa1f55f3d Propagate features into cachePrefix function 2025-11-05 15:54:28 +00:00
Michael B. Gale d44c8b3e18 Fix comments 2025-09-29 15:45:07 +01:00
Michael B. Gale 31bfb99f0d Do not use stringified objects for dependency caching telemetry 2025-09-26 00:26:09 +01:00
Michael B. Gale ed57767898 Don't measure size of downloaded cache 2025-09-25 21:02:43 +01:00
Michael B. Gale 2ff902e1f1 Rename CacheHitResult and hit 2025-09-25 20:53:23 +01:00
Michael B. Gale 7dfbfdcb01 Report overall cache usage for CodeQL dependency caches 2025-09-23 12:28:42 +01:00
Michael B. Gale 3d7d7c978e Fix comment 2025-09-23 11:56:50 +01:00
Michael B. Gale 249a3cbb5c Add telemetry for storing dependency caches 2025-09-23 11:52:46 +01:00
Michael B. Gale 11480e326c Add telemetry for restoring dependency caches 2025-09-23 11:50:15 +01:00
Nick Rolfe 0abf548bb3 Add feature flag to roll out JAR minimization in the Java extractor 2025-09-12 12:09:34 +01:00
Henry Mercer f122d1dc9e Address test failures from computing temporary directory too early
These relied on the RUNNER_TEMP environment variable that does not necessarily exist when running locally.
2025-05-01 12:01:22 +01:00
Michael B. Gale afa3ed33bb Add more documentation 2025-03-13 11:45:27 +00:00
Michael B. Gale f8367fb063 Set and cache dependency directory for Java build-mode: none 2025-03-13 11:39:39 +00:00
Michael B. Gale 7bc6222c12 Allow warnings in tryGetFolderBytes to be suppressed
To avoid confusing run annotations when dependency caching is enabled
2024-11-12 15:16:18 +00:00
Michael B. Gale b0c0aadc56 Handle ReserveCacheError with a nicer message 2024-11-12 15:08:09 +00:00
Michael B. Gale bab8f1df69 Document future cache size considerations 2024-10-29 12:10:34 +00:00
Michael B. Gale 668531eca8 Support Paket 2024-10-29 12:08:53 +00:00
Michael B. Gale 7d69964c80 Fix import ordering 2024-10-29 12:08:52 +00:00
Michael B. Gale c0b5869910 Add message when no cache was found for a language 2024-10-29 12:08:52 +00:00
Michael B. Gale 8f657e857d Add environment variable for custom dependency cache prefix 2024-10-29 12:08:52 +00:00
Michael B. Gale f3714aed1f Skip uploading empty caches 2024-10-29 12:08:32 +00:00
Michael B. Gale 259cc5a39c Rename makeGlobber parameter 2024-10-29 12:07:42 +00:00
Michael B. Gale f0bcca1598 Add documentation for CacheConfig 2024-10-29 12:07:42 +00:00
Michael B. Gale 5afaeede1c Ensure that we have files to calculate the hash for the cache key from 2024-10-29 12:07:42 +00:00
Michael B. Gale 9d1353fe5f Add caching configuration for Go 2024-10-29 12:07:41 +00:00
Michael B. Gale 5e11d57e17 Add caching configuration for C# 2024-10-29 12:07:41 +00:00
Michael B. Gale 2b7af49a3d Add bare-bones dependency caching functions 2024-10-29 12:06:48 +00:00