Repository navigation
Release candidate - #240
Draft
jwrosewell wants to merge 173 commits into
Draft
jwrosewell wants to merge 173 commits into
jwrosewell wants to merge 173 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
Results instances are not thread-safe, so reads take no lock. Reviewed at def9267 with no high finding open, and all 3 checks on that head passing.
) Refuse writes to a finished Flow Data and to finished Element Data. Reviewed at 2bc91de with no high finding open, and all 3 checks on that head passing.
Test and document the on-premise packages on free-threaded Python. Reviewed at c7a07ee with no high finding open, and all 9 checks on that head passing.
Reuse Element Data through a bounded pool for each Flow Element. Reviewed at 04a81a2 with no high finding open, and all 3 checks on that head passing.
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.
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.
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 127 pull requests have merged intorc, whose head is 435ae8cd.The on-premise engines build against the 51degrees-cxx commit under review in 51degrees-cxx#191, and the cxx release is reviewed first. The
cxxsubmodule here is 699a9789, the head of cxxrcsince 51degrees-cxx#212 merged into it at 09:41 UTC on 23 November, from the cxx review. It moved there from 560de81e, the head before, in #269, which changes only the submodule line. #212 changes one C++ file that the Device Detection engine compiles,src/dd/hash/ValueMetaDataCollectionForProfileHash.cpp, which finds a profile's value by name. Once the cxx release tags its head, the submodule moves to the tag.Most of the changes bring the packages into line with the 51Degrees specifications. The groups run from packaging and CI to the engines, data updates, examples, tests and documentation. In each group the numbers in the Files, Tests and Pull requests lines match its numbered items.
Changes
1. Packaging and the release plan
tox.inino longer release a package, andci/packages.ps1then takes the release plan from common-ci'ssteps/release-plan.ps1in place of its own copy.[-1]took the last character of the one version string.ci/write-package-versions.ps1stops a build whose plan gives a package less than another requires. The second pull request corrects the test's rows after the names in them were removed, so four packages also require thefiftyone_pipeline_corethis release publishes.ci/packages.ps1,ci/packages.json,ci/release-plan-filter.*,AGENTS.md. (2)ci/get-next-package-version.ps1. (3) sixsetup.pyfiles,ci/write-package-versions.ps1, twotox.inifiles.ci/packages.Tests.ps1,ci/dispatch.Tests.ps1. (2)ci/get-next-package-version.Tests.ps1. (3)ci/write-package-versions.Tests.ps1,pipeline/fiftyone_pipeline_engines/tests/test_package_requirements.py.2. CI and workflows
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, so a new or changed workflow meets the key name tests of group 3.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 intorc..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.ci/select-options.ps1,ci/packages.ps1,ci/dispatch.ps1,.github/workflows/. (2) to (5).github/workflows/, withci-script-tests.ymlfor (2), andci/fetch-assets.ps1and the product.github/folders for (5). (6) the productci/run-performance-tests.ps1,ip-intelligence/fiftyone_ipintelligence_examples/performance-tests/. (7) the four productci/run-integration-tests.ps1. (8).github/workflows/only-rc-into-main.yml. (9)ci/run-integration-tests.ps1,ci/publish-package.ps1and the same two scripts indevice-detection/ci,ip-intelligence/ci,location/ciandpipeline/ci.ci/select-options.Tests.ps1. (6)ci/device-detection-performance.Tests.ps1,ci/ip-intelligence-performance.Tests.ps1. (7)ci/run-integration-tests.Tests.ps1. (2) to (5) are shown by the workflow runs their pull requests name. (8) the Only rc into main check on its pull request. (9)ci/common-ci-options.Tests.ps1(new), which checks that no CI script declares Keys, that each call to a common-ci script passes only the parameters that script declares, and that the integration step runs every product in a build's options, with the stand-ins inci/key-names.Tests.ps1andci/run-integration-tests.Tests.ps1losing Keys.3. Environment variable names and keys
_51DEGREES_names in common-ci's list are read, by the packages, examples and tests._51DEGREES_name. Workflows that call common-ci pass their keys on whole, 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 it is not set. The web examples listen on_51DEGREES_EXAMPLE_HTTP_PORTS, or on 5151. The browser contract run gives the example's address and language as_51DEGREES_EXAMPLE_URLand_51DEGREES_EXAMPLE_LANG, andci/packages.ps1finds common-ci through_51DEGREES_COMMON_CI_DIR. 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 defines._51DEGREES_RESOURCE_KEY_*name is an organization secret and none is an organization variable, so avars.read gets an empty value.cloud-51did.ymlreads_51DEGREES_RESOURCE_KEY_51DIDand_BASICassecrets., andAGENTS.md, the four product CI READMEs and the warnings in theirrun-integration-tests.ps1call the resource keys organization secrets._51DEGREES_CLOUD_ENDPOINTstays an organization variable. The first pull request read these keys from variables and the second replaced it.pipeline/fiftyone_pipeline_cloudrequestengine/,pipeline/fiftyone_pipeline_did/, the examples,ci/check-environment-variable-names.ps1. (2).github/workflows/, the productci/folders,tox.inifiles. (3)ci/check-environment-variable-names.ps1,ci/packages.ps1, the four productci/folders, bothkey_utils.py, the examples'example_utils.pyand webapp.pyfiles,onpremise/performance.py,pipeline/fiftyone_pipeline_cloudrequestengine/src/fiftyone_pipeline_cloudrequestengine/constants.py,pipeline/fiftyone_pipeline_did/src/fiftyone_pipeline_did/did_client.py,.github/workflows/,AGENTS.md. (4).github/workflows/cloud-51did.yml,AGENTS.md, the four productci/run-integration-tests.ps1andci/README.mdfiles.ci/check-environment-variable-names.Tests.ps1,test_environment_names.py. (2)ci/key-names.Tests.ps1,ci/run-integration-tests.Tests.ps1. (3)ci/check-environment-variable-names.Tests.ps1,ci/key-names.Tests.ps1, bothtest_environment_names.py,test_onpremiseperformance.py, the web example port tests,test_did_client.py,pipeline/fiftyone_pipeline_did/tests/test_live_cloud.py. (4)ci/key-names.Tests.ps1, which expects both keys from the organization secrets of their own names, and whoseread no _51DEGREES_RESOURCE_KEY name as an organization variable in any workflowfails on avars.orvars[...]read of any resource key in any workflow.4. Pipeline core
Pipeline.get_evidence_key_filter(), made once when the Pipeline is created. The first pull request also makes usage sharing and on-premise Device Detection read Evidence keys in any letters.server.request-query, the query string whole and undecoded.withblock.pipeline/fiftyone_pipeline_core/, withshare_usage.pyanddevicedetection_onpremise.pyfor (2), the on-premise packages for (4),pipeline/fiftyone_pipeline_engines/engine.pyfor (8) and the web examples for (9).tests/. (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,test_finished_writes.py. (4)test_element_data_pools.py. (5)test_web_integration_elements.py,test_setheader.py. (6)test_setheader.py,test_jsonbundler_pipelines.py,test_jsonbundler_delayexecution.py. (7)test_request_line.py. (8)test_engines.py. (9)test_elementdata_documentation.py,test_flow_data_threads_documentation.py.5. Properties and values
pipeline/fiftyone_pipeline_core/aspectproperty_value.py. (2) the missing property services of the engines, cloud and on-premise packages.test_aspectproperty_value.py. (2)test_missing_property_raises.pyin both on-premise packages.6. 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. The first pull request followed specifications#155, sharing every parameter by default, and the third followed specifications#191.query_whitelistandheader_blacklistgiven as one string are split at commas, the form a configuration file gives.ServerIP, looked up in the background, reads the session id and sequence in any letters, and names the elements of the request's Pipeline.int()turned 2.0,Trueand signed text into numbers, and no Error is logged.pipeline/fiftyone_pipeline_engines_fiftyone/, withpipeline/fiftyone_pipeline_core/and the product builders for (1), the missing property services for (2), andip-intelligence/fiftyone_ipintelligence_onpremise/client_ip.pyfor (7).pipeline/fiftyone_pipeline_engines_fiftyone/tests/unless named. (1)test_share_usage_position.py,test_usage_sharing_last.py. (2)test_share_usage_rules.py,test_share_usage_evidencekeyfilter.py,test_usage.py. (3)test_share_usage_lists.py. (4)test_share_usage_accepts_no_evidence.py. (5)test_share_usage_record_fields.py,test_share_usage_invariant_values.py,test_share_usage_packages.py,test_share_usage_pipelines.py. (6)test_share_usage_record_fields.py. (7)test_usage.py,test_client_ip.py.7. Cloud Request Engine and cloud engines
warningsentry is given as a warning.timeout_secondssays otherwise, where a service that never answered held the build or a request for ever.cloud-response, as the specification names it, as well as undercloud.errorslist is its own error.discovery_state(), for a host that starts often.profile.hardwarevendoras device data is.CountriesTranslationCloudreads the translated country names, withWeightedCloudEngineand a console example._51DEGREES_CLOUD_ENDPOINT, thenhttps://cloud.51degrees.com/api/v4/. Four tests expected the public service and failed when CI set the variable to another service, so a newtests/classes/endpoint.pygives each test the address that order gives, and two new tests cover a blank variable and a variable without a trailing slash.pipeline/fiftyone_pipeline_cloudrequestengine/, withdevice-detection/fiftyone_devicedetection_cloud/for (7) and (8),pipeline/fiftyone_pipeline_engines/aspectdata_dictionary.pyfor (8) andip-intelligence/fiftyone_ipintelligence_cloud/for (9).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_discovery_state.py. (6)test_cloudengine_pipelines.py. (7)test_hardwareprofile_cloud.py. (8)test_aspectdata_dictionary.py. (9)test_countries_translation_cloud.py. (10)test_cloudresponse.py,test_credentials.py, andtestConfigEndPoint_BlankEnvironmentVariableandtestConfigEndPoint_EnvironmentVariableWithoutSlashintest_cloudrequestengine.py.8. On-premise engines
refreshData()again. The fifth moves it the ten commits on to 560de81e, and the sixth to 699a9789, the head of cxxrcafter the cxx review, each changing only the submodule line, so the SWIG wrappers here are unchanged.restricted_propertiesas a comma-separated string, and keep their Evidence key filter until the keys change.methodas a name. A newget_components()lists the Metrics component.device-detection/fiftyone_devicedetection_onpremise/andip-intelligence/fiftyone_ipintelligence_onpremise/, withcxxfor (1),pipeline/fiftyone_pipeline_core/elementdata.pyand.github/workflows/for (2),pipeline/fiftyone_pipeline_engines/engine.pyfor (4), and the cloud and core filters for (5).test_swig_data_threads.py,test_free_threaded.py,ci/free-threaded-python.Tests.ps1. (3)test_processing_during_refresh.py. (4)test_engine_in_pipelines.py. (5)test_keys_and_property_list.py,test_basiclist_evidence_keyfilter.py. (6)test_properties.py,test_update_matched_useragent.py,test_devicedetection.py. (7)test_licence_key_rule.py,test_watcher_without_licence_key.py.9. Data updates
DataFilerefreshes its engine with its own identifier when the service gives none.REFRESH_TRIESstays as deprecated, and the update on start-up schedules the next check.AvailableUris, the service repeats its first request to the configured address withProductadded, naming the product of the loaded data file, which each data file names from its engine's tier (V4TAC for the TAC file, V4Enterprise for the Device Detection Enterprise file, IPIV4Enterprise for the IP Intelligence Enterprise file, 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 (#268). FIX: Ask for the product of the data file in use when a license key holds several #268 first followed the URI the distributor offered, and #270 changed that to repeat the request, as the data updates specification is being changed to say (specifications#194).data_update_product_type, when set, names the product on every request, the first included, and a 300 to such a request is not followed. With none set, noProductparameter is sent. Both update examples name a product only when given one as their third argument, and the Device Detection example's test passes V4TAC, whichdevice-detection/ci/fetch-assets.ps1also links under its own name.pipeline/fiftyone_pipeline_engines/, chieflydatafile_update_service.py, with the on-premise data file classes for (5) and the on-premise engines and data update examples for (7).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) the 11SeveralProductsTestsintest_datafile_update_http.py, against a local server that answers as the distributor does,test_data_update_product.pyin both on-premise packages,test_datafileupdate_product.pyin both examples packages, andtest_onpremise_datafileupdate_console.10. 51Did
nullfactor reads as a Mismatch, and a short Payload is refused for its version.fod_idanddid_clientoffered are deprecated, read through the private_layoutmodule.pipeline/fiftyone_pipeline_did/.test_fodid.py,test_did_client.py.11. Derived properties
fiftyone_pipeline_derivedpropertypackage offers aDerivedPropertyElementthat runs every script of derived-properties, taken as a submodule, so a Python Pipeline can offer HumanConfidence and IsGdpr. It is not published yet.pipeline/fiftyone_pipeline_derivedproperty/,.gitmodules,ci/packages.json.test_shared_cases.py,test_built_in_scripts.py,test_element.py. (2)test_one_pipeline.py. (3)test_derived_property_example.py.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, because keys made before that property existed listHumanConfidencealone and the source went unchecked. They check that the Bespoke key gets the sourcePassiveand a plain level, and that a key in_51DEGREES_RESOURCE_KEY_BASICgets no source.examples/folders of the other packages.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, includingtest_passive_source_and_level_come_from_the_cloudandtest_a_basic_key_gets_no_source.13. Tests and test infrastructure
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.14. Documentation
AGENTS.mdpoints at common-ci's list of environment variable names, says a test that fails on timing is fixed, and says the IP Intelligence example runs on the Lite file.51degrees.com/configure, in READMEs, comments, example output and the package messages.context7.jsontells Context7 how to list the repository.AGENTS.md. (2) 40 files. (3) docstrings in three packages. (4)context7.json.test_documented_errors.pyin each of the three packages. The others change no code.Housekeeping
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 (#251).fiftyone_pipeline_corethis release publishes, and four the matchingfiftyone_pipeline_enginesorfiftyone_pipeline_cloudrequestengine, so drop a lower pin before upgrading (#231, #257).flow_elementsandflow_elements_display_listare tuples, so comparelist(pipeline.flow_elements). Changing them raises, andpickleandcopy.deepcopyrefuse a Pipeline (#184).FlowData.datais not adict, so callflowdata.data.copy()for one. Removing Element Data raisesTypeError, and a view keeps the list it saw (#250).process()and a write to finished Element Data (#247, #256).setheader_propertiesis a copy (#185).KeyError(#179).AspectPropertyValue(value="noValue")holds "noValue" (#173).getreturnedNone(#246).ValueError. AddShareUsagelast, and upgradefiftyone_pipeline_corewith the Device Detection and IP Intelligence packages (#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 (#201, #246).header_blacklistgiven as a string is split at commas, and reads back as a list (#183).Packageelements, so a reader ties records together by the newProcessId(#193). An element is named by its key's prefix in lower case (#139), and a sequence that is not a whole number or digits is left out (#234).CloudRequestEnginesends two requests, and a refused key raisesCloudRequestExceptionthen (#147).timeout_secondsis set, and a replacedrequests.requestmust accepttimeout(#177).flowdata.get("cloud-response"), ascloudis deprecated, andflowdata.dataholds it under both keys (#178).errorsentry is raised with its text alone, and several raise oneCloudRequestExceptionwith each inexceptions(#204).Header.User-Agent(#139).restricted_propertiesas a string is a comma-separated list, and the caller's list is left alone (#143).Device Metricsand componentMetrics, UserAgents is astring[](#145) and[]withupdate_matched_useragent=False(#168), andmethodis a name such asPERFORMANCE(#133).evidence_keys_listor a used filter'slistis no longer seen, so set a new list (#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 (#169, #175). Upgradefiftyone_pipeline_engineswith the on-premise packages (#175).update_data_fileraises a failed check to its caller (#188). A refresh is tried 10 times andAUTO_UPDATE_TIMEOUTcan be reported (#220), and the moduleREFRESH_TRIESwarns as deprecated (#230). A callback can run during the Pipeline build for a failed update on start-up (#233).null51Did factor isFactorResult.MISMATCH, and a Payload of 1 to 4 bytes naming version 1, 2 or 3 reportsUNSUPPORTED_PAYLOAD_VERSION(#141). Thefod_idanddid_clientlayout names warn as deprecated, so use the accessors onFodId(#174)._51DEGREES_EXAMPLE_HTTP_PORTSsets another, andPORTis no longer read (#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(#259).Still open
rc.cxxat 699a9789, was cancelled at 12:29 UTC whenrcmoved, with 14 of the 15 Build and Test entries passed and Ubuntu Python 3.10 still running, which it had been since 10:32 UTC.test_onpremise_datafileupdate_console, where the data update service refused the request because the example asked for V4Enterprise and the License Key CI gives it holds the TAC data file. Section 9 item 8 changes that test to ask for V4TAC.pipeline/fiftyone_pipeline_cloudrequestengine/src/fiftyone_pipeline_cloudrequestengine/cloudrequestengine.py. Acloud_endpointsetting is used whenever it 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 this yet.CloudRequestFailed, #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.