Repository navigation
Release candidate - #240
Draft
jwrosewell wants to merge 174 commits into
Draft
jwrosewell wants to merge 174 commits into
jwrosewell wants to merge 174 commits into
Conversation
…54) * Label a one-package release with its version, not its last character When the release plan holds one package, $plan.Version is a single string, Sort-Object hands it back as a string, and [-1] took its last character, so a plan releasing 4.5.3 alone gave the run the label 3, which the publish's version check refuses. The sort is now collected into an array first. * Test the publish label for a plan of one package, several packages and none
* DOC: Point at the one list of environment variable names AGENTS.md gains a section linking common-ci's list of environment variable names (environment-variables.md, made from environment-variables.json) at commit 18f9a570, and saying the list decides. Documentation only. * DOC: Link the list of environment variable names at d8a9c596 The list at that commit holds the names review found missing. * Keep one Releases section in AGENTS.md
Pull requests go to rc, so a 51Did change was first checked against the live cloud only when the release pull request into main opened.
Reviewed and approved at head 2e8d370. The pull request body says what changed and how it was tested.
Reviewed and approved at head 60b4036. The pull request body says what changed and how it was tested.
Step 1 of [common-ci#306](51Degrees/common-ci#306). The release plan in `ci/packages.ps1`, which works out which packages a publish releases and at which version, moved to common-ci as `steps/release-plan.ps1` in [common-ci#307](51Degrees/common-ci#307), and the rule that documentation, tests and examples do not count was added there by [common-ci#310](51Degrees/common-ci#310). Both reached common-ci's `main`, which the workflows here use, in common-ci's release of 12 November. This repository then uses the shared step in place of its own copy, so that the rule is written once for every package repository.
…les (#119) The Usage Sharing Element accepts no Evidence, and shares what it finds in the web request that the web integration adds as `server.http-request`, together with the Evidence given to the Pipeline (`found_evidence` in [`share_usage.py` lines 432 to 458 at 5b5a833](https://github.com/51Degrees/51degrees-python/blob/5b5a833239d435676a1ab0450be22bce0c0807a2/pipeline/fiftyone_pipeline_engines_fiftyone/src/fiftyone_pipeline_engines_fiftyone/share_usage.py#L432-L458)). `webevidence` in [`pipeline/fiftyone_pipeline_core/src/fiftyone_pipeline_core/web.py` line 139](https://github.com/51Degrees/51degrees-python/blob/5b5a833239d435676a1ab0450be22bce0c0807a2/pipeline/fiftyone_pipeline_core/src/fiftyone_pipeline_core/web.py#L139) adds it for every request it reads.
Each must end without an error, naming the environment variable to set and giving a tagged link to the page where a key is created.
Each examples package, location and the pipeline packages that hold examples gain test_find_out_more.py. It reads every example file and fails, naming the file, when the file has no Find out more section, meaning a list of links whose 51degrees.com addresses carry a utm_term starting with find-out-more and a utm_content naming that file, and a link to the product's folder in this repository. Where an example can stop early without a key, a data file or the network, the test also runs it to that end and checks the section is printed there. The existing tests that capture what an example prints, or the page a web example serves, now also check for the section. The device lines check of the TAC and native model lookups leaves out the section's links, which are indented as device lines are. These fail until the examples print the section, which the next commits add.
…letters (#120) `ShareUsage.found_evidence` merges the values of the web request, which the web integration adds as `server.http-request`, with every Evidence value in the Flow Data, so that a key found in both places is shared once with the Evidence value ([`share_usage.py` lines 432 to 458 at 32ffdcf](https://github.com/51Degrees/51degrees-python/blob/32ffdcf1205a5ce593fb55f5be733de5a18dffde/pipeline/fiftyone_pipeline_engines_fiftyone/src/fiftyone_pipeline_engines_fiftyone/share_usage.py#L432-L458)). It merged on the exact key. `webevidence` writes each header's key in lower case ([`web.py` line 91](https://github.com/51Degrees/51degrees-python/blob/32ffdcf1205a5ce593fb55f5be733de5a18dffde/pipeline/fiftyone_pipeline_core/src/fiftyone_pipeline_core/web.py#L91)), so a header an application added by hand in other letters, such as `header.User-Agent`, was found twice and both values were shared.
…s the Lite file (#124) [AGENTS.md](https://github.com/51Degrees/51degrees-python/blob/175ca4a/AGENTS.md) said the IP Intelligence on-premise `gettingstarted_console` "with no argument looks for the Asn file", shows registration values only once given the Lite file, and prints "This property is not present in the data file." for a property the file lacks. None of that is what the example does on `rc` at 175ca4a.
The creator context demo's exit message with no resource key named the environment variable only. It now gives a tagged link to the configuration page, where a resource key is created.
…gence cloud web example has none The IP Intelligence cloud web example logged nothing and raised an exception with no key. It now logs the message the cloud console examples log, with tagged links to the resource keys page and the configuration page, and returns.
…Find out more section The custom flow element example ends its page with the Build your own page, the Pipeline API documentation and this repository's pipeline folder. The usage sharing example prints the usage sharing documentation, the Pipeline API documentation and the pipeline folder last, and its expected output comment says the section follows. The 51Did example prints the 51Did page, its documentation, the 51Did inspector, the pipeline folder and the specifications repository after a successful run.
The mixed cloud console printed its section only after a run. Writing the section moves into GettingStartedConsole.print_find_out_more, which run still calls, and main now calls it too when there is no key and when the pipeline cannot be built, so each of the example's ends finishes with it.
Each example now lists its own links, the Device Detection page, the resource keys documentation and pricing for the cloud examples, the Device Detection page and where to ask about the Enterprise data file for the on-premise ones, then this repository's device-detection folder, and 51degrees-cxx where the example uses the native engine. ExampleUtils gains print_find_out_more, which writes the section in the form the mixed cloud console uses, a line of "=" then "Find out more:" then each label and link on a tab-indented line. The section is printed at every clean end. A cloud console prints it after its results, and from main when there is no resource key. An on-premise console prints it from main, so it follows the results or the message that no data file was found. The data file update example prints it whether it updated the file, had no licence key or was stopped before downloading. The CSV and profile metadata examples write it where their progress messages go, so JSON on standard output stays valid. The offline processing example prints it to the console, because its results go to a file. The web examples end their pages with the section and print it to the console when the server stops, and the cloud ones also when there is no resource key. The scripts, failuretomatch, performance and the getting started example in fiftyone_devicedetection, print it last.
Each example now lists its own links, the IP Intelligence page, the resource keys documentation and pricing for the cloud examples, the IP Intelligence page and where to ask about the Enterprise data file for the on-premise ones, then this repository's ip-intelligence folder, and 51degrees-cxx where the example uses the native engine. The mixed examples add the Device Detection page and folder. ExampleUtils gains print_find_out_more, which writes the section in the form the mixed cloud console uses, and get_find_out_more_html, which gives the same links as the end of a web example's page. Each console prints the section from main, which every clean end reaches, so it follows the results, the message that there is no resource key or no data file, the message that the data file lacks the properties the example needs, and the message that the device detection package is not installed. The data file update example prints it whether it updated the file, had no licence key or was stopped before downloading. The offline processing example writes its results as YAML on standard output, so it writes the section as YAML comments. The compare example's results go to a file, so it prints the section to the console. The web examples end their pages with the section. The on-premise one also prints it when the server stops. The cloud web example's handling of a missing resource key is left as it is, because another change replaces it.
Both cloud examples list the Geolocation page, the resource keys documentation, pricing and this repository's location folder. The getting started example prints the section last, after the result or after the message that there is no resource key. The web example prints it after that message, and ends its page with the same links. Its page is served by flask run, so there is no point at which the example could print the section when the server stops.
For [specifications#61](51Degrees/specifications#61), "Results and threads". [thread-safety.md, Element Data](https://github.com/51Degrees/specifications/blob/6570727d2af6967390d3c4fbec77b9cf0540d3f3/pipeline-specification/features/thread-safety.md#L59-L66), lines 59 to 66, says "Some Element Data writes into something it holds when it is read, such as an on-premise Engine's Aspect Data, which reads its values from native results that each read writes into. Such Element Data MUST let only one thread at a time read from its results, for example by holding a lock for each read". A native results instance is used by one thread at a time, because reading a value writes into it and the first read of a component can walk its graph.
The test of the location web example with no resource key failed to import it, because the web integration in fiftyone_pipeline_core imports Flask and location's test environment did not have it. The same lines are in the change that tests the examples no test ran.
The Find out more test runs location's web example with no resource key, and the example imports the web integration in fiftyone_pipeline_core, which imports Flask, which location's test environment did not have. The same four lines are in the changes that test the examples with no key and that test the examples no test ran.
…k out the reported IP address in one place (#129) Two smaller fixes from the list of deferred work for this release.
…eUtils, as the other IP Intelligence examples do
BUILD: Declare the permissions each workflow needs. Reviewed at 792c63b with no high finding open, and all 3 checks on that head passing.
BUILD: Read every setting under one _51DEGREES_ name. Reviewed at 73348a5 with no high finding open, and all 10 checks on that head passing.
* BUILD: Read the three resource keys from organization variables The three resource keys _51DEGREES_RESOURCE_KEY_51DID, _BASIC and _BESPOKE are organization variables, as every other resource key is, so the workflows read them from vars. A name holds one thing, and the shared export step stops a job that finds one name both as a secret and as a variable. * BUILD: Say and check that the resource keys are organization variables ci/key-names.Tests.ps1 now requires _51DEGREES_RESOURCE_KEY_51DID and _51DEGREES_RESOURCE_KEY_BASIC to come from the organization variable of the same name, rather than the secret. The Cloud 51Did workflow's comments and error messages, the CI READMEs of device-detection, ip-intelligence, location and pipeline, and the warnings in their run-integration-tests.ps1 now say the resource keys are organization variables and the license keys organization secrets.
Check the Human Confidence example returns its source. Reviewed at 35d830f with no high finding open, and all 5 checks on that head passing.
cloud-51did.yml now reads _51DEGREES_RESOURCE_KEY_51DID and _51DEGREES_RESOURCE_KEY_BASIC as secrets, because every resource key is an organization secret. The workflow comments and messages, AGENTS.md, the CI READMEs and the run-integration-tests.ps1 warnings say the same. key-names.Tests.ps1 expects both keys from the secret of their own names, and gains a test that fails when any workflow reads a _51DEGREES_RESOURCE_KEY name as vars.
) BUILD: Run the integration and publish steps without a Keys option. Reviewed at 69c080f with no high finding open, and all 5 checks on that head passing.
* BUILD: Move the cxx submodule to the head of cxx rc Moves the cxx submodule to the head of 51degrees-cxx rc (560de81e), the commit under review for the cxx release, so every language builds and tests against the same C code. When the cxx release adds a tag, the submodule moves to the tagged commit. * BUILD: Move the cxx submodule to the head of cxx rc Restores every file from rc. Only the cxx submodule pointer differs from rc.
BUILD: Run the CI script tests on a change to any workflow. Reviewed at ac6f4f3 with no high finding open, and all 5 checks on that head passing.
TEST: Expect the cloud address the endpoint order gives. Reviewed at a869226 with no high finding open, and all 5 checks on that head passing.
BUILD: Build against cxx 699a9789. Reviewed at 4626ba3 with no high finding open, and all 7 checks on that head passing.
TEST: Check the cloud hardware lookup examples return devices. Reviewed at 28fb20d with no high finding open, and all 3 checks on that head passing.
Moves the cxx submodule to the head of 51degrees-cxx rc, as the description says.
jwrosewell
marked this pull request as ready for review
November 25, 2026 16:06
jwrosewell
marked this pull request as draft
November 25, 2026 16:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version: 4.6, set once this rc is ready for review.
Status, 25 November 2026, 16:10 UTC: ready for review at 7b100471, with
cxxat 61120767. Every check on that head passed, including all 15 Build and Test entries of run 45613235703. #282 (loading a file only when it was published later) and #279 (warnings as errors in the native builds) are still open drafts and are not part of this release (Still open, items 2 and 3).Context
This pull request releases
rcintomainfor 51degrees-python, the repository that holds every 51Degrees Python package.ci/packages.jsonlists 20 packages underpipeline/,device-detection/,ip-intelligence/andlocation/, of which 16 are published. The three examples packages and the newfiftyone_pipeline_derivedpropertyare not.The last release was #114, merged into
mainon 13 November 2026 at 06:22 UTC. Since then 134 pull requests have merged intorc, the last of them (#283) on 25 November 2026 at 12:22 UTC. The release head is 7b100471.The two on-premise packages compile the 51Degrees C and C++ library from the
cxxsubmodule.mainpins 7992af70, 51degrees-cxx 4.5.106, andrcpins 61120767, which #283 moved it to from 699a9789. 61120767 is on 51degrees-cxxrc, which 51Degrees/51degrees-cxx#191 releases, and the five commits on cxxrcafter it change nothing undersrc/. Section 9 says what that move means for the Python packages.The changes, in the order below, are these.
_51DEGREES_.In each group the numbers in the Files, Tests and Pull requests lines match the group's numbered items.
Changes
1. Alignment to the specification in the Pipeline and the Flow Data
Sections 1 to 6 bring the packages in line with the 51Degrees specifications. Several follow 51Degrees/specifications#190, which says that a Flow Data is used by one thread at a time, that a finished Flow Data refuses writes, that Element Data is reused through a pool where the language allows, and that usage sharing runs last.
Pipeline.get_evidence_key_filter(). The same pull request makes usage sharing and on-premise Device Detection read Evidence keys in any letter case.dictfailed withRuntimeError: dictionary changed size during iterationwhen one thread walkedflowdata.datawhile a Flow Element added to it.process(). The second pull request makes a write through a view of finished Element Data fail too, which the core unit tests onrcneeded.server.request-query, the query string of the request line whole and undecoded.withblock that closes the Flow Data.pipeline/fiftyone_pipeline_core/src/fiftyone_pipeline_core/(pipeline.py,pipelinebuilder.py,flowdata.py,elementdata.py,elementdata_pool.py,setheaderelement.py,jsonbundler.py,web.py), withshare_usage.pyanddevicedetection_onpremise.pyfor (2), the two on-premise packages for (5),pipeline/fiftyone_pipeline_engines/src/fiftyone_pipeline_engines/engine.pyfor (9) and the nine web examples for (10).pipeline/fiftyone_pipeline_core/tests/unless a package's owntests/holds them. (1)test_pipeline_read_only.py. (2)test_pipeline_evidence_key_filter.py,test_evidence_key_case.py. (3)test_flowdata_element_data_list.py. (4)test_finished_writes.py. (5)test_element_data_pools.py. (6)test_web_integration_elements.py,test_setheader.py. (7)test_setheader.py,test_jsonbundler_pipelines.py,test_jsonbundler_delayexecution.py. (8)test_request_line.py. (9)test_engines.py. (10)test_elementdata_documentation.py,test_flow_data_threads_documentation.py.2. Alignment to the specification in properties, values and usage sharing
is_usage_sharing_element.51D_or a Flow Element of the Pipeline accepts it, and no cookie but51D_ones is shared, whatever the settings. Share every query value by default, and no cookie but 51D_ ones #201 followed Share every query and form value by default, and no cookie but 51D_ ones when all Evidence is shared specifications#155 and shared every parameter by default, Share only 51D_ and listed query parameters when no list is given #218 made a list ofNonehold no names, and Give the released missing property messages again, and share a parameter only when it starts with 51D_ or the Pipeline uses it #246 followed Share a query or form parameter only when its name starts with 51D_ or the Pipeline uses it specifications#191, which gives the rule as it now stands.query_whitelistandheader_blacklistgiven as one string are split at commas, the form a configuration file gives a list in.ServerIP, looked up in the background, and aProcessId. The first record, the first each hour and the first once the address is known carry the invariant values and thePackageelements (Write the invariant values again once a value that was not yet known becomes known specifications#189). The session id and sequence are read in any letter case, and a record names the elements of the Pipeline its request came through.int()turned 2.0,Trueand signed text into numbers. A value that is neither is left out and no Error is logged.pipeline/fiftyone_pipeline_core/src/fiftyone_pipeline_core/aspectproperty_value.py. (2)missingproperty_service.pyandaspectdata.pyinfiftyone_pipeline_engines,cloudengine.pyandclouddata.pyin the Cloud Request Engine package, andswig_data.pyin both on-premise packages. (3) to (8)pipeline/fiftyone_pipeline_engines_fiftyone/src/fiftyone_pipeline_engines_fiftyone/(share_usage.pyand its Evidence key filter), withpipeline/fiftyone_pipeline_core/and the product builders for (3).test_aspectproperty_value.py. (2)test_missing_property_raises.pyin both on-premise packages. The rest are inpipeline/fiftyone_pipeline_engines_fiftyone/tests/. (3)test_share_usage_position.py,test_usage_sharing_last.py. (4)test_share_usage_rules.py,test_share_usage_evidencekeyfilter.py,test_usage.py. (5)test_share_usage_lists.py. (6)test_share_usage_accepts_no_evidence.py. (7)test_share_usage_record_fields.py,test_share_usage_invariant_values.py,test_share_usage_packages.py,test_share_usage_pipelines.py. (8)test_share_usage_record_fields.py.3. Alignment to the specification in the Cloud Request Engine, the cloud engines and 51Did
warningslist is given as a warning.timeout_secondssays otherwise, where a service that never answered held the build or a request with no limit.cloud-response, the key the specification gives, as well as undercloud, which is deprecated.errorslist is its own error. One entry is raised with its text as the message, and several are raised as oneCloudRequestExceptionwhoseexceptionshold one for each.profile.hardwarevendoras device data is.nullfactor in a redeem answer reads as a Mismatch, and a short Payload is refused for its version. The layout names thatfod_idanddid_clientoffered are deprecated and read through the private_layoutmodule.pipeline/fiftyone_pipeline_cloudrequestengine/, withdevice-detection/fiftyone_devicedetection_cloud/for (6) and (7),pipeline/fiftyone_pipeline_engines/src/fiftyone_pipeline_engines/aspectdata_dictionary.pyfor (7) andpipeline/fiftyone_pipeline_did/for (8).test_discovery_at_build.py. (2)test_timeout.py,test_builder_timeout.py. (3)test_cloud_response_key.py. (4)test_cloud_errors.py. (5)test_cloudengine_pipelines.py. (6)test_hardwareprofile_cloud.py. (7)test_aspectdata_dictionary.py. (8)test_fodid.py,test_did_client.py.4. Alignment to the specification in the on-premise engines
restricted_propertiesas a comma-separated string, and leave the caller's own list alone.Device Metricsand the componentMetrics, UserAgents is a list that holds each matched User-Agent once and is empty when the engine does not record them, andmethodis a name such asPERFORMANCE, where it was a number.get_components(), with Metrics among them.device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/andip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/, chieflydevicedetection_onpremise.py,ipintelligence_onpremise.pyandswig_data.py.tests/. (1)test_keys_and_property_list.py. (2)test_properties.py,test_update_matched_useragent.py,test_devicedetection.py. (3)test_properties.py. (4) the key rule testtest_licence_key_rule.pyand the watcher testtest_watcher_without_licence_key.pyin each package.5. Alignment to the specification in data updates
All in the data update service,
datafile_update_service.py, which every on-premise engine shares.AUTO_UPDATE_UNKNOWN_ERROR, and the next check is still scheduled.DataFilerefreshes its engine with its own identifier when the service gives none.update_from_memorycalls no update complete callback and raises a failed refresh. A file the service wrote is not refreshed again by the watcher. A failed write is a warning, with the engine refreshed from the bytes given.update_data_file) raises a failure to its caller, a refresh is tried 10 times, a watched file still being written is waited for, the module levelREFRESH_TRIESstays readable as deprecated, and the update on start-up reports how the check ended and schedules the next check.AvailableUristhe service now repeats its first request to the configured address withProductadded, naming the product of the loaded data file (V4TAC, V4Enterprise or IPIV4Enterprise, throughDataFile.get_data_update_product()), with the sameIf-Modified-Sincedate. When no product offered matches, or no data file is loaded yet, the check fails withAUTO_UPDATE_HTTPS_ERRand names the products offered. FIX: Ask for the product of the data file in use when a license key holds several #268 first followed the URI offered, and FIX: Repeat the update request with the product, as the specification says #270 repeats the request instead, as Ask for the product of the loaded data file when License Keys hold several products specifications#194 says.data_update_product_type, when set, names the product on every request.pipeline/fiftyone_pipeline_engines/src/fiftyone_pipeline_engines/(datafile_update_service.py,datafile.py), with the on-premise data file classes for (5), the on-premise engines and bothdatafileupdate_console.pyexamples for (7) and (8).pipeline/fiftyone_pipeline_engines/tests/unless named. (1)test_datafile_update_guard.py. (2), (3), (5) and (6)test_datafile_update_http.py, withtest_public_names.pyandtest_engine_in_pipelines.pyfor (6). (4)test_datafile_refresh.py. (7)test_programmatic_update.pyin both on-premise packages. (8) theSeveralProductsTestsintest_datafile_update_http.py, against a local server that answers as the distributor does,test_data_update_product.pyin both on-premise packages andtest_datafileupdate_product.pyin both examples packages.6. Alignment to the specification in environment variable names and keys
The specification's environment variables page is released with this version (51Degrees/specifications#181), and says each name starts
_51DEGREES_and holds one thing._51DEGREES_names are read by the packages, examples and tests. The deprecated names in common-ci's list are ignored (Breaking changes, item 1)._51DEGREES_name. Workflows that call common-ci passsecrets: inherit, everytox.inipasses_51DEGREES_*, and a live cloud test with no key skips and names the variable._51DEGREES_name for one setting, and none gets its value from another. Cloud tests read_51DEGREES_RESOURCE_KEY_BESPOKE, and a test that runs an example passes the key as_51DEGREES_RESOURCE_KEY, the name people set. Cloud tests and examples call the service_51DEGREES_CLOUD_ENDPOINTnames, or the public service when the variable is not set. The web examples listen on_51DEGREES_EXAMPLE_HTTP_PORTS, or on 5151. The performance example and the web benchmark read20000 Evidence Records.yml, which the example takes with--evidence_file.ci/check-environment-variable-names.ps1fails on any name read or set that does not start_51DEGREES_, apart from a short list the platform or CI defines.cloud-51did.ymlreads_51DEGREES_RESOURCE_KEY_51DIDand_51DEGREES_RESOURCE_KEY_BASICassecrets., and_51DEGREES_CLOUD_ENDPOINTstays an organization variable. BUILD: Read the three resource keys from organization variables #262 read the three resource keys from organization variables and BUILD: Read every resource key from organization secrets #263 replaced that.pipeline/fiftyone_pipeline_cloudrequestengine/,pipeline/fiftyone_pipeline_did/, the examples. (2).github/workflows/, the productci/folders, thetox.inifiles. (3)ci/check-environment-variable-names.ps1,ci/packages.ps1, bothkey_utils.py, the examples'example_utils.pyand webapp.pyfiles,onpremise/performance.py,constants.pyin the Cloud Request Engine package anddid_client.pyin the 51Did package. (4).github/workflows/cloud-51did.yml, the four productci/run-integration-tests.ps1andci/README.mdfiles.ci/check-environment-variable-names.Tests.ps1, bothtest_environment_names.py,test_onpremiseperformance.py,test_did_client.py. (2)ci/key-names.Tests.ps1,ci/run-integration-tests.Tests.ps1. (4)ci/key-names.Tests.ps1, which fails on avars.read of any resource key in any workflow.7. Performance improvements
hash_python.iandipi_python.iwrap the threerefreshDatacalls inrefreshWithoutGil, so other threads go on processing Flow Data while the native code loads data, with one refresh at a time.BasicListEvidenceKeyFilterlooks a key up in a set.get_evidence_key_filter()made a new one.swig_data.py,hash_python.iandipi_python.iin the two on-premise packages, with the generated wrappers. (3) the two on-premise engines andengine.pyinfiftyone_pipeline_engines. (4) the same engines, the Cloud Request Engine and the core filters. (5)pipeline.py,evidence.pyandweb.pyinfiftyone_pipeline_core.test_swig_data_threads.pyin both on-premise packages. (2)test_processing_during_refresh.py. (3)test_engine_in_pipelines.py. (4)test_basiclist_evidence_keyfilter.py,test_keys_and_property_list.py. (5)test_pipeline_evidence_key_filter.py.8. New features
fiftyone_pipeline_derivedpropertypackage. ItsDerivedPropertyElementruns every script of derived-properties, taken as a submodule, so a Python Pipeline can offer HumanConfidence and IsGdpr. The element refuses a second Pipeline, and an example that needs no key, data file or network shows a script given as text, one read from a file and the same Pipeline built from a configuration file. The package is not published yet (Still open, item 6).CountriesTranslationCloudinfiftyone_ipintelligence_cloudreads the translated country names the cloud service returns, withWeightedCloudEngineand a console example.discovery_state(), and then makes no discovery request. This suits a host that starts often.setup.pydefinesSWIGPYTHON_NOGIL, so neither wrapper declares that it runs without the GIL, and Python turns the GIL back on when it loads either native module.test_free_threaded.pychecks that, and each package's readme says so in a new Free-threaded Python section.pipeline/fiftyone_pipeline_derivedproperty/,.gitmodules,ci/packages.json. (2)ip-intelligence/fiftyone_ipintelligence_cloud/. (3)pipeline/fiftyone_pipeline_cloudrequestengine/src/fiftyone_pipeline_cloudrequestengine/cloudrequestengine.py. (4).github/workflows/free-threaded-python.yml, both on-premise packages'readme.md.test_shared_cases.py,test_built_in_scripts.py,test_element.py,test_one_pipeline.py,test_derived_property_example.py. (2)test_countries_translation_cloud.py. (3)test_discovery_state.py. (4)test_free_threaded.pyin both on-premise packages,ci/free-threaded-python.Tests.ps1.9. The C library and the native build
fiftyone_devicedetection_onpremiseandfiftyone_ipintelligence_onpremiseeach copycxx/src/commonand their own folder,cxx/src/ddorcxx/src/ipi, into the package (stage_native_sourceinsetup.py), so a source distribution carries the sources it compiles. There is no CMake. Eachsetup.pycompiles the C sources as one library (-std=gnu11 -Wall, or/W4with MSVC) and the C++ sources as another (-std=gnu++17 -Wall), with the switches that turn some warnings off still in place (-Wno-strict-prototypes,-Wno-unused-variable,-Wno-missing-bracesand-Wno-strict-aliasingamong them, until BUILD: Make the -Wall -Wextra and /W4 warnings errors in the native builds #279), and IP Intelligence definesFIFTYONE_DEGREES_LARGE_DATA_FILE_SUPPORTandFIFTYONE_DEGREES_REDUCED_FILEfor all of it. The extension module is the committed SWIG wrapper,hash_python_wrap.cxxoripi_python_wrap.cxx, generated with SWIG 4.4.1 fromhash_python.ioripi_python.i, which include the library'shash.iandipi.i. So Python uses the C++ engine classes, and never calls the C functions itself.refreshData()again. BUILD: Move the cxx submodule to the head of cxx rc #266 moved it to 560de81e and BUILD: Build against cxx 699a9789 #269 to 699a9789. Take 51degrees-cxx 178371ac, the head of its next release #189 and Move the C library to ad2ccae5 #242 generated the wrappers again and got the same four files byte for byte, and the other moves change only the submodule line.rcup to that commit, and from 699a9789 the 26 pull requests BUILD: Build against cxx 61120767 #283 lists, BUILD: Print every thread's stack when a Windows Visual Studio test program crashes 51degrees-cxx#213 to FIX: Store the memory tracker's flag and allocators atomically 51degrees-cxx#240. For the Python packages that means the following.getPublishedTimeFromFiletoEngineHash.iandEngineIpi.i. The committedhash_python_wrap.cxx,DeviceDetectionHashEngineModule.py,ipi_python_wrap.cxxandIpIntelligenceEngineModule.pywere generated before that, so they do not offer the method, and nothing in this release calls it. FIX: Load an updated data file only when it was published later #282, which does, regenerates them (Still open, item 2). The wrappers compile against the sources at 61120767 on every entry of the release run.cl : Command line warning D9025 : overriding '/W3' with '/W4', a warning about the options setuptools passes, which BUILD: Make the -Wall -Wextra and /W4 warnings errors in the native builds #279 removes (Still open, item 3).SwigData.round_coordinatein the IP Intelligenceswig_data.pyrounds them, so the library rounding the number itself (Give a number stored as an angle rounded to the decimal places of its text 51degrees-cxx#177) changes no value read here. Evidence prefixes in any letter case are read by the library (Match evidence prefixes ignoring case, and test that refreshed keys are read again 51degrees-cxx#184) and by the Python engine (section 1, item 2).fiftyoneDegreesResourceHandleandfiftyoneDegreesPoolHead, or the allocation names inmemory.h. Neither wrapper names any of them, and each package compiles the wrapper and its own copy of the sources from one commit.cxx(the submodule line),device-detection/fiftyone_devicedetection_onpremise/andip-intelligence/fiftyone_ipintelligence_onpremise/(setup.py, and undersrc/the interface file, the generated wrapper, the generated proxy module,PreBuild.shandPreBuild.bat), and for Move the C library to ad2ccae5 #242devicedetection_datafile.pyandipintelligence_datafile.py.10. Fixes
ShareUsage.__del__now callsthread_pool.shutdown(wait=False)every time, where it joined the sending thread when the element had not been closed. The garbage collector can run__del__on a thread that is starting, and the join then never returned, which stoppedtests/test_usage.pyon Python 3.10 until the job's time limit. Closing still sends what is queued, within its five second bound.client_ip.py.ci/write-package-versions.ps1stops a build whose plan gives a package less than another requires. BUG: Require fiftyone_pipeline_core at the version that holds the names four packages import #257 corrects the test's rows, so four packages also require thefiftyone_pipeline_corethis release publishes.[-1]took the last character of the one version string.pipeline/fiftyone_pipeline_engines_fiftyone/src/fiftyone_pipeline_engines_fiftyone/share_usage.py,ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/client_ip.py. (3) fivesetup.pyfiles (both on-premise packages,fiftyone_devicedetection_cloud,fiftyone_pipeline_cloudrequestengineandfiftyone_pipeline_engines),ci/write-package-versions.ps1, twotox.inifiles. (4)ci/get-next-package-version.ps1.test_share_usage_release.py(new), which holds a send, releases the element on a thread of its own and checks that the release returns while the send is held. (2)test_usage.py,test_client_ip.py. (3)ci/write-package-versions.Tests.ps1,pipeline/fiftyone_pipeline_engines/tests/test_package_requirements.py. (4)ci/get-next-package-version.Tests.ps1.11. The release plan, CI and workflows
tox.inino longer release a package (Release a package only for a change that counts, leaving out documentation, tests, examples and manifest metadata #60), andci/packages.ps1then takes the release plan from common-ci'ssteps/release-plan.ps1in place of its own copy (Use common-ci's release plan in place of this repository's copy #47).mainselected every product. macOS and the performance tests run only forrcand releases.ci/*.Tests.ps1on a pull request or push that changesci/or any file under.github/workflows.allow-early-releasefor common-ci's check that refuses a release within a week of the last.rc, so a 51Did change meets the live cloud before it merges..githubfolders GitHub never runs are removed, and the example assets update moves to the root.contents: readandpull-requests: read, because the shared check asks for both and a called workflow can only be given what its caller has.CLOUD_STAGING_ENDPOINTnames, which servesHumanConfidenceSource, with the key inRESOURCE_KEY_BESPOKE_STAGING. Both names are used by CI only, so they carry no_51DEGREES_prefix, and only the new Cloud Human Confidence Tests workflow sets them. The workflow runspython -m pytest -m stagingnightly, on demand and on pull requests intomainandrcthat change the example, its tests, the files those tests import or the files the install step uses. The workflow fails when a name is empty, when a test is skipped, and withNo staging test ranwhen pytest selects none. With no staging names set, as in the shared build, the two tests skip.ci/packages.ps1,ci/packages.json,ci/release-plan-filter.ps1,ci/release-plan-filter.py. (2)ci/select-options.ps1,ci/packages.ps1,ci/dispatch.ps1,.github/workflows/. (3) to (6).github/workflows/, withci-script-tests.ymlfor (3), andci/fetch-assets.ps1and the product.github/folders for (6). (7) the productci/run-performance-tests.ps1,ip-intelligence/fiftyone_ipintelligence_examples/performance-tests/. (8) the four productci/run-integration-tests.ps1. (9).github/workflows/only-rc-into-main.yml. (10)ci/run-integration-tests.ps1,ci/publish-package.ps1and the same two scripts in each product'sci/. (11).github/workflows/cloud-human-confidence.yml(new),test_cloud_humanconfidence_web.py,ci/check-environment-variable-names.ps1.ci/packages.Tests.ps1,ci/dispatch.Tests.ps1. (2)ci/select-options.Tests.ps1. (7)ci/device-detection-performance.Tests.ps1,ci/ip-intelligence-performance.Tests.ps1. (8)ci/run-integration-tests.Tests.ps1. (9) the Only rc into main check. (10)ci/common-ci-options.Tests.ps1(new), which checks that no CI script declares Keys and that each call to a common-ci script passes only the parameters that script declares. (11)ci/key-names.Tests.ps1, which checks that only the new workflow sets the two names, that a failed test fails the step, and that eachpull_requestpath without a wildcard is a file in the checkout. (3) to (6) are shown by the workflow runs their pull requests name.12. Examples
None of these changes a published package.
_51DEGREES_RESOURCE_KEYand linking to where a key is created, and the two web examples print their Find out more section when they stop early.HumanConfidenceSourceby name, expect a source only from a key that carries one and accept the level Unknown.HardwarePlatform.Profiles, with a link to create a key that does, where each printed a "No device profiles were returned" line under every heading. The decision comes from the key's accessible properties and never from an empty result, and a cloud service that cannot answer ends the example with that failure.ExampleUtils.get_profilesandExampleUtils.get_no_profiles_message, which only these two examples called, are removed.examples/folders of the other packages, withtaclookup_console.py,nativemodellookup_console.pyandexample_utils.pyinfiftyone_devicedetection_examplesfor (8).test_cloud_examples_without_key.py,test_examples_without_key.py,test_cloud_mixed_without_key.py,test_creator_context_without_key.py. (2)test_find_out_more.py. (3)test_examples_without_settings.py,test_package_gettingstarted_from_root.py,test_datafiledownload.py,test_onpremiseperformance.py. (4)test_simple_flow_element_example.py,test_simple_onpremise_engine_example.py,test_simple_cloud_engine.py. (5)test_web_examples_hand_over_request.py,test_usage_sharing_comments.py,test_shareusage_certificate_checks.py. (6) the*_port*.pytests. (7)test_cloud_humanconfidence_web.py,test_cloud_humanconfidence_web_offline.py,test_cloud_humanconfidence_web_port.py. (8)test_cloud_lookups_without_hardware.py(new), which runs each example against a stand-in for the cloud service, andtest_cloud_taclookup_consoleandtest_cloud_nativemodellookup_consoleintest_cloudexamples.py, which now require a device with a vendor and a model for each value looked up.13. Tests
_51DEGREES_CLOUD_ENDPOINT, thenhttps://cloud.51degrees.com/api/v4/. Four tests expected the public service whatever the variable held, so a newtests/classes/endpoint.pygives each test the address that order gives.hardware_lookup_output.pywith tests of its own that need no key.test_share_usage_pause.py,test_data_model.py,test_pipeline_properties.py,test_pipeline_configuration.py,test_share_usage_held_rules.py,test_keys_and_property_list.py. (2)test_usage.py,test_usagesharing_example.py,location/tests/test_web_example.py. (3)test_javascriptbuilder_minify_performance.py. (4)test_cloudresponse.py,test_credentials.py, andtestConfigEndPoint_BlankEnvironmentVariableandtestConfigEndPoint_EnvironmentVariableWithoutSlashintest_cloudrequestengine.py. (5)test_cloud_lookups_without_hardware.py,test_hardware_lookup_output.py. (6)known_address.py(new),test_examples.pyandtest_cloudgettingstartedweb.pyinip-intelligence/fiftyone_ipintelligence_examples/tests/.14. Documentation and housekeeping
51degrees.com/configure, in READMEs, comments, example output and the package messages.@raiseline in its docstring, in the core, engines and Cloud Request Engine packages.context7.jsongives the repository's title and description to the Context7 documentation index.context7.json. (5).github/workflows/nightly-pipeline.yml.test_documented_errors.pyin each of the three packages. The others change no code.Breaking changes
_51DEGREES_CLOUD_ENDPOINTforFOD_CLOUD_API_URL,cloud_endpointandCLOUD_ENDPOINT,_51DEGREES_CLOUD_REQUEST_ORIGINforcloud_request_origin,_51DEGREES_DD_PATHfor51DEGREES_DD_PATH,_51DEGREES_IPI_PATHforIPINTELLIGENCEDATAFILE,_51DEGREES_LICENSE_KEYforLICENSE_KEYandlicense_key,_51DEGREES_RESOURCE_KEYforRESOURCE_KEYandresource_key, and_51DEGREES_RUN_PERFORMANCE_TESTSforrun_performance_tests.Constants.MESSAGE_OLD_ENDPOINT_VARIABLEis gone (Stop reading the deprecated environment variable names #251).fiftyone_pipeline_corethis release publishes, and four the matchingfiftyone_pipeline_enginesorfiftyone_pipeline_cloudrequestengine, so drop a lower pin before upgrading (Require the version of each package that holds the names imported #231, BUG: Require fiftyone_pipeline_core at the version that holds the names four packages import #257).flow_elementsandflow_elements_display_listare tuples, so comparelist(pipeline.flow_elements). Changing them raises, andpickleandcopy.deepcopyrefuse a Pipeline (Hold a built Pipeline's elements in collections that cannot be changed #184).FlowData.datais not adict, so callflowdata.data.copy()for one. Removing Element Data raisesTypeError, and a view keeps the list it saw (Keep a Flow Data's Element Data in a linked list, added with no lock #250).process()and a write to finished Element Data (Refuse writes to a finished Flow Data and to finished Element Data #247, BUG: Refuse writes through a view of a finished Flow Data's Element Data #256).setheader_propertiesis a copy (Keep the Set Headers Element's SetHeader properties for each Pipeline #185).KeyError(Let the JSON Builder take delayed execution information once an element's properties are known #179).AspectPropertyValue(value="noValue")holds "noValue" (Read the text "noValue" given as a value as a value #173).getreturnedNone(Give the released missing property messages again, and share a parameter only when it starts with 51D_ or the Pipeline uses it #246).ValueError. AddShareUsagelast, and upgradefiftyone_pipeline_corewith the Device Detection and IP Intelligence packages (Run usage sharing last and refuse a Pipeline that puts it elsewhere #245).51D_nor is accepted by a Flow Element is never shared, andquery_whitelistandshare_all_query_string_parametersdo nothing. Withshare_all=Truea cookie that does not start51D_is not shared (Share every query value by default, and no cookie but 51D_ ones #201, Give the released missing property messages again, and share a parameter only when it starts with 51D_ or the Pipeline uses it #246).header_blacklistgiven as a string is split at commas, and reads back as a list (Read usage sharing's lists from a comma-separated string, as a configuration file gives them #183).Packageelements, so a reader ties records together by the newProcessId(Write a process identifier on every usage sharing record, the invariant values in the first record and once an hour, and a Package element for every 51Degrees package #193). An element is named by its key's prefix in lower case (Describe the Pipeline's Evidence, and read Evidence keys in any case #139), and a sequence that is not a whole number or digits is left out (Count only a whole number or digits as the sequence in usage sharing #234).CloudRequestEnginesends two requests, and a refused key raisesCloudRequestExceptionthen (Discover the cloud Properties and Evidence keys when the Cloud Request Engine is built #147).timeout_secondsis set, and a replacedrequests.requestmust accepttimeout(Give the cloud request engine's requests a timeout #177).flowdata.get("cloud-response"), ascloudis deprecated, andflowdata.dataholds the data under both keys (Read the cloud request engine's data under cloud-response #178).errorsentry is raised with its text alone, and several raise oneCloudRequestExceptionwith each inexceptions(Raise each entry of the cloud service's errors list as its own error #204).Header.User-Agent(Describe the Pipeline's Evidence, and read Evidence keys in any case #139).restricted_propertiesas a string is a comma-separated list, and the caller's list is left alone (Read a comma-separated property list, and the Evidence keys after every refresh, in both on-premise engines #143).Device Metricsand componentMetrics. UserAgents is astring[](Give the match metric Properties the specification's metadata, and list each matched User-Agent once #145) and[]withupdate_matched_useragent=False(Give UserAgents as an empty list when the option is off, and send no usage data from the web example test #168), andmethodis a name such asPERFORMANCE(Give the Method match metric as the name of the match method #133).evidence_keys_listor a used filter'slistis no longer seen, so set a new list (Keep each engine's evidence key filter and look keys up in a set #180).update_from_memorycalls no update complete callback, raisesDataUpdateExceptionfor a failed refresh, and turns a failed write into a warning and a refresh from the bytes (Give the result of an update from memory to its caller alone #169, Refresh the engine from the bytes given when an update from memory cannot write the data file #175). Upgradefiftyone_pipeline_engineswith the on-premise packages (Refresh the engine from the bytes given when an update from memory cannot write the data file #175).update_data_fileraises a failed check to its caller (Raise a failed programmatic update check to its caller #188). A refresh is tried 10 times andAUTO_UPDATE_TIMEOUTcan be reported (Try a refresh 10 times and wait for a watched file, as .NET does #220), and the moduleREFRESH_TRIESwarns as deprecated (Keep the module level REFRESH_TRIES readable, deprecated #230). A callback can run during the Pipeline build for a failed update on start-up (Report how the update on start-up ended, and schedule the next check #233).null51Did factor isFactorResult.MISMATCH, and a Payload of 1 to 4 bytes naming version 1, 2 or 3 reportsUNSUPPORTED_PAYLOAD_VERSION(Read a null 51Did factor as a Mismatch, and refuse a short Payload for its version #141). Thefod_idanddid_clientlayout names warn as deprecated, so use the accessors onFodId(Deprecate the layout names the 51Did fod_id and did_client modules offer #174)._51DEGREES_EXAMPLE_HTTP_PORTSsets another, andPORTis no longer read (BUILD: Read every setting under one _51DEGREES_ name #259).LEGACY_RESOURCE_KEY_ENV_VAR,LEGACY_LICENSE_KEY_ENV_VAR,ENDPOINT_ENV_VAR,DATA_FILE_ENV_VAR,ORIGIN_ENV_VARand the IP IntelligenceRESOURCE_KEY_ENV_VARon the example helpers,UPDATE_EXAMPLE_LICENSE_KEY_NAMEin the data file update examples,Constants.FOD_CLOUD_API_URLinfiftyone_pipeline_cloudrequestengine,did_client.ENDPOINT_VARIABLEinfiftyone_pipeline_didandUA_FILE_NAMEinfiftyone_devicedetection_shared. Use the constant beside each.KeyUtils.get_named_keyreads the name it is given and no other, andperformance.pytakes--evidence_filein place of--user_agents_file(BUILD: Read every setting under one _51DEGREES_ name #259).Still open
getPublishedTimeFromFile, which 61120767 has (FIX: Read a data file's published date in the C++ engines 51degrees-cxx#228), so it generates the SWIG wrappers again with the change. The specification's "Automatic update from File" section says a watched file is used whatever its date, which disagrees with newFileAvailable. Until the specification settles the point, FIX: Load an updated data file only when it was published later #282 differs from FIX: Load a watched or downloaded data file only when its data is newer 51degrees-dotnet#336 and FIX: Read published dates as midnight and skip files that are not newer 51degrees-java#242 in three cases, being a header that cannot be read, a download before any data is loaded, and a header with no date.rcstill builds with the switches that turn some warnings off, and MSVC still prints D9025 for the/W3setuptools passes (section 9, item 3). Whether-Werrorand/WXapply to every source install of the two packages, so that a newer compiler with a new warning stops a customer's build, or only to the builds 51Degrees runs, is still to be decided.ci/fetch-assets.ps1set_51DEGREES_DD_PATHor_51DEGREES_IPI_PATHto the Lite file fetched, in the process the tests run in.rc.cloudrequestengine.py. Acloud_endpointsetting is used whenever the setting is given, so a blank setting never falls through to_51DEGREES_CLOUD_ENDPOINT, and only an empty variable counts as blank, so a variable of spaces is used as an address. No pull request changes either yet.fiftyone_pipeline_did.fod_idofferingTerms#213 removing deprecated 51Did names, Name the cloud request engine's data and its raw JSON as the specification does #214 the cloud data key, Remove the temporary copy of a data file that cannot be moved over the data file #215 a temporary copy left behind, Make minifying the JavaScript cheaper, or cut it down #216 the cost of minifying, Say what each user-facing function of the other packages raises #217 what the other packages raise, Give CloudRequestFailed for a property read after a failed cloud request #222CloudRequestFailed, Answer AUTO_UPDATE_NOT_NEEDED for a data file given as None #226 a data file given asNone.test_value_types.Closes #11. Closes #18. Closes #51. Closes #105. Closes #149. Closes #150. Closes #155. Closes #156. Closes #157. Closes #159. Closes #160. Closes #161. Closes #162. Closes #163. Closes #166. Closes #170. Closes #171. Each was closed by a pull request into
rc, which GitHub does not act on until the change reachesmain.