From a5bcbcf710693a6e99c2703d7936155d8f83a6d7 Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Sun, 22 Nov 2026 08:26:36 +0000 Subject: [PATCH 1/2] TEST: Name the imports between packages that the last releases do not hold The four rows of the requirements test named MissingPropertyReason, CloudMissingPropertyService and OnPremiseMissingPropertyService in the engines and Cloud Request Engine packages. Those classes were removed before the test merged, so 8 of its checks fail on every build. The rows are now the four names a package here imports from another that the other's last release does not hold, all of them in fiftyone_pipeline_core, whose last release is 4.5.43: _contents_property, _CheckedDictWrites and, twice, ElementDataPool. The imports and the modules holding the names pass. The requirements fail, as none of the four packages requires fiftyone_pipeline_core at 4.5.44. --- .../tests/test_package_requirements.py | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/pipeline/fiftyone_pipeline_engines/tests/test_package_requirements.py b/pipeline/fiftyone_pipeline_engines/tests/test_package_requirements.py index a0eeabe4..72635a0d 100644 --- a/pipeline/fiftyone_pipeline_engines/tests/test_package_requirements.py +++ b/pipeline/fiftyone_pipeline_engines/tests/test_package_requirements.py @@ -35,33 +35,31 @@ # release of the holding package after the last one without the name, and is # not checked. IMPORTED_NAMES = ( - ("pipeline/fiftyone_pipeline_cloudrequestengine", - "fiftyone_pipeline_engines", + ("pipeline/fiftyone_pipeline_engines", + "fiftyone_pipeline_core", "4.5.44", - "fiftyone_pipeline_engines.missingproperty_service", - "MissingPropertyReason"), + "fiftyone_pipeline_core.elementdata", + "_contents_property"), ("device-detection/fiftyone_devicedetection_cloud", - "fiftyone_pipeline_cloudrequestengine", - "4.5.45", - "fiftyone_pipeline_cloudrequestengine.clouddata", - "CloudMissingPropertyService"), + "fiftyone_pipeline_core", + "4.5.44", + "fiftyone_pipeline_core.elementdata", + "_CheckedDictWrites"), ("device-detection/fiftyone_devicedetection_onpremise", - "fiftyone_pipeline_engines", + "fiftyone_pipeline_core", "4.5.44", - "fiftyone_pipeline_engines.missingproperty_service", - "OnPremiseMissingPropertyService"), + "fiftyone_pipeline_core.elementdata_pool", + "ElementDataPool"), ("ip-intelligence/fiftyone_ipintelligence_onpremise", - "fiftyone_pipeline_engines", + "fiftyone_pipeline_core", "4.5.44", - "fiftyone_pipeline_engines.missingproperty_service", - "OnPremiseMissingPropertyService"), + "fiftyone_pipeline_core.elementdata_pool", + "ElementDataPool"), ) # Where each package that holds one of the names above keeps its source. PACKAGE_FOLDERS = { - "fiftyone_pipeline_engines": "pipeline/fiftyone_pipeline_engines", - "fiftyone_pipeline_cloudrequestengine": - "pipeline/fiftyone_pipeline_cloudrequestengine", + "fiftyone_pipeline_core": "pipeline/fiftyone_pipeline_core", } # A requirement that gives a minimum version, as setup.py writes one. From 7aaa1b25fa39bffaaa2d5c55e84a5455796e281f Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Sun, 22 Nov 2026 08:35:16 +0000 Subject: [PATCH 2/2] BUG: Require fiftyone_pipeline_core at the version that holds the names four packages import Four packages import a name from fiftyone_pipeline_core that its last release, 4.5.43, does not hold, and none required the version that does. Upgrading one of them alone left the older core in place, and the import failed. fiftyone_pipeline_engines (_contents_property), fiftyone_devicedetection_cloud (_CheckedDictWrites) and the two on-premise packages (ElementDataPool) now require fiftyone_pipeline_core>=4.5.44. The comments on three other requirements named classes that no longer exist. The versions they require are unchanged, and each comment now says only that it is the release the package is built and tested with. The core package's tox.ini takes core from the checkout before its wheel is built, as the engines package does, because the engines package it installs now requires a core that a package index may not have yet. --- .../fiftyone_devicedetection_cloud/setup.py | 6 ++++-- .../fiftyone_devicedetection_onpremise/setup.py | 10 ++++------ .../fiftyone_ipintelligence_onpremise/setup.py | 10 ++++------ pipeline/fiftyone_pipeline_cloudrequestengine/setup.py | 3 +-- pipeline/fiftyone_pipeline_core/tox.ini | 4 ++++ pipeline/fiftyone_pipeline_engines/setup.py | 4 +++- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/device-detection/fiftyone_devicedetection_cloud/setup.py b/device-detection/fiftyone_devicedetection_cloud/setup.py index cbf3f7dc..2f7ce21d 100644 --- a/device-detection/fiftyone_devicedetection_cloud/setup.py +++ b/device-detection/fiftyone_devicedetection_cloud/setup.py @@ -67,8 +67,10 @@ def read(file_name): package_dir={"": "src"}, install_requires=[ "fiftyone_devicedetection_shared", - # The first version with CloudMissingPropertyService, which the - # hardware profile results of this package use. + # The first version with _CheckedDictWrites, which the hardware + # profile results of this package are built on. + "fiftyone_pipeline_core>=4.5.44", + # The release this package is built and tested with. "fiftyone_pipeline_cloudrequestengine>=4.5.45", ], license="EUPL-1.2", diff --git a/device-detection/fiftyone_devicedetection_onpremise/setup.py b/device-detection/fiftyone_devicedetection_onpremise/setup.py index b482bddc..7a9f0e2b 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/setup.py +++ b/device-detection/fiftyone_devicedetection_onpremise/setup.py @@ -264,12 +264,10 @@ def stage_native_source(): install_requires=[ "fiftyone_devicedetection_shared", "fiftyone_pipeline_engines_fiftyone", - # The first versions with close(), which releases the native memory - # this package holds. - "fiftyone_pipeline_core>=4.5.42", - # The first version with OnPremiseMissingPropertyService, which the - # results of this package give a caller that reads a Property the - # data file in use does not hold. + # The first version with ElementDataPool, which the engine of this + # package keeps its Element Data in for reuse. + "fiftyone_pipeline_core>=4.5.44", + # The release this package is built and tested with. "fiftyone_pipeline_engines>=4.5.44", ], ) diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py index 265e714f..85089057 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py @@ -280,12 +280,10 @@ def stage_native_source(): install_requires=[ "fiftyone_ipintelligence_shared", "fiftyone_pipeline_engines_fiftyone", - # The first versions with close(), which releases the native memory - # this package holds. - "fiftyone_pipeline_core>=4.5.42", - # The first version with OnPremiseMissingPropertyService, which the - # results of this package give a caller that reads a Property the - # data file in use does not hold. + # The first version with ElementDataPool, which the engine of this + # package keeps its Element Data in for reuse. + "fiftyone_pipeline_core>=4.5.44", + # The release this package is built and tested with. "fiftyone_pipeline_engines>=4.5.44", ], ) diff --git a/pipeline/fiftyone_pipeline_cloudrequestengine/setup.py b/pipeline/fiftyone_pipeline_cloudrequestengine/setup.py index 5c51df1a..ed143d73 100644 --- a/pipeline/fiftyone_pipeline_cloudrequestengine/setup.py +++ b/pipeline/fiftyone_pipeline_cloudrequestengine/setup.py @@ -54,8 +54,7 @@ def read(file_name): packages=["fiftyone_pipeline_cloudrequestengine"], package_dir={"": "src"}, install_requires=[ - # The first version with MissingPropertyReason, which this - # package gives as the reason a cloud Property has no value. + # The release this package is built and tested with. 'fiftyone_pipeline_engines>=4.5.44', 'requests', ], diff --git a/pipeline/fiftyone_pipeline_core/tox.ini b/pipeline/fiftyone_pipeline_core/tox.ini index 3bf4be95..962d5511 100644 --- a/pipeline/fiftyone_pipeline_core/tox.ini +++ b/pipeline/fiftyone_pipeline_core/tox.ini @@ -13,9 +13,13 @@ deps = description = run the tests with pytest package = wheel wheel_build_env = .pkg +# The engines package requires this package at the version this checkout +# releases, which a package index may not have yet, so this package is taken +# from the checkout too. The built wheel replaces it before the tests run. deps = {[common]deps} -e../fiftyone_pipeline_cloudrequestengine/ + -e../fiftyone_pipeline_core/ -e../fiftyone_pipeline_engines/ -e../fiftyone_pipeline_engines_fiftyone/ commands = diff --git a/pipeline/fiftyone_pipeline_engines/setup.py b/pipeline/fiftyone_pipeline_engines/setup.py index d98d758e..01b52658 100644 --- a/pipeline/fiftyone_pipeline_engines/setup.py +++ b/pipeline/fiftyone_pipeline_engines/setup.py @@ -51,7 +51,9 @@ def read(file_name): long_description_content_type='text/markdown', python_requires=">=3.10", install_requires=[ - 'fiftyone_pipeline_core', + # The first version with _contents_property, which keeps the + # values of the Aspect Data this package gives. + 'fiftyone_pipeline_core>=4.5.44', 'requests', 'cachetools' ],