From 837144fd246d17c09617a03229433d44ce19483f Mon Sep 17 00:00:00 2001 From: Oleksandr Lazarenko Date: Thu, 20 Aug 2026 16:02:12 +0200 Subject: [PATCH] FIX: Prefetch Lite hash asset used by integration tests The integration tests clone ip-intelligence-java-examples and run its fetch-assets, which needs 51Degrees-LiteV4.1.hash. That asset was not in this repo's list, so it was missing from the prefetched cache and every matrix job downloaded the ~28MB LFS object itself. Listing it here fetches it once per run. --- ci/fetch-assets.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/fetch-assets.ps1 b/ci/fetch-assets.ps1 index af55e1a..0397d78 100644 --- a/ci/fetch-assets.ps1 +++ b/ci/fetch-assets.ps1 @@ -5,7 +5,11 @@ $ErrorActionPreference = "Stop" $ipIntelligenceData = "$PSSCriptRoot/../ip-intelligence.engine.on-premise/src/main/cxx/ip-intelligence-cxx/ip-intelligence-data" -./steps/fetch-assets.ps1 -IpIntelligenceUrl $IpIntelligenceUrl -Assets '51Degrees-EnterpriseIpiV41.ipi', '51Degrees-LiteIpiV41.ipi' +# The Lite hash file is not used by this repo, but the integration tests clone +# ip-intelligence-java-examples and run its fetch-assets, which needs it. Listing +# it here puts it in the prefetched asset cache, so it is downloaded once per +# nightly run instead of once per matrix job. +./steps/fetch-assets.ps1 -IpIntelligenceUrl $IpIntelligenceUrl -Assets '51Degrees-EnterpriseIpiV41.ipi', '51Degrees-LiteIpiV41.ipi', '51Degrees-LiteV4.1.hash' New-Item -ItemType SymbolicLink -Force -Target "$PWD/assets/51Degrees-EnterpriseIpiV41.ipi" -Path "$ipIntelligenceData/51Degrees-EnterpriseIpiV41.ipi" # The asset is fetched under the blob name, but FileUtils and the data repo # scripts use the unpacked name 51Degrees-LiteV41.ipi, so link it as that.