diff --git a/ci/run-performance-tests.ps1 b/ci/run-performance-tests.ps1 index 53e82b40..af0f5d9c 100644 --- a/ci/run-performance-tests.ps1 +++ b/ci/run-performance-tests.ps1 @@ -14,7 +14,20 @@ try $perfSummary = New-Item -ItemType directory -Path test-results/performance-summary -Force $perfJSONOutputName = "results_$Name.json"; - node fiftyone.devicedetection.onpremise/examples/onpremise/performance-console/performance.js --jsonoutput $perfJSONOutputName || $($testsFailed = $true) + # Pass the TAC data file explicitly, so the graph is measured with the full + # data file rather than whichever file the example's folder search finds + # first. Without a license key the TAC file isn't downloaded, and the + # example falls back to its default Lite data file. + $dataFile = 'fiftyone.devicedetection.onpremise/device-detection-cxx/device-detection-data/Enterprise-HashV41.hash' + $dataFileArgs = @() + if (Test-Path $dataFile) { + $dataFileArgs = '--datafile', $dataFile + } + else { + Write-Warning "No TAC data file at '$dataFile', so the example uses its default data file" + } + + node fiftyone.devicedetection.onpremise/examples/onpremise/performance-console/performance.js @dataFileArgs --jsonoutput $perfJSONOutputName || $($testsFailed = $true) Write-Output "Path to performance results - /"