Repository navigation
Release candidate - #190
Draft
jwrosewell wants to merge 304 commits into
Draft
jwrosewell wants to merge 304 commits into
jwrosewell wants to merge 304 commits into
Conversation
…#137) Two gaps against the examples rule, that every example builds and runs both from a fresh clone and against the published packages, found in the audit of the examples on 13 November.
Tests only. The web integration adds the Sequence Element, the JSON Builder Element, the JavaScript Builder Element and the Set Headers Element where the application's Pipeline lacks them, in the positions the specification gives, but the only test checked that each one is there, not where. This adds a test of the positions.
…nstructor out of reach (#157) Tests only. Three rules of the 51Did specification limit what `FodId` offers a caller, and the Java package meets all three, but no test would fail if a later change broke one of them. This adds those tests. It is the follow-up that [#141](#141) names under What remains.
…ence API example (#159) The IP Intelligence API example answers in JSON, so on the free Lite data file a caller saw the three registration properties and was never told what the Enterprise data file adds, where to ask for it, or where to find out more.
…its verify (#161) Tests only. `DataUpdateServiceTests.DataUpdateService_Register_AutoUpdateConfiguredInterval` fails about once in 600 runs, and it failed `Ubuntu_Java_17` in full build [43667464820](https://github.com/51Degrees/51degrees-java/actions/runs/43667464820) of [#156](#156), which changes nothing in `pipeline.engines`. This fixes the cause rather than leaving it to a re-run, which is the rule for a test that fails on timing. [#122](#122), which is open and not yet merged, adds that rule to AGENTS.md.
…ows will not write a file a reader has mapped
…e case of its prefix
…aScript Builder's parameters
…143) The Device Detection and IP Intelligence cloud engines add an entry to the Element Data for every property in their metadata, whether or not the cloud response holds it ([`DeviceDetectionCloudEngine` line 148](https://github.com/51Degrees/51degrees-java/blob/b33daa0f32964dbf5b5f77ba5e947ef1ac75c55d/device-detection/device-detection.cloud/src/main/java/fiftyone/devicedetection/cloud/flowelements/DeviceDetectionCloudEngine.java#L148) and [`IPIntelligenceCloudEngine` line 160](https://github.com/51Degrees/51degrees-java/blob/b33daa0f32964dbf5b5f77ba5e947ef1ac75c55d/ip-intelligence/ip-intelligence.cloud/src/main/java/fiftyone/ipintelligence/cloud/flowelements/IPIntelligenceCloudEngine.java#L160) at `rc` b33daa0). A property the response leaves out therefore reads as a value that "has no value" with a null message, where it should throw `PropertyMissingException` with a message saying why the property is not there.
…5 seconds (#147) Closing the Usage Sharing Element waits up to 5 seconds for the data in its queue to be sent. When that time runs out, `managedResourcesCleanup` logs "Could not send final data on close down" and calls `shutdownNow` on the element's executor ([`ShareUsageBase` lines 753 to 755 at rc b33daa0](https://github.com/51Degrees/51degrees-java/blob/b33daa0f32964dbf5b5f77ba5e947ef1ac75c55d/pipeline/pipeline.engines.fiftyone/src/main/java/fiftyone/pipeline/engines/fiftyone/flowelements/ShareUsageBase.java#L753-L755)). `shutdownNow` only interrupts the sending thread. A send that is waiting on the network carries on, and the thread then goes back to its loop, which keeps sending while the element is stopping and the queue is not empty ([`ShareUsageElement` line 489](https://github.com/51Degrees/51degrees-java/blob/b33daa0f32964dbf5b5f77ba5e947ef1ac75c55d/pipeline/pipeline.engines.fiftyone/src/main/java/fiftyone/pipeline/engines/fiftyone/flowelements/ShareUsageElement.java#L489)). So after `close()` has returned, the element can go on sending everything that was queued, for as long as the remote service takes to answer each message, and nothing says how much was left.
… in AGENTS.md what a cloud example does with no key
…device data device-detection-specification/pipeline-elements/device-detection-on-premise.md line 327 at 706de1f0: Aspect Data that reads its values from a ResultsHash instance MUST let only one thread at a time read from its results. Covers a match metric (DeviceId), a typed property read (IsMobile) and the public getValues. DD-18.
device-detection-specification/pipeline-elements/device-detection-on-premise.md line 327 at 706de1f0: Aspect Data that reads its values from a ResultsHash instance MUST let only one thread at a time read from its results. The lock in DeviceDataBaseOnPremise.tryGetValue covered only the typed getters. The check that the results have a property, the public getValues, the match metrics (which can walk every graph not yet walked) and close read the results with no lock. DeviceDataHashDefault now holds one lock of its own for each of them. DD-18.
…ves it device-detection-specification/pipeline-elements/device-detection-on-premise.md line 452 at 706de1f0: Metadata for these Properties MUST be added, as they will not be included in the metadata exposed by the native code. Checks the order, Category, Available With, Component, type and default of each metric, over a native engine that is a mock with no properties. The default of the list-valued UserAgents is left out, as how it is described is an open question. DD-20.
…e value device-detection-specification/pipeline-elements/device-detection-on-premise.md line 452 at 706de1f0: Metadata for these Properties MUST be added, as they will not be included in the metadata exposed by the native code. The table gives Component = "Metrics" for every match metric, where each had no component, and gives Method the type string, where it was marked as a list. The engine now makes a Metrics component once, holding the seven metrics, and each metric names it. The default of UserAgents is unchanged while how a list-valued metric is described is an open question. DD-20.
device-detection-specification/pipeline-elements/device-detection-on-premise.md line 464 at 706de1f0: Component = "Metrics" - This component MUST also be added to the list of components returned by the Engine. Over a native engine that is a mock with no components. DD-21.
device-detection-specification/pipeline-elements/device-detection-on-premise.md
line 464 at 706de1f0: Component = "Metrics" - This component MUST also be
added to the list of components returned by the Engine.
getComponents gave only the data file's components. It now gives the Metrics
component after them, so getComponent("Metrics") finds it too. The metadata
hash test no longer leaves out the metrics' component, which they now have,
and skips the default profile of Metrics, which has no profiles. DD-21.
… property device-detection-specification/pipeline-elements/device-detection-on-premise.md line 479 at 706de1f0: The Engine MUST be able to give the ids of the profiles that hold a given value of a given Property, such as a TAC or a native model name, through the native code's EngineHash::getProfileIdsForPropertyValue(). One test over a mock native engine. One over the free data file, skipped where the file is not there, checks the ids are ascending and distinct, a value in another case matches nothing, and indexing the property with the Indexed Properties option gives the same ids. DD-22.
Answers device-detection-specification/required-examples.md line 13 at 706de1f0: There MUST be unit tests for examples, to verify that the example remains valid through various code changes. (EX-3)
…s option device-detection-specification/pipeline-elements/device-detection-on-premise.md line 479 at 706de1f0: The Engine MUST be able to give the ids of the profiles that hold a given value of a given Property, such as a TAC or a native model name, through the native code's EngineHash::getProfileIdsForPropertyValue(). The native function was in the SWIG wrapper, but the engine kept its native engine private and nothing called it. DeviceDetectionHashEngine now has getProfileIdsForPropertyValue, which copies the native ids and releases the native vector. The builder has setIndexedProperties, the Indexed Properties option of the configuration table, so a lookup of an indexed property does not read every profile. DD-22.
device-detection-specification/data-model.md line 10 at 706de1f0: All Engines MUST populate data objects that implement Aspect Data as defined in the Pipeline specification. Checks the data type each engine is declared with, and the classes made to hold each engine's data. DD-2.
device-detection-specification/data-model.md line 15 at 706de1f0: Each of these Engines MUST return data that is interface compatible with the others. Checks the on-premise and cloud data are both DeviceData with the same accessors and types, and the cloud hardware lookup gives DeviceData. DD-3.
…shed device-detection-specification/pipeline-elements/device-detection-on-premise.md line 86 at 706de1f0: This MUST be done at start-up and any time the data is refreshed. Over a native engine that is a mock whose keys change between refreshes, so a key only the new data has is accepted after the refresh. Also checks the keys are stored, not read from the native code for each use. DD-11.
The watcher tests wait up to 30 seconds, three of macOS's 10 second polls, and stop as soon as the change arrives. The live cloud tests' engines get a 15 second timeout. Tests only. Head c35cc6e.
Reuse Element Data through an object pool. Reviewed at 2cb7641 with no high finding open, and all 4 checks on that head passing.
Let a cloud result replace one the cache will never serve. Reviewed at 7b884b6 with no high finding open, and all 5 checks on that head passing.
Add the Human Confidence web example. Reviewed at dfc16ac with no high finding open, and all 8 checks on that head passing.
BUILD: Declare the permissions each workflow needs. Reviewed at 8d42e5d with no high finding open, and all 4 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 The guard test now requires _51DEGREES_RESOURCE_KEY_51DID and _51DEGREES_RESOURCE_KEY_BESPOKE to come from the organization variable of the same name, rather than the secret. The Cloud 51Did workflow's comments, step name and error messages, and ci/README.md, now say the resource keys are organization variables and the license keys organization secrets.
BUILD: Give the browser contract suite its _51DEGREES_ names. Reviewed at 4d29621 with no high finding open, and all 6 checks on that head passing.
) * Check that the Human Confidence example gets HumanConfidenceSource The new live test makes the example's passive call against the cloud service named by _51DEGREES_CLOUD_ENDPOINT, naming HumanConfidence and HumanConfidenceSource in the request. The Bespoke key must get the source Passive with a plain level, and the key in _51DEGREES_RESOURCE_KEY_BASIC, which is outside the Bespoke product, must get no source. Each test is skipped when its key is not set. The stand-in cloud test gains an answer with no source and no level, and checks the example reports neither. * FIX: Name HumanConfidenceSource in the example's passive call The cloud answers a request with the properties the Resource Key was saved with, unless the request names others in values. A key saved before HumanConfidenceSource existed holds HumanConfidence alone, so the example's passive call got a level and no source, and the page could not show Passive. The passive call now sends values=derived.humanconfidence, derived.humanconfidencesource, set after the visitor's headers so no header can replace it. The stand-in cloud in HumanConfidenceTest answers with the source only when the request names it, as the service does, and passiveSendsOnlyCloudHeadersAndReadsDerived checks the field. * TEST: Run the example itself in the live Human Confidence test HumanConfidenceLiveTest made a request of its own rather than calling the example, so it could pass while the example got no source. It now starts HumanConfidence with the key in _51DEGREES_RESOURCE_KEY, the name the example reads, and the service in _51DEGREES_CLOUD_ENDPOINT, and asks the example's /passive path with a browser User-Agent. The system property humanConfidenceSource says what the key's answer carries. Passive, the default, needs the source Passive and a plain level. none, for a key whose products don't offer the source, needs no source. The test is skipped when _51DEGREES_RESOURCE_KEY is not set, and when the service's answer to a request naming HumanConfidenceSource has neither a value nor a null reason for it, as then no key can get the source there. The README's Tests section says how to run it. * BUILD: Run the Human Confidence live test with each resource key cloud-human-confidence.yml runs HumanConfidenceLiveTest once for each resource key, setting _51DEGREES_RESOURCE_KEY for the pass, as cloud-51did.yml does for the 51Did tests, and telling the test what the key's answer carries. The pass with _51DEGREES_RESOURCE_KEY_BESPOKE expects Passive, and the pass with _51DEGREES_RESOURCE_KEY_BASIC expects no source. Both keys and _51DEGREES_CLOUD_ENDPOINT are organization variables, and the job receives those three and nothing else. A pass fails when its key is empty, and when the test is skipped, so a run that called no service never shows green. The workflow runs on a pull request that changes the example, nightly, and by hand. ci/README.md lists _51DEGREES_RESOURCE_KEY_BASIC and _51DEGREES_CLOUD_ENDPOINT among the variables.
* REORG: Remove the runtime configuration listing tests * TEST: Check every variable name read against the 51Degrees and platform names The tests of the name check use made-up sample names. Each name read as an environment variable, a system property, an options file placeholder, a workflow secret or variable, or set for the tests by a Maven project file has to start _51DEGREES_ or be a name the platform or a build tool defines. The tests of the workflow that sets the 51Did keys move to their own file, which the CI script tests run. * REORG: Remove the deprecated variable name constants and their tests The Cloud Request Engine, the 51Did client, the IP Intelligence test helpers and the IP Intelligence example helpers each name one variable in one constant. The deprecated getResourceKey(String) overload of the IP Intelligence KeyUtils goes with them, as getResourceKey() reads the same variable. * BUILD: Check that every variable name read is a 51Degrees or platform name The name check reads every tracked file for a name given to getenv or to a System property call, a name on the PowerShell Env: drive, a placeholder in an options file, a secret, variable or env entry of a workflow, and an environment variable or system property a Maven project file reads or gives the tests. Each has to start _51DEGREES_ or be on the short list of names the platform and the build tools define. A name that starts with the digit still fails wherever it is written. * DOC: Describe the variable name rule and the check that keeps it * TEST: Read the IP Intelligence data file for the country translation test from one name The integration test takes its data file from _51DEGREES_IPI_PATH, or from the well known locations when that is not set. * REF: Find common-ci only from where the release scripts are The release scripts find common-ci around this repository or beside it, and no variable names another place. The tests of the publish copy the scripts into a folder laid out as the build lays them out. * TEST: Expect the TAC and native model examples to read the Bespoke resource key The example key helper names the key with every property in BESPOKE_RESOURCE_KEY_VARIABLE, and the two examples name that variable when they have no key. * REF: Name the performance results file with _51DEGREES_PERFORMANCE_JSON The usage sharing overhead test reads the file to write its figures to from the environment variable _51DEGREES_PERFORMANCE_JSON, then from the system property of the same name, which the performance script passes. * TEST: Find a file below the folder _51DEGREES_PROJECT_ROOT names * REF: Read the resource key with every property from _51DEGREES_RESOURCE_KEY_BESPOKE The TAC and native model examples, their tests and the Location tests read the key with every property from _51DEGREES_RESOURCE_KEY_BESPOKE. The example key helper names it in BESPOKE_RESOURCE_KEY_VARIABLE, and the documents name the same variable. * REF: Read the file search root from _51DEGREES_PROJECT_ROOT FileFinder searches below the folder the environment variable _51DEGREES_PROJECT_ROOT names, then the system property of the same name, then the folder Java was started in. The Maven project files give the tests the system property, and the example processes pass it on. * TEST: Expect each key reader to read the environment variable, then the system property The key helpers of the Device Detection and IP Intelligence test helpers and examples read a name from the environment as it is given, and from the system property of the same name when the environment has none. The tests give the readers an environment of their own, because a test cannot set an environment variable. * TEST: Take the test User-Agents from a YAML evidence file * REF: Read each key from the environment variable, then the system property of the same name The key helpers of the Device Detection and IP Intelligence test helpers and examples share one read order. A name is read as it is given. * TEST: Expect each key reader to take one name The example key helpers, the live cloud key readers and the cloud engine example each read a key under one name, so their tests pass and expect a name where they passed and expected a list. * REF: Read the Device Detection test User-Agents from the YAML evidence file The tests take their User-Agents from 20000 Evidence Records.yml, one from each record that has one. The names of the User-Agent list file go from the test helpers, and the build no longer fetches that file. * TEST: Name the example data files with _51DEGREES_DD_PATH and _51DEGREES_IPI_PATH * TEST: Expect the example key helper to find a key under one name with no JUnit on the class path * REF: Name the example data files with _51DEGREES_DD_PATH and _51DEGREES_IPI_PATH The options files of the on-premise examples take the Device Detection data file from _51DEGREES_DD_PATH and the IP Intelligence data file from _51DEGREES_IPI_PATH, each an environment variable or a system property, and otherwise use the free Lite file. The on-premise web example for Device Detection reads the one name. The examples pass the file they found to their options file under the same names. * REF: Give each key reader one name to read The example key helpers, the live cloud key readers of the 51Did and Cloud Request Engine tests, the cloud engine example and the 51Did creator context demo each read a key under the one name given. * TEST: Leave the data file properties as they were after a console example runs * REORG: Remove two environment readers that nothing calls CloudRequestEngineBuilder.getEnvironmentVariable and ClientHintsExampleTestBase.getEnvVar had no caller. * REF: Put the data file properties back once a console example has its pipeline The on-premise console examples pass the data file they found to their options file in a system property. Each puts the property back as it was once the pipeline is built, so a later run in the same process finds its own file. * BUILD: Give the tests their keys through the environment only The Maven project files no longer copy a Maven property of each key name into a system property for the tests, and the settings.xml templates that set those Maven properties go. The readmes say to set the environment variable. * REF: Hand the browser contract tests only the names they read The integration tests take the branch of the shared Selenium contract tests as the parameter SeleniumTestsRef. They give the cloud web example its resource key from _51DEGREES_RESOURCE_KEY_BESPOKE, and set nothing else for the suite beyond the address and language of the example. * TEST: Run the live 51Did tests once, with each key read under its own name The live 51Did tests take the 51Did resource key with the 51Did license key, and the Bespoke resource key with no license key, each from its own name. The workflow test expects one Maven run that sets no name of its own, and the cloud endpoint taken from the variable of the same name. * TEST: Expect the TAC and native model examples to read _51DEGREES_RESOURCE_KEY Each example runs in a process of its own, which its test gives the key with every property under the name a customer sets. With no key, each example names that variable. * REF: Read the TAC and native model example keys from _51DEGREES_RESOURCE_KEY Every cloud example reads its resource key from the one name a customer sets. ExampleProcess.runWithResourceKey runs an example in a process of its own with that variable set, which is how the tests of the two examples give them the key with every property. * REF: Name the helper that reads a key for paid properties getOrSetPaidResourceKey * REF: Read each 51Did test key under its own name in one test run The live 51Did tests run once with the 51Did resource key and the 51Did license key, and once with the Bespoke resource key and no license key, reading each from its own name. The workflow makes one Maven run with the four secrets and the cloud endpoint variable, and sets no name of its own. It still fails when no resource key is available, or when a license key has no resource key of its account. * TEST: Name the variable name tests for what they read * REF: Spell license the same way through the 51Did test key helper * TEST: Expect the live cloud tests to read _51DEGREES_RESOURCE_KEY_BESPOKE A test that calls the live cloud service reads the resource key with every property from _51DEGREES_RESOURCE_KEY_BESPOKE. The tests of the key readers in the Cloud Request Engine, IP Intelligence and the two example shared modules expect that name. * REF: Read the live cloud test key from _51DEGREES_RESOURCE_KEY_BESPOKE The live cloud tests of the Cloud Request Engine, Device Detection and IP Intelligence, and the tests of the Device Detection and IP Intelligence cloud examples, read their resource key from _51DEGREES_RESOURCE_KEY_BESPOKE. An example test gives its example the key as an argument or as the system property _51DEGREES_RESOURCE_KEY, which is the name the example reads. * TEST: Give the Location and cloud engine examples their key from the test The tests that run the Location shell examples and the cloud engine developer example read _51DEGREES_RESOURCE_KEY_BESPOKE, and set the system property _51DEGREES_RESOURCE_KEY for the example while it runs. * DOC: Say which name the cloud tests read their resource key from The cloud tests read _51DEGREES_RESOURCE_KEY_BESPOKE. _51DEGREES_RESOURCE_KEY is the name a person running an example sets, and a test that runs an example gives the example its key under that name. * TEST: Package build and publish take no keys parameter The shared build and upload scripts read the signing keys and the Central Portal token from the environment, so ci/build-package.ps1 and ci/publish-package.ps1 are called without -Keys and pass nothing on. build-package.ps1 gets its first test. * BUILD: Package build and publish leave the keys to the shared scripts ci/build-package.ps1 and ci/publish-package.ps1 no longer take -Keys or hand signing and upload values on as parameters. The shared Java build reads _51DEGREES_SIGN_JAVA_KEY_PGP_FILE, _51DEGREES_SIGN_JAVA_GPG_KEY_PASSPHRASE and the seven _51DEGREES_SIGN_KEY_VAULT_ names from the environment, and the upload reads _51DEGREES_PUBLISH_MAVEN_SETTINGS. ci/README.md lists those names. This goes with the common-ci release that reads the names, and the two have to reach main together. * TEST: Location cloud examples call the service the variable names The shell example is run with _51DEGREES_CLOUD_ENDPOINT naming a server the test starts, and every call has to arrive there. The two web examples' options files have to read the same name, with the public service as the default. * REF: Location cloud examples read the cloud address from _51DEGREES_CLOUD_ENDPOINT The shell example no longer sets an address of its own, so the Cloud Request Engine reads the variable and uses the public service when it is not set. The MVC and servlet examples' options files read the same name with the public service as the default, as the Device Detection cloud web example does. * TEST: IP Intelligence test addresses come from the YAML evidence file IpAddressGenerator has to give the server.client-ip of each record in a YAML evidence file, one record a document, and leave out records without one. * REF: Read the IP Intelligence test addresses from the YAML evidence file IpAddressGenerator reads server.client-ip from each record of evidence.yml, the file the examples already read, with snakeyaml-engine at test scope as the Device Detection tests have. ci/fetch-assets.ps1 no longer makes evidence.csv. FileUtils.IP_ADDRESSES_FILE_NAME is removed. Use FileUtils.EVIDENCE_FILE_NAME. * BUILD: Run the CI script tests when the 51Did workflow changes workflow-keys.Tests.ps1 reads cloud-51did.yml, so a change to that workflow alone now runs the tests that check it. * DOC: Name the variables as they are read The release check comments give _51DEGREES_ALLOW_VERSION_BUMP, _51DEGREES_ALLOW_EARLY_RELEASE and _51DEGREES_WEEKLY_RELEASES_FROM. The Device Detection README says the TAC and native model examples read _51DEGREES_RESOURCE_KEY, and the integration test comment says where the cloud engine example gets its key. The 51Did workflow's comments say only what the workflow does. * TEST: An on-premise example uses the data file it is given Each of the three on-premise console examples is run in a process of its own with its data file as an argument and _51DEGREES_DD_PATH or _51DEGREES_IPI_PATH naming a file that is not there. The example has to end well, having used the file from the argument. ExampleProcess gains runWith, which sets environment variables and gives arguments. * BUG: On-premise examples use the data file they are given GettingStartedOnPrem for Device Detection and IP Intelligence, and GettingStartedMixed, gave the data file to the options file through _51DEGREES_DD_PATH or _51DEGREES_IPI_PATH as a system property. The options file reads the environment variable of that name first, so with it set the file from the argument was not the one used. Each example now puts the file into the options it has loaded, and sets no system property. * REF: Spell LICENSE_KEY_NAME the US way in the cloud engine live tests * TEST: Options lookup tests read names with the 51Degrees prefix The tests of the options lookup made up myName, hometown, TestMaxLength and TestDelimiter to read back. They are now _51DEGREES_TEST_ names, so the name check's list holds only names that the platform and tools define, and the three the shared browser suite still reads without the prefix. * FIX: Give the web examples their port as _51DEGREES_EXAMPLE_HTTP_PORTS The shared browser tests give an example they start the port to listen on as _51DEGREES_EXAMPLE_HTTP_PORTS, which the .NET examples also read. The Java web examples read PORT, so an example the suite starts listened on its default port. - The getting started web examples (cloud, on-premise and the IP Intelligence cloud mixed one) read the first port the variable lists through EmbedJetty.portFrom, in both web shared modules. - The Human Confidence example and the 51Did creator context demo server read the same name. Each has a test of the default, a single port, a list and a blank value. The Human Confidence test also checks that PORT is no longer read. The demo server's envOr helper had no other caller, so it is removed. - ci/run-integration-tests.ps1 sets _51DEGREES_EXAMPLE_HTTP_PORTS for the example it starts and removes it afterwards, next to _51DEGREES_EXAMPLE_URL and _51DEGREES_EXAMPLE_LANG. - PORT, EXAMPLE_URL and EXAMPLE_LANG leave the name check's platform list, and its tests refuse all three. - The readmes and doc comments name the variable. * FIX: Name the CI token and publishing secrets as common-ci reads them ci/README.md named the automation token _51DEGREES_ACCESS_TOKEN and the publishing and signing secrets with _51DEGREES_PUBLISH_ and _51DEGREES_SIGN_ names. A secret that only CI uses has no _51DEGREES_ prefix, and common-ci main now reads these under the names the organization secrets have: CI_ACCESS_TOKEN, MAVEN_SETTINGS, JAVA_GPG_KEY_PASSPHRASE, JAVA_KEY_PGP_FILE and the seven CODE_SIGNING_KEY_VAULT_ names. The README now lists those, and says common-ci gives the signing and publishing ones only to the jobs that use them. No workflow or script here reads any of them by name. * BUILD: Hold releases from rc into main to one a week The only-rc-into-main call now passes publishes-packages: true, because this repository publishes packages to Maven Central. common-ci main then fails a pull request from rc into main that comes less than a week after the last one merged, unless it carries the early-release label. * FIX: Stop when an example's options file has no engine for its data file The three console examples that take a data file as an argument gave it to the options with PipelineOptions.replace and ignored the result. If the builder name in an options file changed, replace returned false and the argument was dropped with nothing said, so the example ran on the file the options file names. DataFileHelper.useDataFile in both example shared modules now calls replace and throws, naming the builder, when it returns false. The Device Detection on-premise example and the IP Intelligence on-premise and mixed examples use it. DataFileHelperTest in each module checks that the engine gets the file, and that a missing builder name throws and leaves the options as they were. * TEST: Spell license the US way in the live cloud tests The test method licenceKey_IsTheCloudLicence in LiveCloudKeysTests, the field licenceKey in DidClientLiveTests and the local variables in CloudRequestEngineLiveTests now use license. The DidClient methods the tests call keep their published names. --------- Co-authored-by: Rakesh Bakhem <Rakesh@51degrees.com>
BUILD: Read every resource key from organization secrets. Reviewed at 0eecd84 with no high finding open, and all 8 checks on that head passing.
BUILD: Run the workflow key tests on a change to any workflow. Reviewed at 72185ca with no high finding open, and all 7 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.
TEST: Set the variable in the configuration order test. Reviewed at b8c1ce8 with no high finding open, and all 5 checks on that head passing.
BUILD: Pass the engine CMake options under the names cxx reads. Reviewed at cbb1727 with no high finding open, and all 6 checks on that head passing.
BUILD: Build against cxx 699a9789. Reviewed at 56f1e3e with no high finding open, and all 8 checks on that head passing.
TEST: Check the cloud hardware lookup examples return devices. Reviewed at c4eca29 with no high finding open, and all 8 checks on that head passing.
) TEST: Give the cloud's reason when a live 51Did test gets no 51Did. Reviewed at b5cea05 with no high finding open, and all 5 checks on that head passing.
Moves the cxx submodule to the head of 51degrees-cxx rc, as the description says.
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. Under #63 each package now carries its own version and only the packages that changed, or depend on one that changed, are released.
Context
This draft releases
rcintomainfor the Java repository, which publishes 45 Maven modules from four trees,pipeline/,device-detection/,ip-intelligence/andlocation/, with the examples underexamples/. The last release was #112, merged on 13 November 2026 at 10:35 UTC. Ninety-nine pull requests have merged intorcsince then, and the release head is 123e288c.The on-premise engines wrap the C library in the
cxxsubmodule through SWIG. This release builds them against the cxx commit under review in 51degrees-cxx#191, and cxx is reviewed and released first. The submodule 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 #232, 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 is tagged, the submodule moves to the tagged commit.Most of the change brings Java into line with the specification, which changed in the same week. The groups below follow this order.
Changes
1. Releases, build and CI
ci/build-package.ps1set one version in every package tree.ci/packages.jsonlists the 45 published modules with their folders and dependencies, and a release builds and publishes only the modules that changed and those that depend on them (#63).ci/select-options.ps1builds a standard set and adds macOS, JDK 11 and 21, the native builds, the IP Intelligence tests and the Selenium tests only when a change needs them (#43).maven-pmd-plugin3.28.0, which reads Java 25, and the code compiles cleanly on it, rather than pinning an older JDK (#140)..github/workflows/examples-fresh-clone.ymlclones with submodules, builds the examples against the published packages on the runner's own JDK and runs them (#137), builds every example module with its tests too (#192), and the Device Detection example tests use the examples' own helpers so they compile there (#187).ci/run-fresh-clone-example.ps1takes-ExpectDownloadas a switch, as a person would type it (#196).ci/start-chrome-once.ps1starts the driver and Chrome once (#124), then runs one full driver session (#138, closing #126).secrets: inherit, the tests, examples and CI scripts read each key under its one_51DEGREES_name, and a live cloud test with no key skips and names the variable (#218).<description>s say what each package does in the words developers search for, and the source links point at this repository (#27). The Location Doxygen pages have short titles and the generated index pages carrynoindex(#53).contents: readandpull-requests: read, because the shared check asks for both and a called workflow can only be given what its caller has (#222). It passespublishes-packages: true, so a release fromrcintomaincomes at least a week after the last one (#220).rc, so every language builds and tests against the same C code (#228), then to 699a9789, the head after the cxx review (#232). Each change is one gitlink line. cxx renamed its CMake options under_51DEGREES_, so both engineCMakeLists.txtfiles (device-detection/device-detection.hash.engine.on-premise/src/main/cxx/andip-intelligence/ip-intelligence.engine.on-premise/src/main/cxx/) use_51DEGREES_32BITand turn the other product off with_51DEGREES_BUILD_*, where each engine configured both products, and a newci/engine-cmake-options.Tests.ps1checks that every option each engine sets, and every name it tests before including cxx, is one cxx declares (#231).ci/(packages.json,publish-package.ps1,release.ps1,release-plan-filter.ps1,select-options.ps1,standard-excludes.txt,start-chrome-once.ps1,run-fresh-clone-example.ps1,run-integration-tests.ps1,setup-environment.ps1),.github/workflows/(includingexamples-fresh-clone.ymlandonly-rc-into-main.yml),pom.xmland the four tree poms,location/docs/Doxyfile,examples/device-detection/,cxxci/publish-package.Tests.ps1,ci/engine-cmake-options.Tests.ps1,ci/release-plan-filter.Tests.ps1,ci/select-options.Tests.ps1,ci/run-fresh-clone-example.Tests.ps1, the fresh clone workflow, the Only rc into main check, which passed at 235cbb12. Environment variable names
AGENTS.mdand the README point at common-ci's one list of names (#118). The packages, examples, tests and CI read only the current_51DEGREES_names, andci/check-environment-variable-names.ps1checks it (#213).#220 then gives every setting the build, tests and examples read one
_51DEGREES_name holding one thing, read from the environment variable and then the system property of the same name._51DEGREES_RESOURCE_KEY_BESPOKE. Examples read_51DEGREES_RESOURCE_KEY, the name a person running an example sets, so the TAC and native model example tests run each example in a child process with that name set from_51DEGREES_RESOURCE_KEY_BESPOKE. The live 51Did tests run once, reading each key under its own name.settings.xmltemplates are gone, andci/build-package.ps1andci/publish-package.ps1take no-Keys, because common-ci's build and upload scripts read the signing and publishing secrets from the environment._51DEGREES_DD_PATHand_51DEGREES_IPI_PATH. An on-premise console example uses the data file it is given, and stops with an error naming the builder when its options file has no engine for that file (DataFileHelper.useDataFile). The Device Detection tests take their User-Agents from20000 Evidence Records.ymland the IP Intelligence tests their addresses fromevidence.yml, soci/fetch-assets.ps1no longer makesevidence.csv._51DEGREES_CLOUD_ENDPOINTnames, and the public service when it is not set. The Cloud Request Engine takes an address given in code or configuration first, then_51DEGREES_CLOUD_ENDPOINT, thenhttps://cloud.51degrees.com/api/v4/, and its tests now expect the address that order gives, through a newExpectedEndpoint, where three of them expected the public service and failed when CI set the variable (#229).CloudEndPoint_Configuration_Settingsets the variable through the builder'sgetEnvVarhook, so it shows configuration taking precedence over the variable wherever it runs, and a new test checks the engine andExpectedEndpointagree with the variable missing, empty, and with and without a trailing slash (#230). The file search root is_51DEGREES_PROJECT_ROOTand the performance results file_51DEGREES_PERFORMANCE_JSON. The web examples and the 51Did creator context demo server listen on the first port_51DEGREES_EXAMPLE_HTTP_PORTSlists, the name the shared browser suite gives an example it starts, andci/run-integration-tests.ps1gives an example it starts its port, address and language under_51DEGREES_EXAMPLE_HTTP_PORTS,_51DEGREES_EXAMPLE_URLand_51DEGREES_EXAMPLE_LANG._51DEGREES_name or a platform name from a short list, and refusesPORT,EXAMPLE_URLandEXAMPLE_LANG.The workflows read every resource key from the organization secret of its own name.
cloud-51did.ymlreads_51DEGREES_RESOURCE_KEY_51DIDand_51DEGREES_RESOURCE_KEY_BESPOKE, andcloud-human-confidence.ymlreads_51DEGREES_RESOURCE_KEY_BESPOKEand_51DEGREES_RESOURCE_KEY_BASIC, each assecrets.<name>, whilst_51DEGREES_CLOUD_ENDPOINTstays an organization variable.ci/workflow-keys.Tests.ps1, new in #220, expects each resource key and license key fromsecrets.and fails on any workflow line that reads a_51DEGREES_RESOURCE_KEYname asvars.(#226). #224 had moved thecloud-51did.ymlreads tovars.earlier the same day, and #226 returns them tosecrets.. The CI script tests now start on a change to any file under.github/workflows, so that test also guards a new workflow or a change tocloud-human-confidence.yml(#227).The browser contract run sets
_51DEGREES_EXAMPLE_URLand_51DEGREES_EXAMPLE_LANG, which the shared suite'smainreads alone since its release selenium-api-tests#45, and no longer setsCLOUD_ROOT_URLandPAID_RESOURCE_KEY. It runs when_51DEGREES_RESOURCE_KEY_BESPOKEis set, where it needed_51DEGREES_RESOURCE_KEY, which no organization or repository store holds, and gives that key to the cloud example as_51DEGREES_RESOURCE_KEYfor the run (#225).examples/(each product'sshared/module withKeyHelper,DataFileHelperandExampleProcess, the console and web examples and their options files),pipeline/pipeline.developer-examples/,pipeline/pipeline.did/,pipeline/pipeline.cloudrequestengine/,device-detection/device-detection.shared/andip-intelligence/ip-intelligence.shared/(test helpers), the cloud and on-premiseTestsBaseclasses,ci/(check-environment-variable-names.ps1,workflow-keys.Tests.ps1,build-package.ps1,publish-package.ps1,fetch-assets.ps1,run-integration-tests.ps1,README.md),.github/workflows/(cloud-51did.yml,cloud-human-confidence.yml,ci-script-tests.yml),AGENTS.md, the READMEsci/check-environment-variable-names.Tests.ps1,ci/workflow-keys.Tests.ps1,ci/build-package.Tests.ps1,KeyHelperTest,DataFileHelperTestandExampleProcessTestin the example shared modules,KeyUtilsTest,UserAgentGeneratorTest,IpAddressGeneratorTest,FileUtilsTest,CloudRequestEngineBuilderTestsandCloudRequestEngineTestsinpipeline/pipeline.cloudrequestengine, the console testsGettingStartedOnPremTest,GettingStartedMixedTest,NativeModelCloudTestandTacCloudTest, and the Cloud 51Did and Cloud Human Confidence workflows, which passed at 235cbb1 reading their keys from organization secrets3. The Pipeline core
The specification's new rules for parallel operation (specifications#190) replace locks with rules a caller follows.
FlowDataDefault.process()sets a volatilefinishedflag in afinally, after which every write to the Flow Data throwsIllegalStateException, including throughgetEvidence().putandpopulateFromMap(#201). A write to Element Data once its Flow Element has finished throws too, and lazy loading has no effect, so every Engine processes on the calling thread (#202).ElementDataBase.isPoolable()opts an implementation in, and the Sequence, Set Headers, JSON Builder and JavaScript Builder Element Data are reused once their Flow Data is closed (#207).RunsLast, marks it, andPipelineBuilderBase.build()refuses a Pipeline that puts it anywhere else or in a parallel group. The on-premise builders, which added it before their engine, now add it last (#203).SequenceElementsays it must not run in a parallel group because it adds Evidence (#195).EvidenceKeyFilterWhitelistand the JavaScript Builder (#169). Every case change undersrc/mainpassesLocale.ROOT, as under a Turkish default locale a capital I lowers to a dotless i (#83 for the usage sharing filter, #135 for the other 76 calls, withci/check-root-locale.ps1to keep it so).setProperties(String)splits at every comma (#166). A configuration file may name an enumeration option by its value and useSetAutoDisposeElements, relative data file paths are accepted, Element Data keys are checked, and the on-premise Element Data implementsProvidesValuesAsString(#179).Pipeline.isSuppressProcessExceptions()is new, a built Pipeline keeps its own copy of the elements, the web filter suppresses its own errors when the Pipeline does, background update errors are logged,getWhereleaves out what is not there, andcxxmoves forward, which rounds Latitude and Longitude to 3 decimal places.CloudRequestFailed, reads use the property's position, and the test utility classes are deprecated in the published jar.pipeline/pipeline.core/(FlowDataDefault,TypedKeyMapBuilder,PipelineBuilderBase,RunsLast,ElementDataBase,Constants),pipeline/pipeline.engines/,pipeline/pipeline.engines.fiftyone/,pipeline/pipeline.web.packages/,pipeline/pipeline.javascriptbuilder/,device-detection/device-detection.hash.engine.on-premise/,device-detection/device-detection/,ip-intelligence/ip-intelligence/,cxx,ci/check-root-locale.ps1, the READMEs and web examplesFinishedFlowDataTests,TypedKeyMapKeyCaseTests,ProcessTests.caseInsensitiveEvidencePrefix,SequenceElementParallelTests,AspectEngineBuilderBaseProp*tests,ShareUsageOptionsTests.neverSharedKeys_TurkishLocale_StillRefused,ci/check-root-locale.Tests.ps1(18 tests), the builder default tests of Name the builder defaults that were literals #130, and the test commits of Specification conformance, 51degrees-java, section 13 #171, Specification conformance, 51degrees-java, section 15 #175 and Give every Property its stored string, description and data tiers, accept relative paths, and check Element Data keys #179, each run red before its fix4. Usage sharing
51D_ones even with all Evidence shared (#160). A query string or form parameter is shared only when its name starts with51D_or a Flow Element in the Pipeline accepts it, through a newEvidenceKeyFilterShareUsage.include(String, EvidenceKeyFilter), which replaces the share every query value default Share every query value by default, and no cookie but 51D_ ones even when all Evidence is shared #160 set before it was released (#205). A header namedCookiesis shared by default, as onlyCookieis blocked (#132).DateSentis in UTC, eachFlowElementis a fully qualified class name,Platformnames the operating system's version and every record carriesClientIP(#139, part of #28). Every record starts with a version 4 UUID asProcessId, and the values that do not change within a process, now with aPackageelement for every 51Degrees package in use, go only into the first record and the first after each hour (#164).ShareUsageBuilderBaseTestused JUnit 4 in a JUnit 5 module and had never run, and now do (#142). New tests check that a header no element reads reaches the message (#127), the repeat rule in one session and the values added beside the web request (#136), and seven requirements met but untested (#168). The overhead test takes a median over warmed up rounds, as it failed on an Intel macOS runner (#91).pipeline/pipeline.engines.fiftyone/(EvidenceKeyFilterShareUsage,ShareUsageBase,ShareUsageElement,Constants),pipeline/pipeline.core/EvidenceKeyFilterShareUsageTests,ShareUsageParameterTests,ShareUsageRecordFormTests,ShareUsageCloseTimeoutTests,ShareUsageBuilderBaseTest,ShareUsageElementTests.ShareUsageElement_OneSession_ChangedValueSharedWithItsSequence,UsageSharingEvidenceTests.UnreadHeader_ReachesTheUsageSharingMessage,ShareUsageOverheadTests5. Data updates
Content-MD5header is applied with a warning, a data file with no temporary path reportsAUTO_UPDATE_TEMP_PATH_NOT_SET, and a failure writing data passed in from memory is a warning (#186). An unexpected error in a check against the update URL givesAUTO_UPDATE_UNKNOWN_ERRORand the table's message (#170).refreshDataoverloads ofDeviceDetectionHashEngineandIPIntelligenceOnPremiseEnginerun undersynchronized (this)(#214, closing #198). Closing waits for a running refresh, and a refresh after close throwsIllegalStateException(#215).WatchServicepolls (#217).pipeline/pipeline.engines/src/main/java/fiftyone/pipeline/engines/services/DataUpdateServiceDefault.java,pipeline/pipeline.core/,device-detection/device-detection.hash.engine.on-premise/,ip-intelligence/ip-intelligence.engine.on-premise/DataUpdateServiceTests,DataUpdateServiceCheckFailureTests,DataUpdateServiceLoggingTests.UnexpectedError_LogsTheLastRow,DataRefreshTestsin both engines (Refresh_FromMemoryOnSeveralThreads_EngineStillWorks,Close_WhileARefreshRuns_WaitsForTheRefresh),RelativePathTests6. The web integration and the JavaScript and JSON Builders
If-None-Matchis evaluated as RFC 9110 section 13.1.2 says, a failed response is not cached, andVary,Content-Lengthand a configurable max-age follow the specification (#67, closing #11). The web integration suppliesserver.request-query(#144), and a test checks the positions of the elements it adds (#155).nullbeside itsnullreason(#145).SetMinifyhad no effect (#178), and compares thePromisevalue as text, as==compared references and a browser with promises never got the promise form (#194).pipeline/pipeline.web.packages/(ClientsidePropertyServiceCoreand the filter and interceptor),pipeline/pipeline.jsonbuilder/,pipeline/pipeline.javascriptbuilder/,pipeline/pom.xmlRequestLineEvidenceTests,AddedElementPositionTests,JsonBuilderTests(includingJsonBuilder_NoValue_WrittenAsNullWithReason),JavaScriptBuilderPromiseTests.PromiseFull_MadeAtRunTime_GivesThePromiseForm, the minification and JSON endpoint tests of Minify the JavaScript with a third-party library, and test the JSON endpoint's form #1787. Engines, the cloud, 51Did and derived properties
single, being Latitude and Longitude, is typed asFloat, every read of the native results takes one lock, and the cloud engine uses the shared engine logic (#177).PropertyMissingExceptionfor a property the response leaves out, as Location does (#143). The Device Detection engine reads values when the metadata is empty, and each warning in a response is logged (#172) with any license key masked (#165).HttpClientDefaultlooks up the host within the connect timeout through the newHostLookup, as a test waited 30 seconds for the system resolver on macOS, and the log says why processing failed (#123). The cloud response is a lazy task, so the Cloud Request Engine returns without waiting andgetJsonResponse()waits (#208), and a cloud result may replace one the cache would never serve (#219).FodIdkeeps the byte layout, the payload version and its constructor out of reach (#157), and the live test creates the 51Did for another address as a licensed caller (#56).pipeline.derivedproperty, with thederived-propertiessubmodule and an example, as .NET and Rust have it (#156, closing #110).device-detection/device-detection.hash.engine.on-premise/,device-detection/device-detection.cloud/,device-detection/device-detection/,ip-intelligence/ip-intelligence.engine.on-premise/(PropertyMetaDataIPI,IPIntelligenceDataHashDefault),ip-intelligence/ip-intelligence.cloud/,location/geo-location.cloud/,pipeline/pipeline.cloudrequestengine/(CloudRequestEngineBuilder,CloudRequestDataInternal,HttpClientDefault),pipeline/pipeline.engines/(HostLookup,CloudPipelineBuilderBase),pipeline/pipeline.caching/,pipeline/pipeline.did/,pipeline/pipeline.derivedproperty/(new),pipeline/derived-properties(new submodule),.gitmodulesResultsNotLockedTestsand the metrics tests of Add the Metrics component and the profiles for a property value, and read Device Detection results by position with no lock #174, the IP Intelligence tests of Lock every read of IP Intelligence native results, type Latitude and Longitude as Float, and process cloud IP Intelligence with the shared engine logic #177,*CloudPipelineBuilderTests,ProductMissingTestsin each cloud engine,DidClientTests.redeem_FactorWordsInOtherLetters_ReadAsTheirOutcome,FodIdSurfaceTests,DidClientLiveTests, thepipeline.derivedpropertytests8. Examples
Comparerruns on the free Lite file and says what the Enterprise file adds (#158).AGENTS.mdand the example READMEs describe the examples as they run today (#162).examples/device-detection/web/human-confidenceserves a page that asks the cloud for the passive Human Confidence level, then runs the client script and redeems the active level through/api/v4/hc/redeem, as the .NET example does (51degrees-dotnet#304). It passes the request's evidence to the cloud unchanged, reads the result, and takes the cloud address from_51DEGREES_CLOUD_ENDPOINT, using the public service when that is not set (#221). The passive call namesHumanConfidenceSourceinvalues, because a key saved before that property existed holdsHumanConfidencealone and the call got a level and no source. A live test, run by the newcloud-human-confidence.yml, checks that the example gets the source (#223).examples/device-detection/(with the newweb/human-confidence/module, added toweb/pom.xml),examples/ip-intelligence/,pipeline/pipeline.developer-examples/,location/geo-location.shell.examples/,location/geo-location.web.examples/,pipeline/pipeline.cloudrequestengine/,AGENTS.mdFindOutMoretests in each product's shared module,ExamplesWithoutSettingsTest,ComparerTest,PropertyHelperTest.testWeightedValuesShowTheirWeighting,PropertyHelperMissingPropertyTests, each example module'sDefaultPortTest,HumanConfidenceTest, which runs the new example against a stand-in for the cloud and includespassiveWithoutTheSourceReportsNone,HumanConfidenceLiveTest9. Documentation
AGENTS.mdsays a test that fails on timing is fixed rather than run again (#122). A newcontext7.jsondescribes the repository to the Context7 documentation index (#211), and its description is rewritten for someone using the library (#212).Breaking changes
FOD_CLOUD_API_URLbecomes_51DEGREES_CLOUD_ENDPOINT,51DEGREES_DD_PATHand51DEGREES_IPI_PATHgain the leading underscore, andLICENSE_KEY,RESOURCE_KEYand51DEGREES_RESOURCE_KEYbecome_51DEGREES_LICENSE_KEYand_51DEGREES_RESOURCE_KEY, with the full table in #213.PORT,EXAMPLE_URLandEXAMPLE_LANGbecome_51DEGREES_EXAMPLE_HTTP_PORTS,_51DEGREES_EXAMPLE_URLand_51DEGREES_EXAMPLE_LANG, theproject.rootsystem property becomes_51DEGREES_PROJECT_ROOT, and the tests read a key with every property from_51DEGREES_RESOURCE_KEY_BESPOKE(#220). The old names are not read.Constants.FOD_CLOUD_API_URL, replaced byConstants.CLOUD_ENDPOINT_VARIABLE.DidClient.ENDPOINT_VARIABLE, replaced byDidClient.CLOUD_ENDPOINT_VARIABLE.FileUtils.UA_FILE_NAMEandFileUtils.UA_FILE_PATH, replaced byFileUtils.EVIDENCE_FILE_NAMEandFileUtils.EVIDENCE_FILE_PATH.KeyUtils.RESOURCE_KEY_ENV_VAR,KeyUtils.getResourceKey(String),FileUtils.IPI_PATH_ENV_VARandFileUtils.IP_ADDRESSES_FILE_NAME, replaced byKeyUtils.RESOURCE_KEY_VARIABLE, which now names_51DEGREES_RESOURCE_KEY_BESPOKE,FileUtils.IPI_PATH_VARIABLEandFileUtils.EVIDENCE_FILE_NAME.IllegalStateException.addEvidence,getEvidence().put,populateFromMap,getOrAddfor a new key andaddErrorafterprocess()returns or throws, and a write to Element Data whose Flow Element has finished.FlowDataDefault.get(String)before processing throwsIllegalStateException, as doesgetWhere(#201, #202, #175, #171).PipelineConfigurationException, in code or from a configuration (#203). An element added to a builder afterbuild()no longer joins the Pipeline already built (#171).processreturns (#202). The Cloud Request Engine returns before the response arrives, so a Pipeline holding only that engine no longer throws a failed request fromprocess, andgetJsonResponse()gives it instead (#208).EvidenceKeyFilterWhitelistmade without a comparator ignores case, so passComparator.naturalOrder()to keep comparing with case (#167, #169). Under a Turkish or Azeri default locale the JSON Builder now writesismobilewhere it wroteısmobile(#135).setProperties(String)splits at every comma (#166).51D_or the Pipeline uses it, whatever the options (#205). Share all Evidence shares no cookie but51D_ones (#160). A header namedCookiesis shared, so block it withsetBlockedHttpHeader("Cookies")to keep it out (#132).DateSentis UTC andShareUsageBase.DATE_FMTis deprecated (#139). Records carry the process values only in the first record and hourly, tied together byProcessId(#164). Closing discards what is queued after 4.5 seconds (#147, #180).Content-MD5is applied (#186). An update callback can be givenAUTO_UPDATE_UNKNOWN_ERROR, so aswitchoverAutoUpdateStatuswith nodefaultwill not handle it (#146, #170). A refresh waits for any other refresh of the same engine, the lock being the engine object's monitor, and a refresh after close throwsIllegalStateException(#214, #215).Floatwhere they wereStringwherever the type comes from the metadata (#177), and are rounded to 3 decimal places (#171). A Device Detection or IP Intelligence cloud property the response did not hold throwsPropertyMissingException(#143). Missing Property reasons and messages change, with a newMissingPropertyReason.CloudRequestFailed(#175).getComponents()ends with a Metrics component whose default profile is null (#174).errorsis a list of messages, not an object keyed by element (#128), and a Property with no value has anullentry beside itsnullreason(#145). The script is minified by default, so setsetMinify(false)to keep the old output, andpipeline.javascriptbuilderhas a new dependency (#178). A browser whosePromiseis "Full" gets the promise form (#194).HttpClientDefaultfails a request withSocketTimeoutExceptionwhen the host lookup takes longer than the connect timeout, 2 seconds by default (#123). A cached Cloud Request Engine no longer caches a response holding a 51Did (#171).FileUtilsandKeyUtilsare deprecated in the published jar (#175)._51DEGREES_EXAMPLE_HTTP_PORTScan set another (#216, #220). A console example given a data file stops with an error when its options file has no engine for that file, where it ignored the file (#220).Still open
rc. #233 makes a data file update work with a License Key that holds several products. The distributor answers such a key with status 300 and a URI for each product, andHttpURLConnectionfollowed that answer'sLocationheader by itself.DataUpdateServiceDefaultnow makes its first request with redirects off, and on a 300 that listsAvailableUrisrepeats it naming the product of the loaded data file, failing with the products offered when none matches. It changespipeline/pipeline.engines/(DataUpdateServiceDefault,DataUpdateUrlFormatter),pipeline/pipeline.engines.fiftyone/(FiftyOneUrlFormatter) and the Device DetectionUpdateDataFileexample, withDataUpdateServiceProductTests,FiftyOneUrlFormatterTestsandUpdateDataFileTest.cxxat 699a9789, started at 10:48 UTC on 23 November. The runs at 31b9c35, f92161d and 64adf85 were cancelled whenrcmoved. The run at 235cbb1d failed on all 15 Build and Test entries in threeCloudRequestEngineTeststests,OriginHeader,ProcessandProcess_LicenseKey, which expected the public service while CI set_51DEGREES_CLOUD_ENDPOINTto the staging service (#229 changes them, section 2 item 4), and MacOS_X64_Java_17 stopped earlier because Maven could not downloadmaven-resources-plugin3.3.1. The build stopped atpipeline/pipeline.cloudrequestengine, so the Device Detection, IP Intelligence and Location modules, and the integration tests, have not yet run in CI at this release.pipeline/pipeline.cloudrequestengine/src/main/java/fiftyone/pipeline/cloudrequestengine/flowelements/CloudRequestEngineBuilder.java.setEndpointadds "/" before it stores the address, so a blank address given in code becomes "/" and never falls through to_51DEGREES_CLOUD_ENDPOINT. When onlysetDataEndpoint,setPropertiesEndpointorsetEvidenceKeysEndpointis called, the build replaces that address with the variable or the default. No pull request changes this yet.mainin the Rust, .NET and Node repositories.IPIntelligenceDataHashDefaultonrcstill holdsresultsLock, whereas the specification's rules for parallel operation now say results instances take no lock, as #174 did for Device Detection.Closes #9. Closes #11. Closes #12. Closes #14. Closes #110. Closes #125. Closes #126. Closes #198. Each was closed by a pull request into
rc, which GitHub does not act on until the change reachesmain.