From ae945f01c129ef3683ae7985bfb73ce4b34092e4 Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Sun, 6 Dec 2026 12:23:03 +0000 Subject: [PATCH] BUILD: Install the device-detection packages for the contract from the checkout The examples environment for the Selenium contract took its pipeline packages from the checkout, but nothing installed fiftyone_devicedetection, its cloud and on-premise packages, or fiftyone_devicedetection_shared from it, so pip took them from PyPI. The contract then drove the released cloud pipeline builder, not this branch's. With #319 reverted on rc, it passed, though the branch's builder fails the SessionStorageCache cases. The environment now installs those four packages from the checkout as well, as the examples' tox.ini does. On rc the contract (cloud) passes, and with #319 reverted it fails the four SessionStorageCache cases. --- device-detection/ci/run-integration-tests.ps1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/device-detection/ci/run-integration-tests.ps1 b/device-detection/ci/run-integration-tests.ps1 index 7c4aa855..1c5e341d 100644 --- a/device-detection/ci/run-integration-tests.ps1 +++ b/device-detection/ci/run-integration-tests.ps1 @@ -103,11 +103,15 @@ Push-Location $examplesDir try { python3 -m venv .virtualenv if ($LASTEXITCODE -ne 0) { throw "failed to create the examples virtual environment" } - # The pipeline packages come from this checkout rather than a package - # index, so the examples run with the pipeline code they are released with. + # Every 51Degrees package the examples need comes from this checkout rather + # than a package index, as in the examples' tox.ini, so the examples run + # with the code they are released with. + $deviceDetection = 'fiftyone_devicedetection', 'fiftyone_devicedetection_cloud', + 'fiftyone_devicedetection_onpremise', 'fiftyone_devicedetection_shared' $pipeline = 'fiftyone_pipeline_core', 'fiftyone_pipeline_engines', 'fiftyone_pipeline_engines_fiftyone', 'fiftyone_pipeline_cloudrequestengine' - $local = $pipeline | ForEach-Object { '-e'; "../../pipeline/$_" } + $local = @($deviceDetection | ForEach-Object { '-e'; "../$_" }) + + @($pipeline | ForEach-Object { '-e'; "../../pipeline/$_" }) & $py -m pip install -e . @local if ($LASTEXITCODE -ne 0) { throw "failed to install the examples package" } } finally { Pop-Location }