Skip to content

Release candidate - #190

Draft
jwrosewell wants to merge 304 commits into
mainfrom
rc
Draft

jwrosewell wants to merge 304 commits into
mainfrom
rc

Conversation

@jwrosewell

@jwrosewell jwrosewell commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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 rc into main for the Java repository, which publishes 45 Maven modules from four trees, pipeline/, device-detection/, ip-intelligence/ and location/, with the examples under examples/. The last release was #112, merged on 13 November 2026 at 10:35 UTC. Ninety-nine pull requests have merged into rc since then, and the release head is 123e288c.

The on-premise engines wrap the C library in the cxx submodule 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 cxx rc since 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.

  1. How the packages are released and built, and the environment variable names.
  2. The Pipeline core's new rules for threads, under which a Flow Data is used by one thread at a time, takes no locks to add Element Data and refuses writes once finished, together with letter case and locale fixes.
  3. Usage sharing and data updates.
  4. The web integration and the JavaScript and JSON Builders.
  5. The engines, the cloud, 51Did and the new Derived Property Element.
  6. The examples and the documentation.

Changes

1. Releases, build and CI

  1. Each package is released at its own version. ci/build-package.ps1 set one version in every package tree. ci/packages.json lists 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).
  2. A pull request builds what it changes. Every pull request ran all 15 configurations, six of them macOS, where five macOS jobs run at once across the organization. A new ci/select-options.ps1 builds 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).
  3. JDK 25. The four trees did not build on the runner's default JDK 25. The parent poms take maven-pmd-plugin 3.28.0, which reads Java 25, and the code compiles cleanly on it, rather than pinning an older JDK (#140).
  4. Examples from a fresh clone. CI never ran an example from a fresh clone or against the published packages. .github/workflows/examples-fresh-clone.yml clones 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.ps1 takes -ExpectDownload as a switch, as a person would type it (#196).
  5. Chrome before the Selenium contract tests. The first contract test timed out on the Intel macOS runners waiting for Chrome. ci/start-chrome-once.ps1 starts the driver and Chrome once (#124), then runs one full driver session (#138, closing #126).
  6. Secrets and keys in CI. The workflows pass their secrets to common-ci with 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).
  7. Package text. Six pom <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 carry noindex (#53).
  8. The Only rc into main check. Its job declares contents: read and pull-requests: read, because the shared check asks for both and a called workflow can only be given what its caller has (#222). It passes publishes-packages: true, so a release from rc into main comes at least a week after the last one (#220).
  9. The cxx submodule. It moves from 178371ac to 560de81e, the head of cxx 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 engine CMakeLists.txt files (device-detection/device-detection.hash.engine.on-premise/src/main/cxx/ and ip-intelligence/ip-intelligence.engine.on-premise/src/main/cxx/) use _51DEGREES_32BIT and turn the other product off with _51DEGREES_BUILD_*, where each engine configured both products, and a new ci/engine-cmake-options.Tests.ps1 checks that every option each engine sets, and every name it tests before including cxx, is one cxx declares (#231).
  • Files: 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/ (including examples-fresh-clone.yml and only-rc-into-main.yml), pom.xml and the four tree poms, location/docs/Doxyfile, examples/device-detection/, cxx
  • Tests: ci/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 235cbb1
  • Pull requests: #63, #43, #140, #137, #192, #187, #196, #124, #138, #218, #27, #53, #222, #228, #231, #232

2. Environment variable names

AGENTS.md and the README point at common-ci's one list of names (#118). The packages, examples, tests and CI read only the current _51DEGREES_ names, and ci/check-environment-variable-names.ps1 checks 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.

  1. Keys. Each key reader takes one name, and the deprecated name constants are removed. Tests that need a key with every property read _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.
  2. Keys reach the tests through the environment only. The Maven key properties and the settings.xml templates are gone, and ci/build-package.ps1 and ci/publish-package.ps1 take no -Keys, because common-ci's build and upload scripts read the signing and publishing secrets from the environment.
  3. Data files. The example options files read _51DEGREES_DD_PATH and _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 from 20000 Evidence Records.yml and the IP Intelligence tests their addresses from evidence.yml, so ci/fetch-assets.ps1 no longer makes evidence.csv.
  4. Other names. The cloud tests and examples, now including the Location shell and web examples, call the service _51DEGREES_CLOUD_ENDPOINT names, 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, then https://cloud.51degrees.com/api/v4/, and its tests now expect the address that order gives, through a new ExpectedEndpoint, where three of them expected the public service and failed when CI set the variable (#229). CloudEndPoint_Configuration_Setting sets the variable through the builder's getEnvVar hook, so it shows configuration taking precedence over the variable wherever it runs, and a new test checks the engine and ExpectedEndpoint agree with the variable missing, empty, and with and without a trailing slash (#230). The file search root is _51DEGREES_PROJECT_ROOT and 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_PORTS lists, the name the shared browser suite gives an example it starts, and ci/run-integration-tests.ps1 gives an example it starts its port, address and language under _51DEGREES_EXAMPLE_HTTP_PORTS, _51DEGREES_EXAMPLE_URL and _51DEGREES_EXAMPLE_LANG.
  5. The name check passes a name only when it is a _51DEGREES_ name or a platform name from a short list, and refuses PORT, EXAMPLE_URL and EXAMPLE_LANG.

The workflows read every resource key from the organization secret of its own name. cloud-51did.yml reads _51DEGREES_RESOURCE_KEY_51DID and _51DEGREES_RESOURCE_KEY_BESPOKE, and cloud-human-confidence.yml reads _51DEGREES_RESOURCE_KEY_BESPOKE and _51DEGREES_RESOURCE_KEY_BASIC, each as secrets.<name>, whilst _51DEGREES_CLOUD_ENDPOINT stays an organization variable. ci/workflow-keys.Tests.ps1, new in #220, expects each resource key and license key from secrets. and fails on any workflow line that reads a _51DEGREES_RESOURCE_KEY name as vars. (#226). #224 had moved the cloud-51did.yml reads to vars. earlier the same day, and #226 returns them to secrets.. 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 to cloud-human-confidence.yml (#227).

The browser contract run sets _51DEGREES_EXAMPLE_URL and _51DEGREES_EXAMPLE_LANG, which the shared suite's main reads alone since its release selenium-api-tests#45, and no longer sets CLOUD_ROOT_URL and PAID_RESOURCE_KEY. It runs when _51DEGREES_RESOURCE_KEY_BESPOKE is 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_KEY for the run (#225).

  • Files: examples/ (each product's shared/ module with KeyHelper, DataFileHelper and ExampleProcess, the console and web examples and their options files), pipeline/pipeline.developer-examples/, pipeline/pipeline.did/, pipeline/pipeline.cloudrequestengine/, device-detection/device-detection.shared/ and ip-intelligence/ip-intelligence.shared/ (test helpers), the cloud and on-premise TestsBase classes, 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 READMEs
  • Tests: ci/check-environment-variable-names.Tests.ps1, ci/workflow-keys.Tests.ps1, ci/build-package.Tests.ps1, KeyHelperTest, DataFileHelperTest and ExampleProcessTest in the example shared modules, KeyUtilsTest, UserAgentGeneratorTest, IpAddressGeneratorTest, FileUtilsTest, CloudRequestEngineBuilderTests and CloudRequestEngineTests in pipeline/pipeline.cloudrequestengine, the console tests GettingStartedOnPremTest, GettingStartedMixedTest, NativeModelCloudTest and TacCloudTest, and the Cloud 51Did and Cloud Human Confidence workflows, which passed at 235cbb1 reading their keys from organization secrets
  • Pull requests: #118, #213, #220, #224, #226, #227, #225, #229, #230

3. The Pipeline core

The specification's new rules for parallel operation (specifications#190) replace locks with rules a caller follows.

  1. Element Data is added with one compare and swap. A Flow Data with a parallel group added Element Data under a lock and called the data factory while holding it, so a slow member kept the others waiting. The list's head is now volatile, a new key goes in with one compare and swap, and readers take no lock (#206).
  2. Writes after processing fail. FlowDataDefault.process() sets a volatile finished flag in a finally, after which every write to the Flow Data throws IllegalStateException, including through getEvidence().put and populateFromMap (#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).
  3. Element Data through an object pool. 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).
  4. Usage sharing must run last. A new interface, RunsLast, marks it, and PipelineBuilderBase.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).
  5. Documentation. The web docs and examples say and show that a Flow Data is used by one thread (#204), and SequenceElement says it must not run in a parallel group because it adds Evidence (#195).
  6. Letter case and locale. Element Data keys are compared ignoring case (#167), and so are Evidence keys in the Device Detection engine, EvidenceKeyFilterWhitelist and the JavaScript Builder (#169). Every case change under src/main passes Locale.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, with ci/check-root-locale.ps1 to keep it so).
  7. Builders and configuration. The builders' defaults are named constants beside the others (#130, closing #14). setProperties(String) splits at every comma (#166). A configuration file may name an enumeration option by its value and use SetAutoDisposeElements, relative data file paths are accepted, Element Data keys are checked, and the on-premise Element Data implements ProvidesValuesAsString (#179).
  8. Conformance with the core features (#171). A cached Cloud Request Engine neither stores nor serves a response holding a 51Did, 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, getWhere leaves out what is not there, and cxx moves forward, which rounds Latitude and Longitude to 3 decimal places.
  9. Conformance with seven SHOULD sentences (#175). The missing Property messages are the specification's text, the reason is decided in its order, with a new CloudRequestFailed, reads use the property's position, and the test utility classes are deprecated in the published jar.

4. Usage sharing

  1. What is shared. No cookie is shared but 51D_ ones even with all Evidence shared (#160). A query string or form parameter is shared only when its name starts with 51D_ or a Flow Element in the Pipeline accepts it, through a new EvidenceKeyFilterShareUsage.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 named Cookies is shared by default, as only Cookie is blocked (#132).
  2. The record. DateSent is in UTC, each FlowElement is a fully qualified class name, Platform names the operating system's version and every record carries ClientIP (#139, part of #28). Every record starts with a version 4 UUID as ProcessId, and the values that do not change within a process, now with a Package element for every 51Degrees package in use, go only into the first record and the first after each hour (#164).
  3. Closing. What is still queued when closing has waited is discarded, with a warning giving the count (#147), and closing now finishes within the 5 seconds the specification allows, waiting 4.5 seconds for the queue (#180).
  4. Tests. The 32 builder tests in ShareUsageBuilderBaseTest used 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).
  • Files: pipeline/pipeline.engines.fiftyone/ (EvidenceKeyFilterShareUsage, ShareUsageBase, ShareUsageElement, Constants), pipeline/pipeline.core/
  • Tests: EvidenceKeyFilterShareUsageTests, ShareUsageParameterTests, ShareUsageRecordFormTests, ShareUsageCloseTimeoutTests, ShareUsageBuilderBaseTest, ShareUsageElementTests.ShareUsageElement_OneSession_ChangedValueSharedWithItsSequence, UsageSharingEvidenceTests.UnreadHeader_ReachesTheUsageSharingMessage, ShareUsageOverheadTests
  • Pull requests: #160, #205, #132, #139, #164, #147, #180, #142, #127, #136, #168, #91

5. Data updates

  1. Errors as the specification's table gives them. Every failure to reach the update service, including a download cut short, logs its row of the table at Error (#129, closing #125). A response with no Content-MD5 header is applied with a warning, a data file with no temporary path reports AUTO_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 gives AUTO_UPDATE_UNKNOWN_ERROR and the table's message (#170).
  2. Checks that fail go on. An error from a polled or watched check, or from an update callback, left the scheduler's task and ended later checks. It is now logged and reported, and the next check runs (#146).
  3. One refresh at a time, and close after it. Both refreshData overloads of DeviceDetectionHashEngine and IPIntelligenceOnPremiseEngine run under synchronized (this) (#214, closing #198). Closing waits for a running refresh, and a refresh after close throws IllegalStateException (#215).
  4. Tests. The configured interval test's check no longer runs before its verify, which failed about once in 600 runs (#161), and the watcher tests wait 30 seconds for macOS, whose WatchService polls (#217).
  • Files: 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/
  • Tests: DataUpdateServiceTests, DataUpdateServiceCheckFailureTests, DataUpdateServiceLoggingTests.UnexpectedError_LogsTheLastRow, DataRefreshTests in both engines (Refresh_FromMemoryOnSeveralThreads_EngineStillWorks, Close_WhileARefreshRuns_WaitsForTheRefresh), RelativePathTests
  • Pull requests: #129, #186, #170, #146, #214, #215, #161, #217

6. The web integration and the JavaScript and JSON Builders

  1. Client-side responses are cached as the specification and RFC 9110 ask. For the servlet filter and the Spring interceptor alike, the ETag is a weak ETag of the supplied Evidence and is compared before processing, If-None-Match is evaluated as RFC 9110 section 13.1.2 says, a failed response is not cached, and Vary, Content-Length and a configurable max-age follow the specification (#67, closing #11). The web integration supplies server.request-query (#144), and a test checks the positions of the elements it adds (#155).
  2. The JSON Builder writes the Flow Data's errors as a list of messages, as .NET does (#128, closing #9), and a Property with no value as null beside its nullreason (#145).
  3. The JavaScript Builder refuses a bad protocol in its constructor (#145), minifies the script with a third-party library, as SetMinify had no effect (#178), and compares the Promise value as text, as == compared references and a browser with promises never got the promise form (#194).

7. Engines, the cloud, 51Did and derived properties

  1. Device Detection. Each match metric Property has metadata and the Metrics component is listed, the profiles that hold a value of a Property are found, a Property is read by its position, the native results take no lock, and the published jars hold no tests or examples (#174).
  2. IP Intelligence. A native single, being Latitude and Longitude, is typed as Float, every read of the native results takes one lock, and the cloud engine uses the shared engine logic (#177).
  3. The cloud. The cloud Pipeline builders name the properties wanted, and a live test authenticates on a license key alone (#131, closing #12). The Device Detection and IP Intelligence engines throw PropertyMissingException for 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). HttpClientDefault looks up the host within the connect timeout through the new HostLookup, 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 and getJsonResponse() waits (#208), and a cloud result may replace one the cache would never serve (#219).
  4. 51Did. Factor words are compared ignoring case, and a short payload of another version is refused naming that version (#141). Tests check that FodId keeps 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).
  5. The Derived Property Element is a new package, pipeline.derivedproperty, with the derived-properties submodule and an example, as .NET and Rust have it (#156, closing #110).

8. Examples

  1. Find out more. Every Device Detection and IP Intelligence example ends with the section (#133), and so does every Pipeline developer and Location console example (#134). The IP Intelligence API example says at start-up what the Enterprise data file adds (#159).
  2. Running with no settings. Every cloud example ends cleanly with no resource key and exits 0 (#163). Every example runs with no settings in a test, the usage sharing example can be tested without sharing, and the on-premise getting started console example no longer shares usage, as the specification asks of console examples (#173). Comparer runs on the free Lite file and says what the Enterprise file adds (#158).
  3. Output. The IP Intelligence examples show each value's weighting (#148), and a missing Property is answered with the contact link in plain text rather than an HTML anchor (#193). The cloud mixed web example passes the shared browser tests (#58), and the IP Intelligence map tiles come from OpenStreetMap, as CARTO's basemaps now need an API key (#55).
  4. Smaller changes. The web examples listen on port 5151 by default, where they used eight ports (#216), links to the configuration page use https://51degrees.com/configure (#115), and AGENTS.md and the example READMEs describe the examples as they run today (#162).
  5. A Human Confidence web example. examples/device-detection/web/human-confidence serves 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 names HumanConfidenceSource in values, because a key saved before that property existed holds HumanConfidence alone and the call got a level and no source. A live test, run by the new cloud-human-confidence.yml, checks that the example gets the source (#223).
  • Files: examples/device-detection/ (with the new web/human-confidence/ module, added to web/pom.xml), examples/ip-intelligence/, pipeline/pipeline.developer-examples/, location/geo-location.shell.examples/, location/geo-location.web.examples/, pipeline/pipeline.cloudrequestengine/, AGENTS.md
  • Tests: FindOutMore tests in each product's shared module, ExamplesWithoutSettingsTest, ComparerTest, PropertyHelperTest.testWeightedValuesShowTheirWeighting, PropertyHelperMissingPropertyTests, each example module's DefaultPortTest, HumanConfidenceTest, which runs the new example against a stand-in for the cloud and includes passiveWithoutTheSourceReportsNone, HumanConfidenceLiveTest
  • Pull requests: #133, #134, #159, #163, #173, #158, #148, #193, #58, #55, #216, #115, #162, #221, #223

9. Documentation

AGENTS.md says a test that fails on timing is fixed rather than run again (#122). A new context7.json describes the repository to the Context7 documentation index (#211), and its description is rewritten for someone using the library (#212).

Breaking changes

  1. Environment variable names. FOD_CLOUD_API_URL becomes _51DEGREES_CLOUD_ENDPOINT, 51DEGREES_DD_PATH and 51DEGREES_IPI_PATH gain the leading underscore, and LICENSE_KEY, RESOURCE_KEY and 51DEGREES_RESOURCE_KEY become _51DEGREES_LICENSE_KEY and _51DEGREES_RESOURCE_KEY, with the full table in #213. PORT, EXAMPLE_URL and EXAMPLE_LANG become _51DEGREES_EXAMPLE_HTTP_PORTS, _51DEGREES_EXAMPLE_URL and _51DEGREES_EXAMPLE_LANG, the project.root system 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.
  2. Public members removed from the published packages (#220).
    1. pipeline.cloudrequestengine Constants.FOD_CLOUD_API_URL, replaced by Constants.CLOUD_ENDPOINT_VARIABLE.
    2. pipeline.did DidClient.ENDPOINT_VARIABLE, replaced by DidClient.CLOUD_ENDPOINT_VARIABLE.
    3. device-detection.shared FileUtils.UA_FILE_NAME and FileUtils.UA_FILE_PATH, replaced by FileUtils.EVIDENCE_FILE_NAME and FileUtils.EVIDENCE_FILE_PATH.
    4. ip-intelligence.shared KeyUtils.RESOURCE_KEY_ENV_VAR, KeyUtils.getResourceKey(String), FileUtils.IPI_PATH_ENV_VAR and FileUtils.IP_ADDRESSES_FILE_NAME, replaced by KeyUtils.RESOURCE_KEY_VARIABLE, which now names _51DEGREES_RESOURCE_KEY_BESPOKE, FileUtils.IPI_PATH_VARIABLE and FileUtils.EVIDENCE_FILE_NAME.
  3. Writes after processing throw IllegalStateException. addEvidence, getEvidence().put, populateFromMap, getOrAdd for a new key and addError after process() returns or throws, and a write to Element Data whose Flow Element has finished. FlowDataDefault.get(String) before processing throws IllegalStateException, as does getWhere (#201, #202, #175, #171).
  4. A Pipeline with usage sharing anywhere but last fails to build with PipelineConfigurationException, in code or from a configuration (#203). An element added to a builder after build() no longer joins the Pipeline already built (#171).
  5. Lazy loading has no effect. Values are there when process returns (#202). The Cloud Request Engine returns before the response arrives, so a Pipeline holding only that engine no longer throws a failed request from process, and getJsonResponse() gives it instead (#208).
  6. Pooled Element Data. A reference to Sequence, Set Headers, JSON Builder or JavaScript Builder Element Data kept after its Flow Data is closed may show another request's values (#207).
  7. Letter case. Element Data and Evidence keys are found whatever their case, and an EvidenceKeyFilterWhitelist made without a comparator ignores case, so pass Comparator.naturalOrder() to keep comparing with case (#167, #169). Under a Turkish or Azeri default locale the JSON Builder now writes ismobile where it wrote ısmobile (#135). setProperties(String) splits at every comma (#166).
  8. Usage sharing. A query string or form parameter is shared only when it starts with 51D_ or the Pipeline uses it, whatever the options (#205). Share all Evidence shares no cookie but 51D_ ones (#160). A header named Cookies is shared, so block it with setBlockedHttpHeader("Cookies") to keep it out (#132). DateSent is UTC and ShareUsageBase.DATE_FMT is deprecated (#139). Records carry the process values only in the first record and hourly, tied together by ProcessId (#164). Closing discards what is queued after 4.5 seconds (#147, #180).
  9. Data updates. A failed check is logged at Error, not Warning (#129). A response with no Content-MD5 is applied (#186). An update callback can be given AUTO_UPDATE_UNKNOWN_ERROR, so a switch over AutoUpdateStatus with no default will 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 throws IllegalStateException (#214, #215).
  10. Values. Latitude and Longitude are Float where they were String wherever 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 throws PropertyMissingException (#143). Missing Property reasons and messages change, with a new MissingPropertyReason.CloudRequestFailed (#175). getComponents() ends with a Metrics component whose default profile is null (#174).
  11. The JSON and JavaScript Builders. The JSON Builder's errors is a list of messages, not an object keyed by element (#128), and a Property with no value has a null entry beside its nullreason (#145). The script is minified by default, so set setMinify(false) to keep the old output, and pipeline.javascriptbuilder has a new dependency (#178). A browser whose Promise is "Full" gets the promise form (#194).
  12. HttpClientDefault fails a request with SocketTimeoutException when 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).
  13. The test utility classes FileUtils and KeyUtils are deprecated in the published jar (#175).
  14. Examples. A cloud example with no resource key exits 0 (#163), the on-premise getting started console example no longer shares usage (#173), and the web examples listen on 5151, where _51DEGREES_EXAMPLE_HTTP_PORTS can 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

  1. One draft is open into 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, and HttpURLConnection followed that answer's Location header by itself. DataUpdateServiceDefault now makes its first request with redirects off, and on a 300 that lists AvailableUris repeats it naming the product of the loaded data file, failing with the products offered when none matches. It changes pipeline/pipeline.engines/ (DataUpdateServiceDefault, DataUpdateUrlFormatter), pipeline/pipeline.engines.fiftyone/ (FiftyOneUrlFormatter) and the Device Detection UpdateDataFile example, with DataUpdateServiceProductTests, FiftyOneUrlFormatterTests and UpdateDataFileTest.
  2. The release build at 123e288 is running. Its Release Pull Request run, the first with cxx at 699a9789, started at 10:48 UTC on 23 November. The runs at 31b9c35, f92161d and 64adf85 were cancelled when rc moved. The run at 235cbb1d failed on all 15 Build and Test entries in three CloudRequestEngineTests tests, OriginHeader, Process and Process_LicenseKey, which expected the public service while CI set _51DEGREES_CLOUD_ENDPOINT to the staging service (#229 changes them, section 2 item 4), and MacOS_X64_Java_17 stopped earlier because Maven could not download maven-resources-plugin 3.3.1. The build stopped at pipeline/pipeline.cloudrequestengine, so the Device Detection, IP Intelligence and Location modules, and the integration tests, have not yet run in CI at this release.
  3. The Cloud Request Engine's own order differs from the advised order in two cases, in pipeline/pipeline.cloudrequestengine/src/main/java/fiftyone/pipeline/cloudrequestengine/flowelements/CloudRequestEngineBuilder.java. setEndpoint adds "/" before it stores the address, so a blank address given in code becomes "/" and never falls through to _51DEGREES_CLOUD_ENDPOINT. When only setDataEndpoint, setPropertiesEndpoint or setEvidenceKeysEndpoint is called, the build replaces that address with the variable or the default. No pull request changes this yet.
  4. The browser contract under #225 has not yet passed in this repository's CI, because the release build stops before the integration tests. Its pull request shows the same change passing against the suite's main in the Rust, .NET and Node repositories.
  5. IP Intelligence on-premise reads still take a lock. #177 made every read of the native results take one lock, and IPIntelligenceDataHashDefault on rc still holds resultsLock, whereas the specification's rules for parallel operation now say results instances take no lock, as #174 did for Device Detection.
  6. Several merged pull requests name macOS as not yet built for their change. The release build runs macOS, so it is the first macOS build of those changes.
  7. Follow-ups named by the merged pull requests are #28, the order of the Evidence entries in the usage sharing record, #150, the rest of the data update errors table, #176, readers of empty cloud Property metadata, #181, the defaults beside the location and example builder setters, and #182, test utility classes in the published jars.

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 reaches main.

…#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
…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.
…ion sets out (#139)

Part of [#28](#28), which stays open for one point only, the order of the Evidence entries (point 9 below).
…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.
jwrosewell and others added 14 commits November 21, 2026 21:01
…make lazy loading have no effect (#202)

Fail a write to Element Data once its Flow Element has finished, and make lazy loading have no effect. Reviewed at 0af9bf2 with no high finding open, and all 5 checks on that head passing.
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.
…rns without waiting (#208)

Make the cloud response a lazy task, so the Cloud Request Engine returns without waiting. Reviewed at 47c3fba with no high finding open, and all 5 checks on that head passing.
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.
…229)

TEST: Expect the cloud address the environment gives in engine tests. Reviewed at 231bde6 with no high finding open, and all 5 checks on that head passing.
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.
…olds several (#233)

FIX: Ask for the product of the loaded data file when a license key holds several. Reviewed at 3c7f050 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.
…s nothing (#235)

TEST: Check the hardware lookup examples when the cloud fails or finds nothing. Reviewed at 1e664d3 with no high finding open, and all 8 checks on that head passing.
…each with its own key (#237)

TEST: Run the Human Confidence live tests against the staging cloud, each with its own key. Reviewed at 8493fe5 with no high finding open, and all 11 checks on that head passing.
…rst (#236)

TEST: Check the Bespoke key's Human Confidence property and source first. Reviewed at a6380f6 with no high finding open, and all 9 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.
@jwrosewell jwrosewell closed this Nov 25, 2026
@jwrosewell jwrosewell reopened this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment