Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
396 commits
Select commit Hold shift + click to select a range
20f9089
Specification conformance, 51degrees-java, section 15 (#175)
jwrosewell Nov 16, 2026
f957fff
Merge rc into the section 6 conformance work
jwrosewell Nov 16, 2026
8a48c33
Set the close time limit from every runner's measurements
jwrosewell Nov 16, 2026
39d527d
Merge rc into the JDK 25 build change
jwrosewell Nov 16, 2026
901de63
Merge rc into the section 10 conformance work
jwrosewell Nov 16, 2026
9ff3ff4
Merge rc into the section 11 conformance work
jwrosewell Nov 16, 2026
dc71201
Merge rc into the section 5 conformance work
jwrosewell Nov 16, 2026
464d294
Take rc's cloud aspect engine base, whose own way of reporting a fail…
jwrosewell Nov 16, 2026
3b3a671
Fix: list the new web example test as reading the old data file name,…
jwrosewell Nov 16, 2026
343baac
Build the Device Detection example tests from a fresh clone (#187)
jwrosewell Nov 16, 2026
402ab9c
Run the usage sharing builder tests, which JUnit 5 passed over (#142)
jwrosewell Nov 16, 2026
81e3d4a
Describe the examples as they run today in AGENTS.md and the example …
jwrosewell Nov 16, 2026
f17fd53
Build every example and its tests against the published packages
jwrosewell Nov 16, 2026
79de9f2
Merge rc into the usage sharing close time work
jwrosewell Nov 16, 2026
77a0e5e
Assert the specification's 5 second bound on closing
jwrosewell Nov 16, 2026
dbc6c8d
Merge rc into the Device Detection engine work
jwrosewell Nov 16, 2026
4c60460
Merge rc into the Property metadata work
jwrosewell Nov 16, 2026
cdd4138
Take the Device Detection test files off the deprecated FileUtils
jwrosewell Nov 16, 2026
3472227
Take the property metadata test off the deprecated FileUtils
jwrosewell Nov 16, 2026
7a8ae6d
Merge rc into the examples work
jwrosewell Nov 16, 2026
8a20d1e
Use the examples' own key check in hasResourceKey
jwrosewell Nov 16, 2026
77914ce
Take Comparer and its test off the deprecated FileUtils
jwrosewell Nov 16, 2026
d8877db
Merge rc into the JDK 25 build work
jwrosewell Nov 16, 2026
db2907a
Merge rc into the IP Intelligence weightings work
jwrosewell Nov 16, 2026
effb54f
Test that a missing Property is answered in plain text with the tagge…
jwrosewell Nov 16, 2026
3afe55c
Answer a missing Property with the tagged contact link in plain text
jwrosewell Nov 16, 2026
88c03aa
Keep rc's getNamedKey and isInvalidKey, which the merge of rc gave th…
jwrosewell Nov 16, 2026
a52f006
Keep rc's missing property service tests, which an earlier merge of r…
jwrosewell Nov 16, 2026
c441d14
Merge rc into examples/comparer-free-file
jwrosewell Nov 16, 2026
0955829
Merge rc into examples/cloud-no-key
jwrosewell Nov 16, 2026
bd93f86
Leave the Derived Property Element, Comparer and the cloud examples w…
jwrosewell Nov 16, 2026
4c75843
Test that a Promise of Full made at run time gives the script its pro…
jwrosewell Nov 16, 2026
7fd9ea0
Compare the Promise value as text, so Full read from a data file give…
jwrosewell Nov 16, 2026
49e8960
Merge rc into fix/data-update-check-failures
jwrosewell Nov 16, 2026
d4122b2
Merge rc into fix/evidence-key-case
jwrosewell Nov 16, 2026
0bf566c
Use the examples' own key check, as rc's examples no longer import Ke…
jwrosewell Nov 16, 2026
e8c2559
Keep FileUtils and KeyUtils in the published jar, deprecated, as rc h…
jwrosewell Nov 16, 2026
60d509f
Let the published jar keep the two deprecated test helpers, and nothi…
jwrosewell Nov 16, 2026
6d4454c
Read cloud Device Detection values when the Property metadata is empt…
jwrosewell Nov 16, 2026
820a544
Minify the JavaScript with a third-party library, and test the JSON e…
jwrosewell Nov 16, 2026
56c21f5
Build the IP Intelligence API example on this repository's JSON Build…
jwrosewell Nov 16, 2026
12c0e79
Merge rc into the Device Detection engine work
jwrosewell Nov 16, 2026
d0362dc
Test: run-fresh-clone-example.ps1 takes -ExpectDownload as typed with…
jwrosewell Nov 16, 2026
075ffb8
Fix: run-fresh-clone-example.ps1 takes -ExpectDownload as a switch
jwrosewell Nov 16, 2026
06ac80d
Read each options file from the example's own resources in the config…
jwrosewell Nov 16, 2026
3276aab
Quote the specification's cleanup sentence in the close limit test
jwrosewell Nov 16, 2026
3384bec
Merge rc into fix/evidence-key-case
jwrosewell Nov 16, 2026
c218e23
Read the script as written in the query prefix test, as rc now minifi…
jwrosewell Nov 16, 2026
4e01032
Merge rc into fix/cloud-response-warnings
jwrosewell Nov 16, 2026
b6c613f
Merge rc into fix/promise-full-equals
jwrosewell Nov 16, 2026
b4d6f50
Test that a watcher check whose refresh throws an Error leaves a poll…
jwrosewell Nov 16, 2026
115197b
Register a watched data file again however its refresh ends, so an Er…
jwrosewell Nov 16, 2026
c1e7424
Process through the engine's public process in the empty metadata tes…
jwrosewell Nov 16, 2026
e2d9a01
Share every query value by default, and no cookie but 51D_ ones even …
jwrosewell Nov 16, 2026
933e424
Lock every read of IP Intelligence native results, type Latitude and …
jwrosewell Nov 16, 2026
c54795a
Log the data update errors table's rows as the specification gives th…
jwrosewell Nov 16, 2026
0b07ef0
Merge rc into fix/data-update-check-failures
jwrosewell Nov 16, 2026
fd2bda3
Split a property list given as one string at every comma (#166)
jwrosewell Nov 16, 2026
46115d7
Find Element Data by its key whatever the case (#167)
jwrosewell Nov 16, 2026
5cae01c
Merge rc into the Property metadata work
jwrosewell Nov 16, 2026
9af6ee0
Keep rc's TypedKeyMapBuilder, which #167 brought
jwrosewell Nov 16, 2026
96a04e4
Say in the empty metadata tests that the cloud request ran, as the sh…
jwrosewell Nov 16, 2026
91b52ae
Let the published jar keep the folder entry of the two deprecated tes…
jwrosewell Nov 16, 2026
1353220
Test that the web docs and examples say a Flow Data is used by one th…
jwrosewell Nov 17, 2026
88b8bff
Test that usage sharing runs last and is refused anywhere else
jwrosewell Nov 18, 2026
51d40de
Test the Pipeline builder's check for a Flow Element that runs last
jwrosewell Nov 18, 2026
3d29fb3
Run usage sharing last and refuse it anywhere else
jwrosewell Nov 18, 2026
51119b9
Say and show in the web docs and examples that a Flow Data is used by…
jwrosewell Nov 18, 2026
72f1186
Test that a parallel group member adds its Element Data without waiting
jwrosewell Nov 18, 2026
6541cc3
Add Element Data with one compare and swap, and take no lock to add it
jwrosewell Nov 18, 2026
3cb282b
Test that each on-premise builder adds usage sharing after caller ele…
jwrosewell Nov 18, 2026
49cb34c
Test that a refused on-premise builder closes what it made
jwrosewell Nov 18, 2026
5fde454
Close what a refused on-premise builder made
jwrosewell Nov 18, 2026
6a0290d
Test that parallel group members add their errors under a lock
jwrosewell Nov 18, 2026
93589da
Add parallel group members' errors under a lock while the group runs
jwrosewell Nov 18, 2026
ce10eaf
Merge pull request #140 from 51Degrees/fix/pmd-jdk25
jwrosewell Nov 18, 2026
7b5aa6e
Merge pull request #180 from 51Degrees/remote/java-06
ben51degrees Nov 18, 2026
0aef389
Merge pull request #196 from 51Degrees/remote/java-expectdownload
ben51degrees Nov 18, 2026
a9ec006
Merge pull request #203 from 51Degrees/parallel/usage-sharing-last
ben51degrees Nov 18, 2026
cfc7f0b
Merge pull request #204 from 51Degrees/parallel/web-flow-data-one-thread
ben51degrees Nov 18, 2026
a21a2df
Merge pull request #206 from 51Degrees/parallel/element-data-no-lock
ben51degrees Nov 18, 2026
59eaa6d
Merge pull request #169 from 51Degrees/fix/evidence-key-case
ben51degrees Nov 19, 2026
6980ed0
Merge pull request #53 from 51Degrees/fix/seo-doxyfile-noindex-titles
jwrosewell Nov 19, 2026
eb6a79e
Merge pull request #56 from 51Degrees/bug/did-live-test-another-address
jwrosewell Nov 19, 2026
07a94dd
Merge pull request #163 from 51Degrees/examples/cloud-no-key
ben51degrees Nov 19, 2026
c52cdbc
Merge pull request #165 from 51Degrees/fix/cloud-response-warnings
ben51degrees Nov 19, 2026
49bc431
Merge pull request #168 from 51Degrees/test/usage-sharing-untested
ben51degrees Nov 19, 2026
59d11e4
Merge rc into the Property metadata work
jwrosewell Nov 19, 2026
6998871
Read the stored string with no lock on the results instance
jwrosewell Nov 19, 2026
9d5db0e
Check that the IP Intelligence example prints each value's weighting
jwrosewell Nov 19, 2026
4bb1bbe
Test: Device Detection data reads its native results with no lock
jwrosewell Nov 19, 2026
bcac3b8
Fix: read Device Detection's native results with no lock
jwrosewell Nov 19, 2026
bfc08ce
Keep cloud Device Detection's own processing, as released
jwrosewell Nov 19, 2026
7014ac9
Test: TranslationEngineBase stays a concrete public class
jwrosewell Nov 19, 2026
f34859b
Fix: keep TranslationEngineBase concrete, as released
jwrosewell Nov 19, 2026
f2e9f4f
Merge rc into the IP Intelligence weightings work
jwrosewell Nov 19, 2026
1166f45
Read each IP Intelligence value by name, so the example prints its we…
jwrosewell Nov 19, 2026
69de988
Keep the released ComparerTest
jwrosewell Nov 19, 2026
1442b1d
Merge rc into the root locale work
jwrosewell Nov 19, 2026
e9852a1
Merge rc into the cloud host lookup work
jwrosewell Nov 19, 2026
3b95ce0
Merge pull request #158 from 51Degrees/examples/comparer-free-file
jwrosewell Nov 19, 2026
c31e733
Merge pull request #173 from 51Degrees/remote/java-05
ben51degrees Nov 19, 2026
3bb6e71
Merge pull request #179 from 51Degrees/remote/java-10
ben51degrees Nov 19, 2026
9b1fa72
Merge rc into the work that builds every example in the fresh clone c…
jwrosewell Nov 19, 2026
ebe5997
Merge pull request #135 from 51Degrees/fix/root-locale
jwrosewell Nov 19, 2026
d340e1b
Merge pull request #148 from 51Degrees/examples/ipi-weightings
ben51degrees Nov 19, 2026
5a4caf5
Test that the cloud IP Intelligence page credits OpenStreetMap for it…
51DTechResponse Nov 19, 2026
fd2b13c
Credit OpenStreetMap, not CARTO, on the cloud IP Intelligence page
51DTechResponse Nov 19, 2026
4c1dfa7
Describe the repository to Context7
jwrosewell Nov 19, 2026
06a7d13
Merge pull request #211 from 51Degrees/docs/context7-one-commit
jwrosewell Nov 19, 2026
0f89937
Merge pull request #55 from 51Degrees/feature/switch-leaflet-to-osm-t…
jwrosewell Nov 19, 2026
a90bdd4
Stop reading the deprecated environment variable names
jwrosewell Nov 19, 2026
6de8e0f
Stop reading the old endpoint name in the client test
Tracy51D Nov 19, 2026
b0134b8
Merge pull request #213 from 51Degrees/env/remove-old-names
ben51degrees Nov 19, 2026
905c8bc
Merge pull request #146 from 51Degrees/fix/data-update-check-failures
ben51degrees Nov 19, 2026
6503c27
Merge pull request #193 from 51Degrees/examples/missing-property-plai…
ben51degrees Nov 19, 2026
dd4c53f
Merge pull request #194 from 51Degrees/fix/promise-full-equals
ben51degrees Nov 19, 2026
5269b68
Merge pull request #192 from 51Degrees/remote/java-fresh-clone
ben51degrees Nov 19, 2026
1364548
Merge pull request #123 from 51Degrees/feature/cloud-host-lookup-with…
ben51degrees Nov 19, 2026
4ff58d8
Merge pull request #174 from 51Degrees/remote/java-11
ben51degrees Nov 19, 2026
bf86d3e
Make the cloud mixed web example pass the shared browser tests (#58)
ben51degrees Nov 19, 2026
fc6f28a
Run one refresh of an on-premise engine at a time (#214)
ben51degrees Nov 20, 2026
4dc7a39
Context7 description written for this library (#212)
jwrosewell Nov 20, 2026
d50a748
Document the Sequence Element must not run in a parallel group (#195)
jwrosewell Nov 20, 2026
4afa278
Write usage sharing invariant values hourly, tied by a ProcessId
jwrosewell Nov 20, 2026
3fec0a5
Fail every write to a Flow Data that has finished processing (#201)
jwrosewell Nov 20, 2026
03328ec
Listen on port 5151 by default in the web examples (#216)
51DTechResponse Nov 20, 2026
fe21818
Close an on-premise engine only after a running refresh ends, and ref…
51DTechResponse Nov 21, 2026
8d29d01
Specification conformance, 51degrees-java, section 13 (#171)
jwrosewell Nov 21, 2026
da70593
Share a query or form parameter only when 51D_ or the Pipeline uses i…
jwrosewell Nov 21, 2026
712b03a
Add the Derived Property Element and its example (#156)
jwrosewell Nov 21, 2026
fe37e1b
Nine fixes the specification asks for, in usage sharing, data updates…
jwrosewell Nov 21, 2026
11aa49f
Read each test key only under its _51DEGREES_ name, and skip without …
51DTechResponse Nov 21, 2026
021bd02
Fail a write to Element Data once its Flow Element has finished, and …
jwrosewell Nov 21, 2026
eee3c93
Wait longer in tests for macOS file watchers and the live cloud service
51DTechResponse Nov 21, 2026
c1e9e70
Make the cloud response a lazy task, so the Cloud Request Engine retu…
jwrosewell Nov 21, 2026
87d1b6b
Reuse Element Data through an object pool (#207)
jwrosewell Nov 21, 2026
7b17e4c
Let a cloud result replace one the cache will never serve (#219)
jwrosewell Nov 21, 2026
00c3ae6
Add the Human Confidence web example (#221)
jwrosewell Nov 22, 2026
cfe3e38
BUILD: Declare the permissions each workflow needs (#222)
jwrosewell Nov 22, 2026
8bc5d94
BUILD: Read the three resource keys from organization variables (#224)
jwrosewell Nov 23, 2026
3f4d643
BUILD: Give the browser contract suite its _51DEGREES_ names (#225)
jwrosewell Nov 23, 2026
fb4dd28
Check that the Human Confidence example gets HumanConfidenceSource (#…
jwrosewell Nov 23, 2026
6d392a7
BUILD: Read every setting under one _51DEGREES_ name (#220)
jwrosewell Nov 23, 2026
3752dc5
BUILD: Read every resource key from organization secrets (#226)
jwrosewell Nov 23, 2026
9844360
BUILD: Run the workflow key tests on a change to any workflow (#227)
jwrosewell Nov 23, 2026
235cbb1
BUILD: Move the cxx submodule to the head of cxx rc (#228)
jwrosewell Nov 23, 2026
64adf85
TEST: Expect the cloud address the environment gives in engine tests …
jwrosewell Nov 23, 2026
f92161d
TEST: Set the variable in the configuration order test (#230)
jwrosewell Nov 23, 2026
31b9c35
BUILD: Pass the engine CMake options under the names cxx reads (#231)
jwrosewell Nov 23, 2026
123e288
BUILD: Build against cxx 699a9789 (#232)
jwrosewell Nov 23, 2026
8767a08
FIX: Ask for the product of the loaded data file when a license key h…
jwrosewell Nov 23, 2026
3e8ab88
TEST: Check the cloud hardware lookup examples return devices (#234)
jwrosewell Nov 23, 2026
3f99e38
TEST: Check the hardware lookup examples when the cloud fails or find…
jwrosewell Nov 23, 2026
fe159eb
TEST: Run the Human Confidence live tests against the staging cloud, …
jwrosewell Nov 23, 2026
d22baa1
TEST: Check the Bespoke key's Human Confidence property and source fi…
jwrosewell Nov 24, 2026
467a74c
TEST: Give the cloud's reason when a live 51Did test gets no 51Did (#…
jwrosewell Nov 24, 2026
6bd380f
BUILD: Build against cxx 61120767 (#243)
jwrosewell Nov 25, 2026
69f0f48
TEST: Give the cloud engine example tests 15 seconds a request (#247)
jwrosewell Nov 26, 2026
bf0f9cb
FEAT: Read the product of a data file from its header on start-up (#248)
jwrosewell Nov 26, 2026
89531a2
BUILD: Treat every javac and javadoc warning as an error (#240)
jwrosewell Nov 27, 2026
ab4be70
BUG: Refuse a read of pooled element data after its flow data closes …
Mykhailo51D Dec 1, 2026
1fd10a3
Merged Pull Request '#255 build/shared-assets->rc: BUILD: Take the fr…
jwrosewell Dec 1, 2026
26e02d8
FEAT: Cloud engines take their cache from the Cloud Request Engine
jwrosewell Dec 1, 2026
7f391d0
FEAT: Cloud engines ignore a cache of their own with a warning
jwrosewell Dec 1, 2026
b32b97c
FEAT: Read ServiceWorkers through a typed getter
jwrosewell Dec 1, 2026
94222b4
BUILD: Run every module's unit tests past a failing module
jwrosewell Dec 1, 2026
0936380
DOC: Say what the timeouts and data file steps do, without their history
jwrosewell Dec 2, 2026
2984355
BUG: Key the cache on each Evidence name and value, in order
jwrosewell Dec 2, 2026
8512cab
Merge pull request #258 from 51Degrees/build/unit-tests-continue-past…
jwrosewell Dec 2, 2026
76545fe
TEST: Expect a sealed result from the staging passive call
jwrosewell Dec 2, 2026
b794f46
FIX: Move a misplaced usage sharing element to the end instead of ref…
jwrosewell Dec 2, 2026
3a763d3
Merge pull request #257 from 51Degrees/fix/service-workers-getter
jwrosewell Dec 2, 2026
bbb669a
Merge pull request #256 from 51Degrees/feature/cloud-engine-cache-fro…
jwrosewell Dec 2, 2026
d6aecd0
Merge pull request #260 from 51Degrees/fix/cache-key-names-and-order
jwrosewell Dec 2, 2026
2f54fb2
Merge pull request #259 from 51Degrees/fix/comment-history-and-data-f…
jwrosewell Dec 2, 2026
cba7cdb
Merge pull request #263 from 51Degrees/fix/usage-sharing-moved-last
jwrosewell Dec 2, 2026
4e4492e
Merge pull request #262 from 51Degrees/test/human-confidence-sealed-f…
jwrosewell Dec 2, 2026
f9c052a
TEST: Run only the first update check in the file not updated test
jwrosewell Dec 2, 2026
d3c0532
FEAT: Pass the cloud's page scripts and their answers through a serve…
jwrosewell Dec 2, 2026
79f8b9c
Merge pull request #264 from 51Degrees/test/data-update-file-not-upda…
jwrosewell Dec 2, 2026
7342eed
Merge pull request #265 from 51Degrees/feature/cloud-request-engine-c…
jwrosewell Dec 2, 2026
fd3af2b
FIX: Give the ServiceWorkers getter a default in DeviceData
jwrosewell Dec 2, 2026
374ce14
FIX: Take HumanConfidence 0.10.0 and read stored text for boolean checks
jwrosewell Dec 2, 2026
edb5df4
Merge pull request #266 from 51Degrees/fix/service-workers-default-ge…
jwrosewell Dec 2, 2026
71df2b2
Merge pull request #267 from 51Degrees/fix/human-confidence-script-no…
jwrosewell Dec 2, 2026
00e3748
FIX: Read weighted stored text through the typed accessor
jwrosewell Dec 2, 2026
7c08245
TEST: Say which getter the default getter tests cover
jwrosewell Dec 2, 2026
fc12e11
FIX: Turn updates off with a warning when no license key is set
jwrosewell Dec 2, 2026
cf1b8fe
FEAT: Wait for a failed discovery only once per recovery period, and …
jwrosewell Dec 2, 2026
743c641
FIX: Read FOD_CLOUD_API_URL again when _51DEGREES_CLOUD_ENDPOINT is u…
jwrosewell Dec 2, 2026
7f7201e
FIX: Give getOrAdd with a string key the factory's type again
jwrosewell Dec 2, 2026
e678f4a
FIX: Start the recovery period after 10 failed requests, and read an …
jwrosewell Dec 2, 2026
7b332a5
TEST: Expect a later data file with no license key to have its update…
jwrosewell Dec 2, 2026
00f8a9b
FEAT: Set the cloud request time limit and recovery period on the clo…
jwrosewell Dec 2, 2026
e074fa6
BUILD: Build against cxx 152dd945
jwrosewell Dec 2, 2026
8182c0d
FIX: Share one discovery attempt between the requests waiting for it,…
jwrosewell Dec 2, 2026
b95df76
FIX: Keep the Flow Data open until an asynchronous request completes
jwrosewell Dec 2, 2026
bd9638a
FIX: Count a failure status with no body as its status, and treat any…
jwrosewell Dec 2, 2026
41cadb5
FIX: Convert only the default HTTP client's empty failure body, and d…
jwrosewell Dec 2, 2026
71a9c23
FIX: Keep 4.5 subclasses compiling and kept Element Data readable
jwrosewell Dec 2, 2026
617ab5a
FEAT: Redeem Human Confidence in the Pipeline and read it in the 51Di…
jwrosewell Dec 2, 2026
246c653
FIX: Keep more 4.5 code compiling, starting and reading the same JSON
jwrosewell Dec 2, 2026
b440847
FIX: Give HumanConfidence only High, Medium or Low through the Pipeline
jwrosewell Dec 2, 2026
2df10b6
TEST: Give the loaded engine a separate file with no header
jwrosewell Dec 2, 2026
9abeacc
FIX: Give Medium where an earlier element wrote a sealed HumanConfidence
jwrosewell Dec 2, 2026
5aa109d
Merge pull request #271 from 51Degrees/build/cxx-152dd945
jwrosewell Dec 2, 2026
8419f7d
FIX: Name the request's URL without its query in a failure with no body
jwrosewell Dec 2, 2026
dbeb5f5
FIX: Keep the first Flow Data when an asynchronous request is dispatc…
jwrosewell Dec 2, 2026
8a62b3a
FIX: Read text that only looks like a weighted list as the stored text
jwrosewell Dec 2, 2026
8a88159
TEST: Register the temporary folder for deletion before its files
jwrosewell Dec 2, 2026
a75c49d
FIX: Write weighted value keys in lower case only, as the specificati…
jwrosewell Dec 2, 2026
b3882c4
FIX: Take the mark off a request whose completion listener cannot be …
jwrosewell Dec 2, 2026
14a36d2
FIX: Give no value for weighted stored text the typed accessor cannot…
jwrosewell Dec 2, 2026
b3cf670
TEST: Name the keys the weighted value test expects
jwrosewell Dec 2, 2026
a2bdeb8
Merge remote-tracking branch 'origin/feature/did-human-confidence-cli…
jwrosewell Dec 2, 2026
38adfbe
FIX: Give no value for weighted stored text whose typed list is empty…
jwrosewell Dec 2, 2026
ba85c26
BUILD: Build against cxx 4918ab92
jwrosewell Dec 2, 2026
2516d44
Merge pull request #270 from 51Degrees/fix/non-breaking-forms
jwrosewell Dec 2, 2026
e9593dc
Merge pull request #273 from 51Degrees/fix/non-breaking-forms-2
jwrosewell Dec 2, 2026
c4a37af
FIX: Leave an answer with no body to the response check
jwrosewell Dec 2, 2026
0eb3a73
Merge pull request #274 from 51Degrees/fix/non-breaking-forms-3
jwrosewell Dec 2, 2026
5579a19
TEST: Say what each test helper does, and drop an import no longer used
jwrosewell Dec 2, 2026
ce82615
FIX: Take any class as a typed key's type, as 4.5 did
jwrosewell Dec 2, 2026
58ee49a
Merge pull request #276 from 51Degrees/test/product-without-overwriting
jwrosewell Dec 2, 2026
71db3ad
FIX: Remove and replace values of another class through a typed key
jwrosewell Dec 2, 2026
f29c5eb
TEST: Check what the Human Confidence element gives from a server's call
jwrosewell Dec 2, 2026
ac98f3c
FIX: Replace a value of another class with one compare and swap
jwrosewell Dec 2, 2026
59de7fb
TEST: Check the Human Confidence element against its own mapping
jwrosewell Dec 2, 2026
dbe094d
TEST: Check HumanConfidenceSource for every answer that is not sealed
jwrosewell Dec 2, 2026
38b18f9
Merge pull request #275 from 51Degrees/feature/did-human-confidence-c…
jwrosewell Dec 2, 2026
18d72a8
Merge pull request #272 from 51Degrees/fix/async-request-flow-data
jwrosewell Dec 2, 2026
251a8a1
Merge pull request #268 from 51Degrees/fix/weighted-stored-text
jwrosewell Dec 2, 2026
f110b3d
TEST: Keep a sealed result out of the level check's message
jwrosewell Dec 2, 2026
c64acee
TEST: Check a value is given before the live test reads it
jwrosewell Dec 3, 2026
600c022
Merge pull request #269 from 51Degrees/fix/cloud-request-time-limits
jwrosewell Dec 3, 2026
fe79653
Merge pull request #279 from 51Degrees/test/human-confidence-consumer…
jwrosewell Dec 3, 2026
7ee4f36
Merge pull request #278 from 51Degrees/fix/typed-key-any-class
jwrosewell Dec 3, 2026
a99c56c
Merge pull request #277 from 51Degrees/build/cxx-4918ab92
jwrosewell Dec 3, 2026
b0b8664
TEST: Give the made-up License Key no digits
jwrosewell Dec 3, 2026
13ae66c
Merge pull request #280 from 51Degrees/test/made-up-key-without-digits
jwrosewell Dec 3, 2026
97daa46
FIX: Give the recovery period's reason for a sealed result not redeemed
Rakesh51D Dec 3, 2026
d9ec0d4
FIX: Mark a request held back only where the recovery period refused it
Rakesh51D Dec 3, 2026
aa0ff3f
Merge pull request #282 from 51Degrees/fix/hc-recovery-reason
jwrosewell Dec 3, 2026
ae70d2f
FIX: IllegalStateException, not a native call, once the engine's closed
jwrosewell Dec 3, 2026
561b0c6
FIX: Throw for metadata used after the engine's closed
jwrosewell Dec 3, 2026
8830665
BUILD: Stop publishing the example modules
jwrosewell Dec 3, 2026
369fdf4
Merge pull request #285 from 51Degrees/fix/closed-engine-call
jwrosewell Dec 3, 2026
5523659
Pin cxx with the JavaTypes.i leak fix and regenerate the wrappers
jwrosewell Dec 3, 2026
a500206
FIX: Give each cloud typed getter its own type before discovery
jwrosewell Dec 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
59 changes: 59 additions & 0 deletions .github/workflows/ci-script-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI script tests

# Runs the Pester tests of the scripts in ci on Linux and Windows, where the
# builds run them. The environment variable names workflow runs its own test.
# The test of run-fresh-clone-example.ps1 also runs the calls in
# examples-fresh-clone.yml, and workflow-keys.Tests.ps1 reads every workflow,
# so a change to any workflow runs the tests too. native-warnings.Tests.ps1
# reads the native build files and the cxx sources they compile, so a change
# to those, or a move of the cxx submodule, runs them as well.

on:
pull_request:
paths:
- 'ci/**'
- '.github/workflows/ci-script-tests.yml'
# run-fresh-clone-example.Tests.ps1 runs the calls examples-fresh-clone.yml
# makes, and workflow-keys.Tests.ps1 checks the keys every workflow reads.
- '.github/workflows/**'
- '**/src/main/cxx/**'
- 'cxx'
push:
branches:
- main
- rc
paths:
- 'ci/**'
- '.github/workflows/**'
- '**/src/main/cxx/**'
- 'cxx'
workflow_dispatch:

permissions:
contents: read

jobs:
ci-script-tests:
name: Test the CI scripts on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

# native-warnings.Tests.ps1 reads the cxx sources. Their data files
# are not needed.
- name: Check out the cxx submodule
run: git submodule update --init --depth 1 cxx

- name: Run the tests
shell: pwsh
run: |
$tests = Get-ChildItem ./ci -Filter *.Tests.ps1 |
Where-Object Name -ne 'check-environment-variable-names.Tests.ps1'
Invoke-Pester -Path $tests.FullName -CI -Output Detailed
119 changes: 74 additions & 45 deletions .github/workflows/cloud-51did.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
name: Cloud 51Did Tests

# Runs the live cloud 51Did integration test (pipeline/pipeline.did,
# DidClientLiveTests) once for every _51DEGREES_RESOURCE_KEY* key passed in
# below. Each run sets the single _51DEGREES_RESOURCE_KEY the test reads.
# Only keys that carry the fodid product are passed in, because the tests ask
# the cloud for a 51Did and fail, saying so, when a key gets an answer with no
# identifier in it. That is entitlement working rather than a fault.
# DidClientLiveTests) once for each resource key the test names, which is the
# 51Did key with the 51Did license key and the Bespoke key with no license
# key. The test reads each key under its own name. Only keys that carry the
# fodid product are used, because the tests ask the cloud for a 51Did and
# fail, saying so, when a key gets an answer with no identifier in it. That
# is entitlement working rather than a fault.
#
# The secrets are named one by one rather than passed as toJSON(secrets).
# GitHub marks a workflow that hands every secret to a step as possibly
# malicious and holds each run for manual approval, so the nightly never ran.
# A new resource key therefore needs a line here as well as the organisation
# The run also makes the Cloud Request Engine's live test on a license key
# alone (pipeline/pipeline.cloudrequestengine, CloudRequestEngineLiveTests),
# with the cloud license in _51DEGREES_LICENSE_KEY_BESPOKE. Without one that
# test skips. _51DEGREES_LICENSE_KEY holds the license for the data files, so
# it is not set here.
#
# The keys are named one by one. The resource keys and the license keys are
# organization secrets, so a new resource key needs a line here and in the
# test, and a new license key a line here, as well as its organization
# secret.
#
# The tests call the cloud service that the organization variable
# _51DEGREES_CLOUD_ENDPOINT names, and the public service when it names none.
#
# A run with no key available fails. A cloud test that passes without
# calling the cloud reports success having proved nothing, and that is worse
# than a red job. A pull request from a fork gets no secrets, so run this
Expand All @@ -25,16 +34,22 @@ on:
# again, so a field the cloud starts writing, stops writing or changes goes
# unnoticed until a customer finds it. That is what happened when the cloud service began
# writing the Terms byte. The six 51Did packages are
# staggered ten minutes apart so they do not all ask production at once.
# staggered ten minutes apart so they do not all call the cloud service at once.
schedule:
- cron: '10 5 * * *'
pull_request:
branches: [main]
branches: [main, rc]
paths:
- 'pipeline/pipeline.did/**'
- 'pipeline/pipeline.cloudrequestengine/**'
- 'pipeline/owid-java/**'
- '.github/workflows/cloud-51did.yml'

# Every compiler and tool warning is an error in the builds 51Degrees runs.
# The poms and the native CMake files read this variable.
env:
_51DEGREES_WARNINGS_AS_ERRORS: 'true'

jobs:
cloud-51did:
name: Cloud 51Did
Expand All @@ -44,50 +59,64 @@ jobs:
with:
# pipeline.did builds against the owid-java submodule source.
submodules: recursive
# The tests run on Java 8, the oldest Java the packages support. Maven
# runs on JDK 17, the JDK every build compiles with, and compiles for
# Java 8 through the tree's java-8-api profile.
- uses: actions/setup-java@v4
id: test-jdk
with:
# The reactor targets 1.8, so the tests are compiled and run on a
# toolchain that can still produce it.
distribution: temurin
java-version: '8'
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
cache: maven
- name: Cloud 51Did test for each resource key secret
- name: Cloud 51Did tests
shell: pwsh
env:
_51DEGREES_RESOURCE_KEY_BESPOKE: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }}
_51DEGREES_RESOURCE_KEY_51DID: ${{ vars._51DEGREES_RESOURCE_KEY_51DID }}
_51DEGREES_RESOURCE_KEY_51DID: ${{ secrets._51DEGREES_RESOURCE_KEY_51DID }}
# Without a license key the tests that redeem a sealed verdict skip.
# The service only redeems with a license key of the resource key's
# own account, so each one is paired by suffix with the resource
# key it belongs to.
# own account, so the tests use this one with the 51Did resource
# key only.
_51DEGREES_LICENSE_KEY_51DID: ${{ secrets._51DEGREES_LICENSE_KEY_51DID }}
_51DEGREES_RESOURCE_KEY_BESPOKE: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }}
# The license for the cloud products, for the test on a license key
# alone.
_51DEGREES_LICENSE_KEY_BESPOKE: ${{ secrets._51DEGREES_LICENSE_KEY_BESPOKE }}
_51DEGREES_CLOUD_ENDPOINT: ${{ vars._51DEGREES_CLOUD_ENDPOINT }}
run: |
$keys = Get-ChildItem env: |
Where-Object { $_.Name -like '_51DEGREES_RESOURCE_KEY*' -and $_.Value }
if (-not $keys) {
throw ('No _51DEGREES_RESOURCE_KEY* secret is available, so the ' +
'live 51Did tests cannot call the cloud service. The keys ' +
'carry the fodid product these tests need. A pull request ' +
'from a fork gets no secrets, so run this workflow from a ' +
'branch in this repository.')
# A license key whose resource key of the same account is empty
# means that organization secret is missing. Its licensed tests
# would then never run, and the job would still pass, so it fails
# here, naming it.
$missing = @(
@{ Resource = '_51DEGREES_RESOURCE_KEY_51DID'; License = '_51DEGREES_LICENSE_KEY_51DID' }
@{ Resource = '_51DEGREES_RESOURCE_KEY_BESPOKE'; License = '_51DEGREES_LICENSE_KEY_BESPOKE' }
) | Where-Object {
[Environment]::GetEnvironmentVariable($_.License) -and
-not [Environment]::GetEnvironmentVariable($_.Resource)
} | ForEach-Object { $_.Resource }
if ($missing) {
throw ("The organization secret $($missing -join ', ') is " +
'empty or missing, but the license key of the same account is ' +
'set. Add the organization secret, a resource key of the ' +
'same account as that license key.')
}
$failed = $false
foreach ($k in $keys) {
Write-Host "::group::DidClientLiveTests with $($k.Name)"
$env:_51DEGREES_RESOURCE_KEY = $k.Value
$licenseName = $k.Name -replace '^_51DEGREES_RESOURCE_KEY', '_51DEGREES_LICENSE_KEY'
$license = [Environment]::GetEnvironmentVariable($licenseName)
if ($license) {
Write-Host "License key: $licenseName"
$env:_51DEGREES_LICENSE_KEY = $license
} else {
Write-Host 'License key: none'
Remove-Item Env:_51DEGREES_LICENSE_KEY -ErrorAction SilentlyContinue
}
# Only the Pipeline API tree is built, as in its own repository.
mvn -B -f pipeline/pom.xml -pl pipeline.did -am test `
-Dtest=DidClientLiveTests -DfailIfNoTests=false
if ($LASTEXITCODE -ne 0) { $failed = $true }
Write-Host '::endgroup::'
if (-not $env:_51DEGREES_RESOURCE_KEY_51DID -and
-not $env:_51DEGREES_RESOURCE_KEY_BESPOKE) {
throw ('No resource key secret is available, so the live 51Did ' +
'tests cannot call the cloud service. The keys carry the ' +
'fodid product these tests need. A pull request from a fork ' +
'gets no secrets, so run this workflow from a branch in this ' +
'repository.')
}
if ($failed) { exit 1 }
# Only the Pipeline API tree is built, as in its own repository.
$testJava = Join-Path '${{ steps.test-jdk.outputs.path }}' 'bin' 'java'
mvn -B -f pipeline/pom.xml `
-pl pipeline.did,pipeline.cloudrequestengine -am test `
"-Djvm=$testJava" `
'-Dtest=DidClientLiveTests,CloudRequestEngineLiveTests#build_Process_LicenseKeyAlone*' `
-DfailIfNoTests=false
if ($LASTEXITCODE -ne 0) { exit 1 }
98 changes: 98 additions & 0 deletions .github/workflows/cloud-human-confidence.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Cloud Human Confidence Tests

# Runs the Human Confidence web example's live tests
# (examples/device-detection/web/human-confidence, HumanConfidenceLiveTest)
# once, against the staging cloud, because the production cloud does not
# serve HumanConfidenceSource yet. Each test reads its own resource key under
# the key's own name. A call with a Resource Key alone gets HumanConfidence
# as a sealed result, with any source Passive or Active. The Bespoke key's products offer
# HumanConfidence, so its answer carries a sealed result, which the example
# never shows as a level. The Basic key's products don't offer the source,
# so the cloud answers its source as null, with the reason.
#
# CLOUD_STAGING_ENDPOINT, the staging cloud's API base, is an organization
# variable that only CI uses. RESOURCE_KEY_BESPOKE_STAGING is a Bespoke key
# the staging cloud resolves, and _51DEGREES_RESOURCE_KEY_BASIC resolves on
# both clouds. Both keys are organization secrets. A new key needs a line
# here and in the test, as well as the organization secret.
#
# The run fails when a name is empty or when a test is skipped. A cloud test
# that passes without calling the cloud reports success having proved
# nothing, and that is worse than a red job.

on:
workflow_dispatch:
# Nightly as well, so a change in what the service answers is found the
# next morning rather than by a customer.
schedule:
- cron: '20 6 * * *'
pull_request:
branches: [main, rc]
paths:
- 'examples/device-detection/web/human-confidence/**'
- '.github/workflows/cloud-human-confidence.yml'

permissions:
contents: read

# Every compiler and tool warning is an error in the builds 51Degrees runs.
# The poms and the native CMake files read this variable.
env:
_51DEGREES_WARNINGS_AS_ERRORS: 'true'

jobs:
cloud-human-confidence:
name: Cloud Human Confidence
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# The Pipeline packages build from source, and pipeline.core
# reads a submodule.
submodules: recursive
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
cache: maven
- name: Human Confidence tests
shell: pwsh
env:
RESOURCE_KEY_BESPOKE_STAGING: ${{ secrets.RESOURCE_KEY_BESPOKE_STAGING }}
_51DEGREES_RESOURCE_KEY_BASIC: ${{ secrets._51DEGREES_RESOURCE_KEY_BASIC }}
CLOUD_STAGING_ENDPOINT: ${{ vars.CLOUD_STAGING_ENDPOINT }}
run: |
# Each test skips without its key or the endpoint, so a missing one
# fails here, naming every organization secret or variable missing.
$missing = @(
'RESOURCE_KEY_BESPOKE_STAGING'
'_51DEGREES_RESOURCE_KEY_BASIC'
'CLOUD_STAGING_ENDPOINT'
) | Where-Object { -not [Environment]::GetEnvironmentVariable($_) }
if ($missing) {
throw ("The organization secret or variable " +
"$($missing -join ', ') is empty or missing, so the live " +
'tests cannot run.')
}
$report = 'examples/device-detection/web/human-confidence/target/' +
'surefire-reports/' +
'TEST-fiftyone.devicedetection.examples.web.HumanConfidenceLiveTest.xml'
Remove-Item $report -ErrorAction SilentlyContinue
# The example uses the Cloud Request Engine's Human Confidence
# element, so it is built with -Pdev against this repository's
# Pipeline packages, which -am builds first.
mvn -B --no-transfer-progress -Pdev `
-pl examples/device-detection/web/human-confidence -am test `
'-Dtest=HumanConfidenceLiveTest' `
'-Dsurefire.failIfNoSpecifiedTests=false'
if ($LASTEXITCODE -ne 0) {
throw 'The live tests failed.'
}
if (-not (Test-Path $report)) {
throw 'The live tests did not run.'
}
$suite = ([xml](Get-Content -Raw $report)).testsuite
if ([int]$suite.tests -eq 0 -or [int]$suite.skipped -gt 0) {
throw ('A live test was skipped, so it proved nothing. ' +
"$($suite.testcase.skipped.message)")
}
5 changes: 1 addition & 4 deletions .github/workflows/data-file-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,4 @@ jobs:
org-name: ${{ github.event.repository.owner.login }}
dryrun: ${{ inputs.dryrun || false }}
common-ci-ref: ${{ inputs.common-ci-ref || '' }}
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
data-key: ${{ secrets.DEVICE_DETECTION_KEY }}
data-url: ${{ secrets.DEVICE_DETECTION_URL }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/environment-variable-names.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:

jobs:
environment-variable-names:
name: No tracked file names a variable starting with a digit or an old name
name: Every variable name is a 51Degrees or platform name
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/example-assets-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ jobs:
with:
repo-name: ${{ github.event.repository.name }}
common-ci-ref: ${{ inputs.common-ci-ref || '' }}
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
secrets: inherit
Loading
Loading