Full Changelog 5.0.1
Released 2026-10-20 · v7.1.3 · 17 issues · 67 features · 55 fixes
The complete record: every commit in the release, grouped by type, including work that never reaches a customer-facing note. The external changelog is the readable summary of the same release.
Jira References
-
DEV-1598 - Emulation tool > Single Emulator > Start Emulator > Active Emulators > Open > Expand device tree > Page is stuck
-
DEV-2296 - Emulation tool > Basic / Digest authentication > Start Emulator > Connection not established
-
DEV-2459 - Emulation tool > Implement functionality to set the delay tasks execution
-
DEV-2460 - Emulation tool > Implement functionality to predefine task execution result
-
DEV-2567 - Emulation tool > Load Test Mode > Start emulation > The device did not register with OneIoT ACS
-
DEV-2569 - Emulation tool > Single Emulator > Task execution delay functionality is missing
-
DEV-2723 - Emulation tool > Docker > "Active" notification > Update parameter > Inform message with "4 VALUE CHANGE" absent
-
DEV-2724 - Emulation tool > Docker > "Updatable Parameters" is present > Start Emulator > An error occurred
-
DEV-2731 - Emulation tool > Docker > File Download > HTTP server with authorization > Download is failed
-
DEV-2868 - Emulation tool > IPv6 > Register > Device not registered
-
DEV-2916 - Emulation tool > Docker > Basic authentication > Register device > POST request > "Authorization: Basic" tag is absend
-
DEV-2940 - Emulation tool > Docker > Upload > Irrelevant URL > Send > Incorrect "FaultCode" is present
-
DEV-2967 - Emulation tool > Load Test Mode > Start > "Running" state > Total / Active > Incorrect counter value
-
DEV-2968 - Emulation tool > Load Test Mode > Start > "Running" state > Refresh page > State changes to "Ready"
-
DEV-3069 - Emulation tool > Implement NSLookupDiagnostics support
-
DEV-3102 - Emulation tool > TR-069 > Task Execution Results > CWMP Fault 9002 > "faultcode = Client" returned
-
DEV-3274 - Emulation tool > Load Test Mode > "Updatable Parameters" > Implement upload of the "updatableParameters.yaml" or legacy "cpe_self_updated_params.properties" file
Features
-
Add a Delete all button to the panel
Clearing the updatable parameters took either a click on every row or uploading a file with 'parameters: []' - an empty file is refused on purpose, so it cannot wipe the list by accident.
The panel now has a Delete all button next to Upload. It asks for confirmation with the number of parameters, like the page’s other deletes, then saves an empty list through POST /api/updatableParameters, which already cleared the file and the running list. The result or the error is shown under the buttons, where the upload’s result is shown, and the list is re-read from the server afterwards so it shows what the server holds even after a failed delete. The button is disabled while the list is empty.
Tests: a cell pins that saving an empty list clears the file, the GET and the running list. Upload + parser tests 54 run, 1 skipped (POSIX permissions on Windows). Checked in the browser against a container with updatableParameters.yaml bind-mounted on its own, as on Kubernetes: Cancel kept all 131 parameters, OK deleted them on the server and in the mounted file, showed "All 131 parameters deleted" and disabled the button.
-
Accept the old cpe_self_updated_params.properties file
The upload of updatable parameters (e688d4e) took only the YAML format that replaced cpe_self_updated_params.properties in 3.1.0 b.2.9.85, while files in the old format are still around: one "name=min max [step [stepType]]" line per parameter. The same upload now takes such a file when its name ends in .properties.
LegacyUpdatableParametersParser reads it line by line (UTF-8, BOM, CRLF, # and ! comments, blank lines, any run of blanks between values) into the Parameter entries the YAML holds, in file order, all INT. The old numeric step type maps onto the StepType whose generator branch it selected, the generator being unchanged since: 0 RANDOM, 1 INCREMENT, -1 DECREMENT, any other number DEFAULT. As in the old reader a missing step type is RANDOM; "min max" alone, the old "boolean" type that always produced 0, becomes DEFAULT, a random value in the range. A line that cannot be read - not a whole number, 1 or more than 4 values, no '=', no name, a repeated name, the old composite {…} values - is reported with its line number; a file without a single parameter line is refused rather than clearing the list. Bounds and steps are then checked by UpdatableParameterValidator as for YAML, and the list is written to updatableParameters.yaml, the one file the emulator reads; the .properties file itself is not kept.
Tests: LegacyUpdatableParametersParserTest (17 cells) and three upload cells (old file accepted with mapped step types, unreadable line named, min above max named). Checked in the running app with a real 131-parameter file: refused on its line 117 (min 4714250 above max 3725350); with that line fixed, 131 parameters, 89 RANDOM and 42 INCREMENT as the file’s 0 and 1 step types. Full suite 710 run, the same 12 environment-bound cells fail as on dev.
-
Replace the parameters from an uploaded YAML file
Updatable parameters could only be added one by one in the Load Test panel, while the desktop emulator took a ready-made updatableParameters.yaml. The panel now has an Upload button, backed by POST /api/updatableParameters/upload (multipart, field "file"), that takes a file in that same format and replaces the whole list.
The file is accepted only as a whole. It is parsed with SnakeYAML’s default loader (Java type tags refused), then checked with UpdatableParameterValidator, the same check the JSON save runs; broken YAML, an unknown or misspelt field, a wrong structure, an empty upload or an unusable parameter answer 400 with the reason and leave the current file and the running list untouched. An accepted file is written through the existing save path and reloaded at once, so it is stored re-serialized and its comments are not kept. The save path’s write failure is now logged instead of returning a bare 500.
The panel renders parameter names as text, since they can now come from a file someone else wrote. The new operation is pinned in control-api-operations.txt (C0 API contract), and the API reference and user guide describe the upload.
Tests: UpdatableParametersUploadTest (11 cells) drives the endpoint with MockMvc against the real updatableParameters.yaml (saved and restored around each cell): a desktop-emulator file including a numeric array, an empty list, and every rejection case. Full suite 690 run, the 12 failing cells fail identically on dev without this change (HTTPS self-signed certificate, traceroute, port forwarding, env override). Checked in the running app: a valid file replaced the list, an INT without bounds was refused with its name and the list stayed.
-
Runtime serial prefix and lifetime serial list for warm-up storms (S6.4)
PUT/GET /farm/serial-prefix (400 invalid, 409 while running, in memory only); /farm/serials lists every serial the JVM started, so cleanup also deletes warm-up devices; a stop on a never-started emulator no longer fails.
-
Configurable single-device storage path, default unchanged (S6.4)
SINGLE_DEVICE_STORAGE_FILE lets a read-only farm container keep the registry on tmpfs.
-
Latency histograms and cgroup counters on /farm/stats, fleet.autoStart (S6.4)
Every CWMP Inform exchange and every completed session is timed into a fixed log1.005-v1 bucket histogram; /farm/stats gains additive latency and cgroup fields. The farm chart gains fleet.autoStart (default true).
-
Emulator farm capacity harness (local + demo k3s), aligned periodic waves, registration storms (#5)
-
docs(qa-S6.3): SDD for the TR-069 emulator farm (rev 3.4, checkpoint D)
Design for the fleet-by-profile emulator farm: owned serials and product class, env overrides, autoStart, explicit session concurrency, /farm stats and serials, FarmCleanup, the helm chart, the capacity harness and the demo run plan. Design document only; no behaviour change.
-
feat(qa-S6.3): helm chart for the TR-069 emulator farm (U4, WIP)
-
feat(qa-S6.3): farm start parameters, env override, autoStart, session concurrency (U1, WIP)
-
feat(qa-S6.3): load-test sink, local capacity harness, k3s smoke (U5a, WIP)
-
feat(qa-S6.3): /farm/stats and /farm/serials, spread-path periodic anchor fix, log guards (U2, WIP)
-
feat(qa-S6.3): FarmCleanup CLI deletes only prefix-owned serials via the ACS web service (U3, WIP)
-
feat(qa-S6.3): executable demo mode, recover and shim self-test for the farm harness (U5b, WIP)
-
fix(qa-S6.3): demo harness reads the FarmCleanup licence lines, deletes leftover run pods (U5b repair, WIP)
-
fix(qa-S6.3): periodic-off devices park after a session, a Connection Request during a session is no longer dropped (S2 repair, WIP)
-
test(qa-S6.3): live proof that FarmCleanup deletes only owned rows on a real ACS (S3, WIP)
-
fix(qa-S6.3): farm chart zeroes task delays outside the slow class (S2 repair, WIP)
-
fix(qa-S6.3): sink keeps pooled connections alive, every capacity step has a wall bound (S1 repair, WIP)
-
fix(qa-S6.3): a dropped ACS connection ends the session and the retry resends undelivered events (S1 repair, WIP)
-
docs(qa-S6.3): emulator farm page, /farm endpoints, FarmCleanup, harness and local sizing (U6)
-
fix(qa-S6.3): queued events wake parked devices, Connection Requests coalesce, retry keeps TransferComplete (adversary round, WIP)
-
test(qa-S6.3): harness pins teardown lock branches, credential file hygiene, QA-probe outputs and eventless Informs (adversary round, WIP)
-
fix(qa-S6.3): a queued event wakes the device when its slot is released, the wake is spent with its events (adversary round 2, WIP)
-
test(qa-S6.3): k3s ramp check matches batch sizes and tolerates the cold first batch (R8, WIP)
-
test(qa-S6.3): pin the wake-at-once branch for an event queued after the slot was released (adversary round 3, WIP)
-
fix(qa-S6.3): helm string values passed with --set-string so a numeric run id or tag renders (R10, WIP)
-
feat(qa-S6.3): wall-clock periodic alignment grid (rev 3.6 J1a)
PERIODIC_ALIGN_EPOCH_MS aligns every pod’s periodic sessions to T0+kP, phases the scheduler tick to whole seconds and tags each due emission with its grid index. Unset keeps the previous behaviour.
-
fix(qa-S6.3): park keeps a due BOOT, CR 204 documented, start after a clearing stop
-
parkUntilInvoked never parks a device whose scheduled vars carry 1 BOOT or 0 BOOTSTRAP (a Reboot answered late was lost)
-
ConnectionRequest during a session answers 204 (queued): OpenAPI text, client Javadoc, contract IT cells moved to VALUE CHANGE + a CR cell
-
/api/start after a clearing stop reloads the default tree instead of answering 500 (regression of the serial check)
-
-
fix(qa-S6.3): demo harness measures the ACS honestly and tears down safely
Demo mode reads the emulator’s per-wave records, refuses clock skew, caps the farm at the CPU/memory budget and reports the measured honest figure; a background sampler (no lock fd, pid+start checked) aborts the step; every exit writes report.md with an outcome; credentials are removed on any signal and swept by --recover; ftacs SQL runs inside the PDB; a stale --expect-registered no longer keeps the DEMO-OPS lock. SDD rev 3.6.1 committed alongside.
-
feat(qa-S6.3): per-wave emission records and Inform in-flight counters (rev 3.6 J1b)
/farm/stats gains informsWritten, informsInFlight, nowMs and storm/wave records with emission bounds, per-wave in-flight peak, CFS throttled share and CPU pressure over each window, so the harness can tell an under-driven ACS from an emulator-bound pod.
-
fix(qa-S6.3): local sizing from emulator wave records, aligned chart value
Local mode judges steps on the emulator’s storm/wave records, sizes devices per pod with an aligned ladder at the 25% wave-throttle rule, always writes report.md with an outcome, and classifies a dead container instead of dying. The chart renders fleet.alignEpochMs and requests a quarter of the CPU limit. k3s smoke proves two pods started half an interval apart fire their waves together.
-
fix(qa-S6.3): discriminating k3s control, warm aligned ladder, HUP under nohup
-
the epoch-less k3s control predicts the pods' offset from their own first writes and re-staggers once when the prediction is inconclusive
-
the local aligned ladder runs even when every cold storm is emulator-bound (it starts at the smallest storm N)
-
the self-test resets SIGHUP so it passes under nohup
-
-
fix(qa-S6.3): park survives a stop, window length in emission records
-
parkUntilInvoked no longer throws for a device a Stop already unscheduled (the teardown after it was skipped)
-
storm/wave records carry windowMs, the length of the cgroup window their throttle and pressure figures cover
-
tests: digest challenge counts one Inform exchange, fast exit paths count their write, the grid tag reaches the Inform write
-
-
test(qa-S6.3): starved knee on the emulator’s window, lock fd, multi-pod shim
wave_knees takes the starved ratio over the record’s windowMs and refuses records missing a field; sampler and long children close the lock fd by variable; the self-test opens the fake lock fd, runs two-pod, not-Ready and failed-read fixtures and pins the skew rule.
-
test(qa-S6.3): shim records match the emulator’s open/closed shape
The shim emits closed only with a known window, an open record short of N reads aligned-not-reached, and a failed final stats read keeps the pod’s previous wave records (knees none, written 100).
-
docs(qa-S6.3): farm sizing from the fix-round runs, budget rule, recover path
Sizing from local runs u69306/s6c2ba with the 500-1000 variance and the conservative demo value, knee legend, demo CPU/memory budget and the honest-figure rule, /farm/stats Inform counters and wave records, ConnectionRequest 204 during a session, recover with the demo id.
-
test(qa-S6.3): the kept-records case proves its last read failed
-
fix(qa-S6.3): storm closes on the tick, stopped devices are safe everywhere
-
the storm window closes only on the scheduler tick, after its target has caught up with a registration still in progress
-
every AcsSessionChecker session-vars access is a no-op for a device a Stop already unscheduled
-
FarmCleanup positive() renamed intAtLeast; tick constants moved up
-
-
fix(qa-S6.3): demo keeps its lock after a failed cleanup, storms never block periodic
-
teardown after a deleting cleanup pass expects 0 devices (the lock was kept for good); recover sweeps its own credentials copy too
-
a storm hard knee stops only the storm steps; storms are sized by DEVICES_PER_POD_STORM; the report always states the CPU the full 10000 aligned and 1000 storm targets need
-
bounded kills a child that ignores SIGALRM (kubectl, helm, docker)
-
CPU budget rate from per-pod deltas; outcome names a killed step; every timeout knob and identifier validated, also on --recover
-
-
fix(qa-S6.3): a dead ladder step fails the run, short windows can still be bound
-
run_ladder/storm loop/storm_ladder exit on a dying step instead of printing a figure
-
wave_knees: a window under 200 ms is emulator-bound when CPU >= 0.9 x the pod limit and the in-flight peak stays below the informs written; reported as gate=short-window
-
starved is judged on the storm and waves k>=1 only, never wave 0
-
local cold-storm ladder yields devices_per_pod_storm; report gains a gate column and a legend sentence per metric column
-
-
fix(qa-S6.3): local exit 4 on unmeasurable storm figure, headline prose, storm CPU cores from the storm record
-
fix(qa-S6.3): reschedule with the already-checked session vars
scheduleSession and parkUntilInvoked null-checked the session vars and then scheduleEmulator read them a second time; a Stop between the two reads registered the stopped serial with null vars (NPE in firstSessionDue under periodic alignment). The checked vars are now passed in.
Tests: a stub scheduler whose second read returns null pins the race; the unscheduled-serial cell also covers both addTransferCompleteStruct overloads and is renamed to should_X_when_Y.
-
fix(qa-S6.3): storm figures labelled with a vCPU estimate, recover holds the lock
-
default demo storm steps are the owner targets B1000 BOOT1000; a storm hard knee whose hard classes are all emulator-side labels the step and the later storm steps still run, an ACS-side one still skips them
-
every storm step prints the 2 vCPU/pod offered-load label and an un-throttled 1000-device vCPU bracket from the per-pod cgroup usage and throttled time over the step (estimate unavailable: <reason> otherwise)
-
the pre-run storm line states the offered load, the aligned line the declared D_pp and the farm.adoc Sizing range; the dry-run refuses a non-numeric DEVICES_PER_POD(_STORM) naming the Sizing rule
-
teardown zeroes the stored expect before its deleting pass, so a --recover after an abort past the serials read releases the lock
-
--recover holds the flock for its lifetime; a capped storm skip records storm_stopped; bounded installs its signal handlers before the fork
-
report gains a Hazelcast mem max column
-
-
docs(qa-S6.3): farm.adoc round-3 harness behaviour, short-window rule, storm sizing, changelog
-
fix(qa-S6.3): storm vCPU estimate falls back to the emulator’s storm records
-
when the per-pod cgroup bracket is unavailable (a storm inside one 5 s sample), the storm line gives a lower bound from the pods' own storm window records (cpuUsageUsec / windowMs); both missing names both reasons
-
usage text: default DEMO_STEPS starts at B1000 BOOT1000, the B100 storm ladder is opt-in
-
-
docs(qa-S6.3): farm.adoc storm-estimate fallback line, usage DEVICES_PER_POD source
-
fix(qa-S6.3): r4 harness cells (cgroup bracket e2e, knee set, dpp knobs, exit 3) and runbook wording
-
feat(qa-S6.3b): FarmCleanup farm-profile and product-class setup modes
Adds --create-farm-profile, --delete-farm-profiles and --delete-class (guarded by dataStoreExclusionModels, fail-closed) on the ACS main web service, for the farm’s run-owned ACS rows. No release-notes entry: emulator test tooling, no ACS behaviour change.
-
test(qa-S6.3b): sink SetParameterValues of the periodic interval, grid and park pins
CwmpSink --set-periodic-s <a>[,<b>] sends one SetParameterValues of PeriodicInformInterval per serial (parity split), consumes the response and counts spvSent/spvAccepted/spvFaults/spvSkipped; --self-check runs offline. Pins: an ACS-set interval equal to P keeps the epoch grid, 86400 leaves it; parkUntilInvoked second caller (R8-5). No release-notes
-
feat(qa-S6.3b): demo teardown removes the run’s ACS rows, run-id claim, jq refusal
One idempotent farm_acs_rows_remove per run id (farm profile, then the product class/group, each verified 0; kept only when dataStoreExclusionModels is set), a run-id claim before first use, one WS-stamp wrapper, jq refusal with a remedy in demo and --recover, report K1 line + ACS objects table, local teardown-failure exit text. No release-notes entry: emulator test tooling only.
-
feat(qa-S6.3b): P steps seed a run-owned farm profile, drain the ACS bootstrap tasks, check the binding
Each P step registers one seed device so the ACS creates the run’s product-class group, refuses if a profile of that name or an active group profile already exists, creates ftqa-farm-pf<run> at the grid P, verifies it, drains the run’s pending ACS tasks inside the phase-1 sampler (settle window, running-minimum stall, cap; a miss is the hard knee acs-not-drained) and checks every device is bound to the farm profile before the aligned phase. k3s-smoke gains install F (WIP: the sink parity rule is fixed in the next commit). No release-notes entry: emulator test tooling only.
-
docs(qa-S6.3b): farm profile and drain, K1 teardown, jq requirement, install F
-
fix(qa-S6.3b): sink parity from the 5-digit device number of real farm serials
The rule read the text after the last '-', which real serials (pf<run>-n0-001SN00002<tree serial>) never make numeric, so every SetParameterValues was skipped on the k3s run r957e3. No release-notes
-
test(qa-S6.3b): install F judges each serial by its SPV outcome, keeps pod logs on failure
-
fix(qa-S6.3b): teardown removes only the farm profile this run created; foreign group profiles keep the class
Profile removal is keyed on the run’s own create record (written after the pre-create checks, right before the create call) and the run’s group, so a profile of the same name the run did not create is never looked up or deleted. The pre-create check refuses on any profile in the group, and the class is kept (rc 0, named in the report) while a foreign profile still references it. Adds the drain, settle, cap-clock and QA-gate cells the test review asked for. No release-notes entry: emulator test tooling only.
-
fix(loadtest): keep ACS refusal text and truthful teardown records in demo mode
-
every own ACS web-service call appends op, rc and full output to <runDir>/ws-calls.log; aborts and teardown texts carry the ACS refusal line
-
the ACS-objects record is written at claim time, so a run stopped before removal keeps its row; the residue line claims "verified 0" only when every record is verified, otherwise names the run and the recover command
-
a teardown retry never replaces a more informative record; a class delete writes a "sent" marker before the call
-
drain mode keeps the registration bound; the wall extension starts at registered=N and the drain cap knee wins over the wall in the same sample
-
refusal texts carry a what-to-do (group-profile, run-id collision, foreign-profile class kept, jq missing in local and demo mode alike)
-
the drain line reports the run devices' failed-task count; drained_s is labelled as the hold time
-
dry-run runbook prints the P step in execution order; operator text no longer carries internal tracking ids
-
self-test cells: same-name profile in another group is never deleted, stopped-run residue row, refusal text in abort and log, retry keeps ids
-
-
docs(farm): refresh the demo-mode page for refusals, run records and the drain rules
Document the group-profile refusal, the run-id collision and the kept product class with their remedies, ws-calls.log, the run record written at claim, the residue line, failed_tasks and drained_s in the drain line, the P-step order and the drain wall rule. Drop dead file:line references and internal ids.
-
fix(loadtest): make the residue line true for kept, unused and re-sent deletes
-
a run id claimed but aborted before install gets a read-only check at teardown (product class group + farm profile count) and is reported as "aborted before install, nothing installed, verified 0" instead of a NOT-verified line whose recover command cannot run
-
a farm-profile delete writes "delete sent" before the call, so a delete the ACS committed with a non-zero call result is reported as deleted
-
the residue line is built from each run record: removed, deleted, kept with reason, nothing installed, not verified; a kept class is never listed under a removed claim
-
the drain wall after registration is bounded from the later of the step wall and the registration time
-
usage text, chart description and teardown runbook label carry no internal tracking ids; farm.adoc lists the farm-profile-failed texts
* Typed Java control client for the tr069-emulator (ft-tr069-emulator-client) + qa-program S2.3: a new module emulator-client/ (typed client for the emulator's control REST API, unit and contract tests against the real emulator jar), client CI and release workflows, docs. No production code of the emulator changed. Squash of qa/S2.3-control-client @ 833ad16 (checkpoint F SOUND on all lenses; client-ci run 38500169331 green). * Add a compose deployment with a per-service .env + The FT_DISK table in the docs portal has been promising tr069-emulator/.env for some time, and the guide documented docker run -e instead. Neither a compose file nor an env file existed in this repository at all. + Adds both, with a single env layer: the emulator has no shared infrastructure, so there is nothing for a root .env to hold. Published host ports stay literal in compose.yml -- the application never reads them, and Compose cannot interpolate them out of an env_file regardless. * Show version.xml build info via /api/version and GUI badges + Ports oneiot_emulator's versioning scheme: groovy-maven-plugin parses the repo-root version.xml into product/build/full.version at validate, spring-boot build-info exposes them via BuildProperties, git-commit-id supplies commit/branch. New VersionController serves GET /api/version; a header badge (v.5.0.1 b.0.0.6 with build/commit tooltip) appears on the bulk page, Single Emulator page and landing, replacing the hardcoded v4.1 footer text. * https://friendly-tech.atlassian.net/browse/DEV-2460[DEV-2460] - Emulation tool > Implement functionality to predefine task execution result * https://friendly-tech.atlassian.net/browse/DEV-2459[DEV-2459] - Emulation tool > Implement functionality to set the delay tasks execution * Pass ACS credentials through start API + Add optional acsUsername/acsPassword to InitDeviceDto and StartProtocolRequest. EmulatorInitializer writes them to ManagementServer.Username/Password on start, but only when non-empty so credentials baked into the XML parameter tree are kept otherwise. Both /apiV2/start and /apiV2/startProtocol funnel through initEmulator, so a single write point covers both entry points. * https://friendly-tech.atlassian.net/browse/DEV-3274[DEV-3274] - Emulation tool > Load Test Mode > "Updatable Parameters" > Implement upload of the "updatableParameters.yaml" or legacy "cpe_self_updated_params.properties" file * https://friendly-tech.atlassian.net/browse/DEV-3069[DEV-3069] - Emulation tool > Implement NSLookupDiagnostics support == Bug Fixes * Stop the updating thread; guard against a leak + UpdatableParametersService started a wrapper Thread around the ParameterUpdatingThread instead of the thread itself, so interrupt() found an unstarted thread (isAlive false) and never stopped anything. Every emptied or deleted updatableParameters.yaml left the updater running; a leaked one woke after minPeriodic-3 s and read the null CpeDataCache.acsSessionChecker, erroring whichever test ran next (ReactiveSessionSchedulerConcurrencyTest NPE, 2 of 3 runs). + Start the ParameterUpdatingThread directly so interrupt() reaches it. The NoLeakedUpdatingThread extension fails a test that leaves an FTParameterUpdatingThread alive; applied to UpdatableParametersUploadTest and ParamsXmlUploadWireTest. Test-only apart from the one-line thread start; no release-notes entry (the file here is version-stamped by the release owner). * Rewrite a mounted parameters file in place + On the Kubernetes deployment every upload of updatable parameters answered 500 "Failed to write updatableParameters.yaml", and Add and Delete in the panel go through the same write. The pod mounts that one file from the volume with a subPath, and rename(2) onto a mount point fails with EBUSY ("Resource busy"), so the write that puts a temp file in place by a move could never succeed there. A Docker single-file bind mount behaves the same. + The file is still replaced by a move where it can be. When the move fails, the content is written into the file in place, so a mounted file, a read-only directory or a Windows reader that holds the file past the retries no longer refuses the save; the reason is logged as a warning. + The panel shows an upload's result under the Upload button, where the user is looking, and keeps it until another file is picked. Before, it was an alert at the top of the page that hid after 3 seconds, so a refused file looked as if the list had been loaded wrongly. A refused file's problems are listed one per line, and an accepted one says how many parameters were loaded. Each row of the list now shows the values the parameter is computed from - its array, or else min..max, and the step - next to its type and step type, so a loaded file can be checked at a glance. + Tests: the Windows cell that held the file open now expects the upload to succeed by rewriting it in place (it answered 500 before the fix). Upload + parser tests 53 run, 1 skipped (POSIX permissions on Windows). Full suite 732 run: only the 12 known environment-bound failures (HTTPS self-signed certificate, traceroute, port forwarding, env override), 1 skipped. Checked on Linux in a container with updatableParameters.yaml bind-mounted on its own: the move failed with "Resource busy", the upload answered 204 and the host file was rewritten; the user's legacy file was refused naming the line-117 parameter whose min is above its max, and the same file with that line fixed loaded 131 parameters (89 RANDOM, 42 INCREMENT, as in its last column). In the browser the refusal and the success message both appeared under the Upload button. * Keep bad encoding a 400, retry a blocked move + - A YAML upload with invalid UTF-8 is a 400 "Invalid YAML" again, not a 500 "Failed to read file" (CharacterCodingException no longer counts as a read failure). - writeAtomically retries the move on AccessDeniedException (10 x 50 ms), since Windows readers open the file without FILE_SHARE_DELETE. - On POSIX the temp file takes the target's permissions, or rw-r--r-- for a first upload, instead of createTempFile's rw-------. * Harden the parameters upload after review + A YAML upload without a 'parameters' list (comment-only, blank, '~', '{}' or 'parameters:') is now refused with a 400 instead of silently clearing every parameter; 'parameters: []' still clears. Duplicate keys inside an entry are refused, and a reader IOException wrapped by SnakeYAML is reported as the 500 'Failed to read file' rather than a 400. + The write is now atomic: the YAML is serialised to a string, written to a hidden temp file next to updatableParameters.yaml and moved over it, so a failing write answers 500 with a body and never leaves a truncated file for the FileWatcher to reload. Writers are serialised by a lock held around write and reload, and UpdatableParametersService init, loadFromFile and interrupt are synchronized so two reloads cannot start two updating threads. Client filenames and YAML errors are written to the log on one line to prevent log forging. + The legacy .properties parser separates the name like java.util.Properties ('=', ':' or blanks), reports every unreadable line at once, names the int range on overflow and uses the escape instead of a literal BOM. Old step type 2 (the old "boolean", always 0) becomes DEFAULT. Docs and tests are updated accordingly. * Bound the forwarder's socket writes + The single-threaded forwarder wrote the reply to the client, and the request to the target, with a blocking socket write that has no time buffers held every later client until a stop (the last limit #24 left open). Both writes now go through write(socket, n), which arms CompletableFuture.orTimeout(WRITE_TIMEOUT_MS = 5000, a backstop) and closes the socket when it runs out; the failed write is reported as SocketTimeoutException "write to <addr> not completed within 5000 ms", one WARN line. The one-exchange-at-a-time design is unchanged. + Delete diagnostics/udp/UDPEchoReader: dead code (no reference outside itself in any tracked file) that printed with System.out. + Tests: a counted cell (next client served and counted at a real target, the stuck client's exchange ends, one WARN naming port and client) with a stalled-write double at the forward(client) seam, since loopback buffers absorb any reply; and a scan pinning the single getOutputStream() to the bounded write. Red on the unfixed code on macOS and Linux; 665/0 on both after; five Linux mutants red. * Bound the forwarder's waits and re-open one that ended + The PR #22 forwarder declared four known limits; each is reproduced by a cell that was red on the unfixed code (macOS and Linux) and is closed here. + - An ended forwarder (accept failure while running, or a programming error) was never re-opened until the ACS changed the mapping, so clients were refused. checkPortForwarding now re-opens a forwarder that is no longer running for an unchanged mapping, once per session end, with a WARN line carrying the count (reopens=). A serving forwarder is left alone. run() logs a programming error once at ERROR; before, it reached only stderr. checkPortForwarding and stop() are synchronized, so a session end can no longer re-open a forwarder that stop() is still stopping, which would orphan the new forwarder holding its port. - The target connect had no time limit, so a target that never answers held every later client until a stop. TARGET_CONNECT_TIMEOUT_MS = 2000. - A connected client that stays silent held the next client the same way. The forwarder stays single-threaded and bounds the client read: CLIENT_READ_TIMEOUT_MS = 2000. A thread per exchange would need a buffer per exchange and a set of in-flight sockets for stop(), and would still need this bound. - UdpEchoServer logged a failed request at ERROR with a stack trace. It now logs one WARN line, port= cause=, as the forwarder does; ERROR stays for a listener that ends. Its logger was named after UDPEchoSender and now carries its own class name. + Tests: PortForwardingUtilTest +4, ForwardingThreadTest +1, UdpEchoServerTest +1. The new verdicts are counted outcomes: the client's stream end, the requests the target received and in what order, the re-open count, and the log level. The time limits serve only as hang backstops. A target that never answers the connect is a loopback listener whose backlog is full. mvn clean verify: 663/0 twice on macOS and twice on Linux (maven:3.9.11-eclipse-temurin-25), against a baseline of 657/0 at 9a136be. 14 Linux mutation probes, all red. + No "release notes.txt" entry: that file is written per version at release time. * One bad exchange no longer ends the forwarder + ForwardingThread.run served exchanges with no per-exchange boundary and closed its ServerSocket only on the stop path. A target read slower than the 20 ms timeout (RuntimeException rethrown), a refused target (returned on a SocketException whose message lacked "socket closed"), a client that closed without sending or a target that closed without replying (write(buffer, 0, -1) threw IndexOutOfBoundsException), and a mapping removed between a change and the earlier forwarder's stop (connect(null) after re-reading the shared HashMap from the forwarder thread) each ended the thread with its port still bound. Clients then queued in the backlog unanswered until the ACS changed the mapping. + run() is now an accept loop around the new forward(client): an IOException ends that exchange only (one WARN line), try (client) closes the client on every path, an empty request is not forwarded, an empty reply is not relayed, and the forwarder gets its target in the constructor. try/finally stop() means an ended forwarder always releases its port through the existing PortRelease stop; an unchecked exception is deliberately not caught. The 20 ms target read timeout is unchanged. + Tests: PortForwardingUtilTest +6 cells (counted outcomes: target accepts, request bytes, client stream end, follow-up probe), new ForwardingThreadTest (1). Gate A: 5 of 9 repro cells red on macOS and Linux; the final cells are 5 of 10 red on the unfixed code (Linux). 10 Linux mutation probes all red. mvn clean verify 656/0 on macOS and Linux (baseline 649/0). No "release notes.txt" entry: that file is written per version at release time, as for #20. * Devices share a UDP echo port, forwarders let theirs go + Every emulated device lives on the one host address, but the UDP echo server was bound per device. A second device the ACS gave the same UDPEchoConfig.UDPPort failed to bind ("Address already in use") and was left with no echo server; once the first device stopped nothing answered on the port. UdpEchoServer now runs one server per port, shared by the devices on it and reference-counted under the class monitor: the last device to let go stops it and frees the port. Enable=0 or UDPPort=0 now stops the device's echo (TR-143); before, a disable left it running. + PortForwardingUtil rebound an external port whose mapping changed target while the earlier ForwardingThread still held it (never stopped): the bind failed and the old target kept the traffic. Turning two mappings off at once removed from the HashMap it was iterating and threw ConcurrentModificationException out of the session end, keeping the second port. The earlier forwarder is now stopped before the new bind, and the removal walks a copy. + ForwardingThread.stop closed its ServerSocket and returned. On Linux (JDK 25) a close while a thread is blocked in accept keeps the port bound until that thread leaves accept: 234 of 500 immediate rebinds failed (macOS 0 of 500), the same deferred close the UDP echo restart hit. The await of the serving thread moved from UdpEchoServer to net/PortRelease, used by both listeners; the forwarder's stop also closes the in-flight client and target sockets, whose read and connect have no time limit, so a client that connected and sent nothing cannot hold the stop. + Guard: ListenerBindSitesTest fails when a fixed-port JDK listener is created outside an allowlisted owner, or an owner does not stop through PortRelease.awaitServingThreadExit. + Tests: UdpEchoSharedPortTest (9), PortForwardingUtilTest (4), the guard (2). Pre-fix 5 of 8 repro cells red on macOS, 6 of 8 on Linux; 13 Linux mutation probes all red. mvn clean verify 649/0 on macOS and Linux (baseline 634/0). * The ACS stub counts a session end before it answers the 204 + AcsStub answered an empty POST with 204 and only then recorded the session end. A 204 carries no body, so the caller's response completed as soon as the headers arrived and a cell reading the counter could see the old value: AcsStubIT read 0 instead of 1 at :74 and :117 (51 of 3000 repetitions on Linux, eclipse-temurin:25). Recording first makes "whoever saw the 204 finds it counted" a happens-before fact, the same order the Inform path already uses; it also keeps the contract cells' endsBefore anchors from reading one short. After the change: 0 of 3000. + Test fixture only; no product code and no operator-visible change. * A stop returns once the server let its port go + The end of every session starts the device's UDP echo server again on its unchanged port: the earlier server is stopped, then a new socket binds the same port. stopServer() closed the socket and returned at once, but the JDK defers the real close of a socket whose thread is blocked in receive to that thread (DatagramChannelImpl.implCloseBlockingMode pre-closes and signals; the reader's endRead closes). On Linux the kernel keeps the port bound until the signalled thread leaves recvfrom, so the new bind lost the race with "Address already in use", compute() registered no server and the device was left without a UDP echo server. This is the red of FactoryResetServicesTest.should_keepAnsweringOnSamePort_when_session- EndStartsUdpEchoAgain on PR #18 CI and on dev (same BindException). + stopServer() now waits for the serving thread to end after the close (no time bound; the close itself wakes the thread). An interrupt of the stopping thread (a Reactor worker of the session end) does not cut the wait short; the flag is restored afterwards. Every stop path goes through it: the session-end replace, stopForSerial and stopAll. + Regression test: UdpEchoServerTest.should_releasePort_when_stopReturns- WhileThreadBlockedInReceive holds the server thread in its native receive before each stop and binds the same port right after; pre-fix it fails on Linux with the CI's BindException and on macOS on the still-running thread. should_releasePort_when_stoppingThreadIsInterrupted does the same from an interrupted caller; it was red on Linux against a plain join(). * One load-test-running decision, last session end final when active reaches zero (S6.4) + PUT /farm/serial-prefix now refuses with 409 whenever /api/status reports a running load test, frame mode included (one shared isLoadTestRunning()). The last session end is stamped before the active gauge drops and is cleared on reset, so a drained /farm/stats read carries a final value and a new epoch does not report the previous storm's end. Docs: /farm/stats total counts the current load test only; /farm/serials is never pruned. * Record the session sample before the session leaves the active gauge (S6.4) + A /farm/stats poll between the ACTIVE decrement and the session histogram record read the farm as drained while the last session's sample was still missing, so a periodic step's start round could leak a wave-0 sample into the measured window. The sample is now recorded first. The stop-twice test now really runs with a null executor. * Never serve an expired Connection Request certificate (#17) + * fix(cr-https): never serve an expired Connection Request certificate + The HTTPS Connection Request listener served the committed certs/server-cert.pem (CN=localhost), which expired on 2026-07-09, so strict clients (curl, openssl) refused it with "certificate has expired". Re-committing a fresh certificate would only expire again, and it ships one private key in every image. + The listener now serves an operator PEM pair from -Dconnection.request.cert / -Dconnection.request.key. When the pair is absent, unreadable or not valid now, it generates a self-signed CN=localhost certificate at startup (netty SelfSignedCertificate, no new dependency, notAfter 9999-12-31) and logs one WARN with the reason and notAfter. The committed PEM pair is deleted. + Guard: ConnectionRequestServerHttpsTest handshakes with the real listener and fails when the default path serves a certificate that is expired or expires within a year. ReactiveEmulatorClientHttpsTest keeps its expired, host-mismatched ACS fixture through a generated expired certificate. Docs: the -D options must precede -jar (the old example set none). + * fix(cr-https): name the fallback reason and the localhost-only certificate + Test-adequacy review of the expired-certificate fix: - the fallback WARN reason now carries the exception message, so an operator sees why the pair was rejected (e.g. a PKCS#1 key), not only the exception class; - every fallback test asserts its specific reason, and the valid-pair test asserts the INFO line naming the operator certificate path; - the docs say the generated certificate names only localhost, so a host-verifying client needs the operator pair on any other host. +
-
-
Remove the image’s HIGH and CRITICAL CVEs with the Spring Boot 4.0.8 BOM (#16)
Trivy 0.74.0 reported 9 CRITICAL and 62 HIGH findings in the emulator image (tomcat 10.1.46, netty 4.1.127, spring 6.2.11, jackson 2.19.2, alpine 3.23.5 packages). spring-webmvc CVE-2026-47884/47890 are fixed only in 7.0.9, so the 3.5 line cannot clear them.
-
spring-boot-starter-parent and plugin 3.5.6 → 4.0.8; BOM overrides tomcat.version 11.0.27 and jackson-2-bom.version 2.21.8 (the 4.0.8 BOM still manages pre-fix lines); springdoc 2.8.11 → 3.0.3; starter-web → starter-webmvc (+ webmvc-test).
-
reactor, reactor-netty, tcnative and logback-classic now come from the BOM (netty 4.2.17, reactor-netty 1.3.7); the old logback-classic pin broke startup against logback-core 1.5.38.
-
Jackson 3 is kept off the classpath: the app uses @EnableWebMvc, so Spring 7’s default converters would switch to Jackson 3 and change the REST wire format (400 on bodies that omit primitives, sorted fields, ISO error timestamps). Jackson 2 databind is declared explicitly.
-
Base image pinned to eclipse-temurin:25-jre-alpine-3.24 by digest, plus apk upgrade within the stable branch.
Guards: MvcJsonWireFormatTest (wire format), ParamsXmlUploadWireTest (multipart through real Tomcat at the 10 MB limit), ReactiveEmulatorClientHttpsTest (CWMP over HTTPS, self-signed ACS). Tests 583/0/0 (baseline 578); Trivy HIGH,CRITICAL = 0 on arm64 and amd64.
-
-
One session per device, a queued wake is spent with the event it carries (#15)
A scheduled session claimed the device slot only in buildSessionVars, with an add that never fails. An invoke arriving between the scheduler’s decision and that point took the free slot and started a second, concurrent session for the same device. The scheduler tick now claims the slot atomically where it decides (due and stale-mark branches alike), as invokeNow already did, and gives it back when the session fails to start.
The queued-wake request was spent when the session started, before the clone that takes the queued events. An event queued by a timed-out invoke in between rode that session and left its wake behind, so one extra session followed. The request now lives on the scheduled SessionVars: queueForWake sets it together with the event, and clone() clears it with the events it takes, both under the vars' monitor.
-
An ended XMPP thread leaves the device’s state alone, a failed one disconnects (#13)
A closed, stopped or replaced XMPP Connection Request thread runs on until its connect, login or retry wait returns. On that way out it still wrote the device’s XMPP Status (Connecting, Enabled, Error_AuthenticationFailure, Error_Misconfigured) over the newer connection’s, or back into a stopped device’s parameters. Status writes now happen only while the registry still holds this thread.
Every thread exit, even the registered one’s, erased all XMPP parameter changes recorded for the session end, so a password or server the ACS set while the thread was logging in or retrying never triggered its reconnect. An exit now forgets only what the thread wrote itself (Status, JabberID): left recorded, those would reopen a connection with no enabled server at every session end.
A thread that ended without a logged-in connection (logins failed until it gave up, or the run loop threw) left that connection connected. Every exit without a login now disconnects it; a logged-in connection still outlives its thread.
The registry entry of a thread that gave up stays on purpose: the session end reads it to reconnect when a server is enabled later (pinned by a test).
-
One STUN open at a time, a stopped listener’s late callback leaves the newer one alone (#12)
Two session ends of one device running at once both passed the connected() check and both opened a STUN client; the second replaced the first, which was never closed. The open is now claimed per listener. A caller that finds an open in progress leaves its request and returns, and the opener runs it once its own open ends, so a session-destroyed callback arriving mid-open still reopens a listener left disconnected. A listener stopped while it was opening is closed when its open ends: the stop found nothing connected yet to close.
A stopped listener’s session, destroyed after the device had registered a newer listener, looked the listener up by serial and closed and reopened the newer one. The session-destroyed callback now acts only while the registry still holds its own listener.
StunListenerTest cells, latch-held opens and no sleeps: both races, the callback during an open, a stop during an open, the per-device claim, the connected re-check, the registered listener’s reopen and stopAll over two devices. The release changelog is generated from this subject by the Finalize-Sprint pipeline; no hand-written entry.
-
Every stop closes the STUN listener, a UDP echo restart stops the earlier server first (#11)
Residuals of #10:
-
stopAllCpes(clear=false), the web UI Stop, left every STUN listener (CpeDataCache.serialToStunListeners) connected; only the clearing stop closed them. CpeDataCache.stopAllDeviceServices now also runs StunListener.stopAll(). StunListener.stopForSerial unregisters before it closes, so the closed session’s sessionDestroyed callback does not reopen it; stopSingle and FactoryReset use it too. The next session end reopens STUN from the kept data.
-
The STUN registry was a HashMap written with get-then-put from every device’s session thread: a ConcurrentHashMap with computeIfAbsent now.
-
UdpEchoServer start: stop-then-put plus a stop of whatever put replaced was two half-guards that no test could fail one at a time. One ConcurrentHashMap.compute now stops the earlier server before the new one binds (same port at every session end) and registers it in the same step.
Tests: FactoryResetServicesTest +5 (STUN closed on stop-all without clear, reopened at the next session end; STUN closed on single stop and on FactoryReset; UDP echo restart on another port and on the same port), StunListenerTest +1. Red before the fix where the old code was wrong; pins proven by mutants (stopAll removed, earlier stop removed, bind before stop). Full suite on JDK 25: 549/0 (baseline 543/0).
-
-
XMPP close wins, bounded REST reset answers 409 when refused, stop-all stops device services (#10)
Residuals of the FactoryReset/XMPP lane (#8):
-
An XMPP close during a blocking connect() still logged the device in: the close found nothing connected to disconnect and its interrupt does not end a socket connect (Smack 4.1.9 also swallows it while waiting for the stream). XMPPConnectionRequestThread.close() now sets a closed flag the thread reads once a connect returns or fails: it tears the connection down and stops, with no login, retry or retry wait.
-
POST /apiV2/factoryReset waited for the stop with no time bound and answered 204 even when the restart was refused. The stop is bounded (EmulatorService.STOP_BOUND, 3 s, also used by the REST stop); a stop past the bound, a stop of an earlier reset still running, or a refused restart answer 409 {success, serial, message} with the reason. 204/404 unchanged.
-
echoServerMap, serialsToXMPPThread and serialsToChangedXMPPParameters were HashMaps shared by session, REST and XMPP threads. They are ConcurrentHashMaps; stop/close remove and close in one step, and an open or start closes whatever its put() replaced.
-
stopAllCpes(clear=false), the web UI Stop, left UDP echo and XMPP running, and the next start opened a second XMPP connection next to the old one. Not by design: clear is about the device data. Every stop-all now stops them.
Tests: XmppConnectionLifecycleTest (4), EmulatorControllerV2FactoryResetTest (3), FactoryResetServicesTest +2, EmulatorServiceFactoryResetTest +2, UdpEchoServerTest +1. Red before each fix, targeted mutants red. Full suite 531 → 543 green on JDK 25.
No changelog entry: the changelog page is release-marker managed by CI/CD Manager.
-
-
Farm report states the aborting sample and counts K2 residue (#9)
Demo run 2 (uf5186) published two report lines that were not true.
-
The per-step host table showed "ACS heap after GC max %" = 83 for P1000, which aborted at 95.6 %. sample_step wrote the samples.txt line after the threshold check, so the breaching sample never reached the file the table is built from. The line is now written right after the sample is read, and the aborted step’s row reads "<step> (aborted: <reason>)" (the reason from state.abort, else the outcome’s rc-<n> for a signal or the ERR trap).
-
K2 claimed "totalDelete=false leaves the async data clean." On b93, 10.7M cpe_parameter rows of deleted farm devices remained. Before every deleting FarmCleanup pass the harness now records the run’s cpe id range (acs-obj.<run> cpe_ids=<min>..<max>), and the final report counts, per installed run, the cpe_parameter rows in that range with no cpe row, with the UTC time and a query to count again. No range or a failed count says "not measured", never 0. The report written before the teardown runs no count and points at the recover command. The line makes no claim about what the ACS does later.
Self-test: 13 new checks (pre-fix red: the aborted step had no row at all and K2 was a constant), each production hunk killed by a mutation; the shim answers the range per run and logs the count’s bounds. farm.adoc K2 and the abort-row behaviour are rewritten; the SDD K2 sentence is corrected.
No changelog entry: the changelog page is release-marker managed by CI/CD Manager.
-
-
A FactoryReset brings back UDP echo and XMPP, stops close them (#8)
After a CWMP FactoryReset the device’s services did not follow its reset tree:
-
EmulatorInitializer.factoryReset rebuilt the tree but never ran the service start both initEmulator paths run. UDP echo came back only when a later session ended normally (ReactiveMessageHelper.sessionEnded), never while none did; XMPP never came back, and an XMPP connection the ACS had configured kept running. The start is now one helper, startDeviceServices, also called at the end of factoryReset.
-
The per-device teardown (cleanAllCachesForCpe: CWMP reset, REST stop, REST reset) never closed XMPP. It does now; the stop-all teardown closes every registered XMPP connection and every UDP echo server, not only those of devices with cached values or a STUN listener.
-
closeCurrentXMPPConnection could not stop the connection thread: it was wrapped in another Thread, so isAlive()/interrupt() hit an object never started, and run() cleared an interrupt that came before it started. The thread is now named and started itself, and keeps its interrupt.
-
UdpEchoServer bound its port on its own thread: a stop before the bind found no socket, and the thread then kept the port for good. It binds in the constructor.
-
The REST factory reset stopped in the background and slept 500 ms; a slower stop left the device stopped behind a 204. The stop now completes before the restart.
Tests: FactoryResetServicesTest (8), XmppTeardownTest (3), EmulatorServiceFactoryResetTest, UdpEchoServerTest +1. 12 of 13 red on dev, the 13th red against the swallowed interrupt; targeted mutants red. Full suite 518 → 531 green.
No changelog entry: the changelog page is release-marker managed by CI/CD Manager.
-
-
Concurrent devices no longer fault 9002 reading the shared parameter tree (#7)
Under farm load about one SetParameterValues in 30 was answered with Fault 9002 (Internal error). Every farm device answers from the one parameter tree loaded for the default serial, and two things made concurrent reads of that DOM unsafe:
-
EmulatorUtils.getElement walked children with getChildNodes().item(i). Xerces keeps a node-list cache per parent, drawn from a document-wide pool, and writes it on every item()/getLength() read. Concurrent lookups corrupt it: the lookup returns null or throws inside Xerces, SPV/GPV/GPA then hit a NullPointerException and MessageHandler maps it to 9002. One burst poisons the tree: afterwards even single-threaded lookups failed 100/100 in a probe. getElement now walks by sibling links, which read only.
-
XMLWork parsed the trees as a deferred DOM, which builds nodes on their first read, so concurrent first reads of a fresh tree corrupt it even with sibling navigation. The factory now builds the whole DOM at parse time (parseXMLFile loads only the long-lived shared trees). An unsupported parser fails fast instead of silently.
No lock and no per-device copy: reads stay lock-free and the tree stays shared, which matters at 500 devices per pod.
Tests: ConcurrentSharedTreeRpcTest (SPV, GPV, GPA: 32 devices x 300 barrier rounds on the default tree) and GetElementConcurrencyTest (16 readers on a freshly parsed tree, 1555 parameters compared by value). Both red before the fix, each production hunk proven by reverting it alone.
No changelog entry: the changelog page is release-marker managed by CI/CD Manager.
-
-
DEV-2868 - Emulation tool > IPv6 > Register > Device not registered
-
Keep a back-to-back session alive, start Boot after Reboot reliably; UI action feedback
Session lifecycle - A session ending after a newer one of the same device started cleared the newer one’s in-session flag by serial: the 8 DIAGNOSTICS COMPLETE / ValueChange session then skipped its empty POST after InformResponse and the ACS waited on an open session with the Connection Request suppressed. Each session now owns a mark and releases the device only when no newer session owns it. - The scheduler loop (periodic, Boot after Reboot) runs on its own thread, survives a failing device, and drops an in-session mark no session backs for 30 s. Reboot also starts the 1 BOOT session itself after 3.5 s if the loop has not, and frees memory (MemoryStatus.Free = 90 % of Total). - An invoke while 1 BOOT is pending starts that session instead of being ignored. - TransferComplete no longer faults 9002 on a non-numeric CommandKey.
+ Single device UI
-
Make / Reset Speed Delay, Reset WiFi and Invoke report what they did (device log "UI action:" line, toast above the device modal, busy / done / failed button state); speed delay mode badge with GET /api/speedDelay.
-
Reset WiFi restores every changed parameter to the tree value, except ManagementServer.*, serial number, uptime and MAC, and requests a ValueChange session.
-
Auto channel also reports high free memory alongside SNR 40.
-
-
Record traceroute hops on Error_MaxHopCountExceeded
The hop list, including a hop of only '*', reached the data model only when the trace ended Completed, so a trace that ran out of hops dropped every hop it had discovered. RouteHopsNumberOfEntries and RouteHops.{i} are now written for Completed and Error_MaxHopCountExceeded; ResponseTime stays Completed-only. A trace that produced no state still ends with DiagnosticsState=None.
Parser hardening: a token followed by "ms" is always a time, never the responder; with several ICMP annotations on one hop the first non-zero code wins. Output processing, command building and the result write are extracted as package-private statics so they are unit-tested end to end (Windows output unchanged).
-
Parse busybox traceroute hops, timeout in seconds
Three TraceRoute defects on the Alpine (busybox) image: - the hop line was split on a single space, so busybox’s double-spaced columns gave an empty RouteHops Host and a HostAddress with its first and last character cut. Hops are now tokenized on whitespace: name plus (address), '' lost probes, "<n> ms" times, ICMP "!X" annotations mapped to the ICMP CODE for ErrorCode, a later responder wins, and an omitted responder is carried from the last one printed (busybox prints it only when it changes). - the TR-181 Timeout (milliseconds) was passed to traceroute -w (seconds); it is now ceil(ms / 1000), at least 1. Windows tracert -w is milliseconds and is unchanged. - a hop of only '' threw and ended the diagnostic in None; it is now recorded as a hop with no address and ErrorCode 0, and the trace continues. Completion now needs a hop address EQUAL to the target. ErrorCode is written as the numeric code instead of a String hashCode; Windows output is byte-identical.
-
Fall back to traceroute on PATH when whereis is absent
TraceRoute shelled out to "whereis traceroute" with no fallback. The Alpine image ships busybox traceroute at /usr/bin/traceroute but no whereis, so the exec threw, the state stayed null and DiagnosticsRunnable reported DiagnosticsState=None for every TraceRoute. Resolve the binary the way ping already does: use the whereis path when it lists one, otherwise the plain "traceroute" on PATH.
-
Give NSLookup diagnostics a usable default Timeout
cpe_params-181.xml shipped Device.DNS.Diagnostics.NSLookupDiagnostics .Timeout = 3 ms. Now that the emulator runs NSLookup and honours Timeout, an ACS that does not send its own Timeout got Error_Timeout for almost every real host name, and the test ended with Error_Other.
The default is now 5000 ms, as in the TR-098 trees and for the other diagnostics Timeout in this file.
-
Wake invokes waiting for a device slot when it is released
Since the device slot is released only once a session is torn down, the diagnostics started at the end of a session find the device still busy and wait for it in AcsSessionChecker.invokeNow. That wait polled the slot every 2 s, so a fast diagnostic such as NSLookup sent its "8 DIAGNOSTICS COMPLETE" Inform about 2 s after the session that requested it, on almost every run. ChannelChange, ValueChange with active notification and TransferComplete wait the same way.
ReactiveMessageHelper.awaitSessionSlot now waits on a per-device latch that removeSerialFromSession counts down, so the invoke goes on as soon as the slot is free. The latch is registered before each attempt, so a release between a failed attempt and the wait is not missed. The overall wait is still 20 s.
Being woken by the release exposed the order in ReactiveSessionScheduler.stopAll: it released the slots before it cleared the schedule (twice for a device in session), so an invoke waiting at Stop found its device still scheduled and opened a session after Stop. stopAll now clears the schedule first and releases each slot once.
AcsSessionCheckerInvokeNowTest and ReactiveMessageHelperSessionSlotTest were red against the 2 s polling ("invokeNow waited 2001 ms for a slot released after 300 ms"); AcsSessionCheckerStopTest’s new case opened sessions for the waiting devices after Stop before the reordering. mvn -o test: 104 tests, all green.
-
Send Bulk Data for devices with their own parameter tree
A device started with its own parameter file (InitDeviceDto → CpeDataCache.initTree(serial, file), per-serial trees since 46e6297) never sent a Bulk Data report. BulkDataSchedulerThread runs without a DeviceContext and looked BulkData.Enable up with the one-argument CpeDataCache.getParameter, which reads the default tree (paramsXml). The shipped default trees (tzvi_updated_acsrd.xml, cpe_params.xml) have no BulkData, so the device was skipped on every pass without a log line, although the ACS had configured and enabled its profile.
The scheduler now reads BulkData.Enable from the device’s own values and tree (getParameterValue(serial, …)); a missing parameter reads as "" and is skipped as before. BulkDataSenderThread takes oui/pc for the report URL the same way instead of from the default tree. A receiver that cannot be reached is logged as a warning instead of being printed to stderr only.
BulkDataSchedulerThreadTest runs the real scheduler against a local HTTP receiver, with cpe_params.xml as the default tree and 707GR1_BulkData.xml as the device tree: red before the fix, green after (run outside Maven with JDK 25 and JUnit 5.12.2).
-
Keep the Load Test status bar in sync with the server
-
Drop device groups that finish initializing after Stop
-
Count a challenged upload only once
An upload against a server that asks for credentials sends the body twice: once to draw the challenge, once carrying the Authorization header it asked for. Both passes ran through FileHandlingListener.transferred, so the transfer was accounted for twice and UploadDiagnostics published a TestBytesSent of twice the file - the number DiagnosticsRunnable reads straight out of TransferTimeResult, and the number an ACS divides by the transfer time to get a throughput.
The bytes of the refused attempt did travel over the wire, so the interface counter keeps them; they never became part of the file on the server, so the transfer accounting starts over. attemptDiscarded does that, and doUpload calls it where it takes the challenge and reopens the connection. The interval beeper no longer reports a negative size, which a counter that steps back mid-transfer would otherwise hand to an unsignedInt parameter.
The test for the redirect no longer swallows the outcome of the upload. It now asserts that the redirecting server saw both the unchallenged and the authorized PUT, that the upload ends in 9011, and that the target of the redirect was never reached at all. The assertion it had held over a request that never left the CPE just as well, which is what made it worth tightening. 63 tests in total.
-
Resolve the ACS host name to pick the address family
An ACS is normally addressed by name — a Compose service such as ftacs, or an FQDN — and preferIpv6For only ever looked at literals, so every name was read as IPv4. On a dual-stack network that meant a session running over IPv6 while the emulator advertised its IPv4 address in ConnectionRequestURL and ExternalIPAddress, and -Djava.net.preferIPv6Addresses=true moved the session without moving the advertised address with it.
A host that is not a literal is now resolved, and the family of the first resolved address decides — the address the client connects to, ordered by java.net.preferIPv6Addresses, so that flag now moves both together. Literals still decide on their own without a lookup, and a name that cannot be resolved falls back to IPv4 rather than failing the session, which the ACS URL itself will report anyway.
A successful answer is deliberately not cached here: the JVM already caches those, and a cache of our own would pin the family chosen the first time an ACS was contacted — on a container that started before its network was up, the wrong one for the rest of the process’s life. A failure is remembered for a minute, because this runs on the session’s own thread and the JVM forgets failures after ten seconds; without that, an unreachable DNS would stall a session on the resolver timeout every few seconds.
Resolution is a package-private seam, so the four new tests cover AAAA-only, A-first, AAAA-first, unresolvable, repeatedly-unresolvable and literal hosts without touching DNS. 32 tests in total. The installation guide documents the name case.
-
Pick the address family per device and back off after a failed session
Two defects left open by the IPv6 registration fix.
Address family in Single Emulator mode. The family the emulator advertises was derived from the global EmulatorParameter.HOST, but a single device carries its own ManagementServer.URL (EmulatorInitializer sets it straight from the request) and the global host is never updated — so a single device pointed at an IPv6 ACS still got an IPv4 ExternalIPAddress unless CONNECTION_REQUEST_HOST was set. The device in scope now decides, with the global host as the fallback for bulk mode and for a device whose URL is missing or unparseable. Because the device address is written into the parameter tree while the device is being created — before the request’s ACS URL is applied — initEmulator re-applies it once that URL is set, next to the ConnectionRequestURL and MACAddress it already re-applies for the same reason.
Session restart storm. A session that failed outside the in-session Inform retry — an authentication failure, an HTTP error, a malformed response — left nextInformTime in the past, so the scheduler loop re-triggered the device on its very next tick: one full session per second, forever, against an ACS that had just rejected it. This predates the IPv6 work but got louder with it, since every cycle now logs a full stack trace. Failed sessions are rescheduled on the same backoff the in-session retry uses (5s, 10s, 20s … capped at 10 minutes), counted per device and reset as soon as a session completes normally.
That backoff had been written twice; it now lives once in SessionRetryPolicy, where the shift is guarded against overflow instead of relying on Math.pow saturating an int cast.
Three tests added, 28 in total.
-
Fail loud instead of silently mounting empty dirs for runtime state
docker/compose.yml bind-mounted start_params.properties and updatableParameters.yaml as individual files. When the host files don’t exist yet (a clean checkout, before the Option 1 extraction step), Docker silently substitutes an empty directory at each mount point — and it does this at container-create time, before any depends_on ordering is honoured, so a companion check alone cannot stop it.
Add a preflight service that bind-mounts the parent directory instead (always present) and inspects both paths from there. A directory in place of either file is unambiguous evidence the bootstrap step was with a clear, actionable message. tr069-emulator now depends_on preflight (condition: service_completed_successfully) and will not start until both files are confirmed present.
Verified live: 'docker compose up' with the bootstrap skipped fails loudly and leaves no phantom directories; after running the documented docker cp extraction, the container starts healthy with both files readable at /app, and a write survives 'docker compose down && docker compose up'.
Also gitignore the two extracted runtime-state files (host-specific, same treatment as parameterstree/), and sync the compose.yml listing embedded in installation.adoc with the new preflight service.
as a third '=== Option' under '== Updating', making rollback read as a way to update in the TOC. Promoted to '== Rollback' (peer of Updating, matching the Deployment section’s own Option 1/2 pattern), with its two Options moved up to '===' accordingly.
-
Stop leaking build context (.git) into the emulator image
COPY ./. matched .git, baking the repository — including the CI credential helper — into the shipped image. Replace the glob with an explicit file list, add .dockerignore, and stop persisting checkout credentials.
-
Reject unsupported parameter tree instead of NPE in initTree
CpeDataCache.initTree resolved the data-model protocol from the tree’s root element and put it straight into a ConcurrentHashMap; an unrecognized root (e.g. a Broadband Forum <dm:document> spec file) made DeviceProtocolEnum.resolve return null, so the put threw a cryptic NullPointerException that aborted init and left the tree half-built - the device then never registered.
-
initTree now finds the root element robustly and throws a descriptive IllegalArgumentException naming the file and offending root when the model is unrecognized (or absent), writing serialElement/serialProtocol only after validation so no half-initialized state is left behind;
-
setParamsXml catches it, reverts the selection (without persisting the bad file) and returns 400 with the message instead of a 500/NPE;
-
the Web GUI Save now checks response.ok and surfaces the reason.
-
-
DEV-2567 - Emulation tool > Load Test Mode > Start emulation > The device did not register with OneIoT ACS
-
DEV-2296 - Emulation tool > Basic / Digest authentication > Start Emulator > Connection not established
-
Apply Basic/Digest auth in reactive ACS client
ReactiveEmulatorClient read the ACS username/password but never applied them, so a 401 challenge from the /ftacs-basic/ACS and /ftacs-digest/ACS endpoints became a non-retryable error and the device never registered ("Connection not established").
Add HTTP 401 challenge-response: on 401 the client reads WWW-Authenticate, builds the Basic or Digest Authorization header via the existing EmulatorAuthorization helper and resends once (cookies preserved, single retry guarded against loops). ResponseWithStatus now carries the challenge.
-
Gate static gpn.xml/gpv.xml short-circuit behind flag (off by default)
A top-level GetParameterNames/GetParameterValues was answered from a canned gpn.xml/gpv.xml in the working dir (when present), bypassing the dynamic walk of the loaded parameter tree. Those canned files omit Device.SoftwareModules.*, so the ACS never learned those names and the management "Software Manager" tab (gated on isParamExistLike "%.SoftwareModules.%") disappeared. Regressed in 0393f1d; master has no such short-circuit.
Gate both short-circuits behind -Demulator.static.params (default false): a top-level GPN/GPV now builds dynamically from the loaded tree by default, restoring master behaviour and the SoftwareModules names, while keeping the static-file fast path as an opt-in for load testing.
-
Restore Load Test Mode init and wire Start button
The Load Test page attached a submit listener to a non-existent
startEmulatorForm, sogetElementById(…).addEventListenerthrew on load and aborted the rest of the inline script: the DOMContentLoaded init never ran, leaving the Device Tree File dropdown stuck on "Loading…" and the ACS/config forms unpopulated. The Start button was also a deadtype="submit"with no enclosing form.Remove the broken listener and wire Start via
onclick="startEmulator()", matching the other panel buttons. Verified with Playwright: the tree-file dropdown now loads its entries and no page errors are thrown. -
DEV-3102 - Emulation tool > TR-069 > Task Execution Results > CWMP Fault 9002 > "faultcode = Client" returned
-
DEV-2916 - Emulation tool > Docker > Basic authentication > Register device > POST request > "Authorization: Basic" tag is absend
-
DEV-2967 - Emulation tool > Load Test Mode > Start > "Running" state > Total / Active > Incorrect counter value
-
DEV-2968 - Emulation tool > Load Test Mode > Start > "Running" state > Refresh page > State changes to "Ready"
-
DEV-2940 - Emulation tool > Docker > Upload > Irrelevant URL > Send > Incorrect "FaultCode" is present
-
DEV-2731 - Emulation tool > Docker > File Download > HTTP server with authorization > Download is failed
-
DEV-2724 - Emulation tool > Docker > "Updatable Parameters" is present > Start Emulator > An error occurred
-
DEV-2723 - Emulation tool > Docker > "Active" notification > Update parameter > Inform message with "4 VALUE CHANGE" absent
-
DEV-2569 - Emulation tool > Single Emulator > Task execution delay functionality is missing
-
DEV-1598 - Emulation tool > Single Emulator > Start Emulator > Active Emulators > Open > Expand device tree > Page is stuck
Documentation
-
Update antora version to 5.0.1
-
Record mutation proof M1-M6 and cpF notes for the decision-event cells
-
Name the read order /farm/stats relies on for the drained guarantee (S6.4)
-
Storage file, serial-prefix endpoints, lifetime serial list, latency sample order (S6.4)
-
Add the release marker CI/CD Manager inserts under
Without it the first release entry was appended at the end of the page, below the "No releases have been published" placeholder.
-
FT_DISK downloads and the stack way of adding the emulator
Adds an FT_DISK Downloads table (single-service compose.yml plus .env) and lays the deployment out under /usr/local/ft-system like every other FT service. Replaces the advice to prepend the root .env to the shipped compose.yml: that file is its own Compose project, so the ftacs name does not resolve from it, and tr069-emulator/.env is loaded last and would keep its own TZ. On a full-stack host the stack compose.yml already carries the block under the testing profile.
-
Link the third-party versions to FT Version Control
The portal now publishes FT Version Control: a per-release record of what every FT service and every infrastructure component was built against, plus the upgrade steps between releases.
Both places that carry third-party versions point at it and state the division of labour — the tables here describe this branch and this component, that page is the platform-wide record across services and releases.
-
List the current external component versions
The changelog index stated where the external-component block belongs but carried no versions of its own, so the only place the figures existed was the installation guide. A reader of the changelog had no answer to "what was this built against" until the first release page exists — and Finalize-Sprint has never run for this component.
Adds a Current values table taken from pom.xml and the Dockerfile, labelled as the state of the branch rather than a released set, so nothing here claims a release that has not happened.
-
Add Compose update/rollback flow, fix persisted-file claims
Finding 1: Updating and Rollback still assumed the pre-rewrite flat layout (bare ./parameterstree, docker run with no compose). Added a Docker Compose procedure for both, alongside the docker run variant clearly labelled as such, matching the Option 1/Option 2 structure used in Deployment. Preserved the tag-pinning advice and curl verification steps from the original.
Finding 2: the Runtime Configuration Files table and the Production checklist promised persistence for start_params.properties and cpe_self_updated_params.properties, but neither Deployment option mounted them, and cpe_self_updated_params.properties is not actually read or written by the running app (dead constant, verified against EmulatorParametersUtil/Constants.java). The Updatable Parameters feature persists to updatableParameters.yaml instead (EmulatorController’s GET/POST /updatableParameters, backed by UpdatableParametersService). Corrected the table to name updatableParameters.yaml and added real bind mounts for both start_params.properties and updatableParameters.yaml to compose.yml, the docker run examples, and the new Updating/Rollback procedures, with a note on the file-vs-directory bind-mount pitfall for paths that don’t pre-exist on the host.
-
Add revnumber/revdate to the installation guide
The Java service guides (provision-portal, ft-qoe-web) carry :revnumber: and :revdate: attributes; the emulator guide had never carried a revision stamp. Set to 1.0 / 2026-08-10, matching the position and style used in the Java guides.
-
Publish under the real component version instead of dev
The component was published under the placeholder version 'dev', so the portal’s version selector had nothing meaningful to show and every page sat under a /dev/ path that says nothing about what release it documents.
Takes the version from version.xml, the same source the build and the release notes use, and marks it prerelease the way provision-portal and ft-ui-backend already do.
-
Add the changelog module with an external-components rule
The TR-069 Emulator had no changelog module, so there was nowhere to record which third-party versions a release was verified against.
Follows the format the Finalize-Sprint pipeline already produces elsewhere, and states that the section belongs in the hand-written release index — the three generated files are rewritten in full on every run.
-
Document the compose deployment and third-party versions
The guide taught docker run -e while the FT_DISK table promised a tr069-emulator/.env, so a customer following the bundle had a file the documentation never mentioned. Compose with a per-service .env is now the primary form, with both docker run variants kept for throwaway containers.
Adds a Third-Party Components table and states why the published host ports are not environment variables: Compose interpolates the compose file from the shell and a project-directory .env only, so a port referenced as ${…} could never be read out of the env_file.
-
Align UI descriptions with web interface
Verified the Antora docs against the actual controllers, DTOs and the static Web UI (landing/index/single) and corrected the Single Mode page:
-
Quick Actions: add the missing Download Log and Refresh Tree buttons
-
Full Log Viewer: replace the non-existent Download item with Clear and point to the Download Log quick action for saving the full file
-
Updatable Parameters Type: Single Mode form offers INT/STRING only (BOOL is available in Load Test Mode and via the REST API)
-
Saved Devices: use the real Play/Edit/Delete icon actions and list the fields actually shown (Serial, ACS URL, Parameter File, ConnReq)
-
Rename Save Notification button to Save Notif; fix parameter-tree upload wording to the upload icon
Also fix the source clone URL in installation.adoc to the real Friendly-Technologies/TR069_Emulator repository.
-
-
Add TR-069 protocol reference, refresh UI screenshots, fix install checks
-
Add protocols.adoc documenting supported CWMP RPC methods, event codes, Connection Request transports (HTTP/XMPP/UDP-STUN), diagnostics, Software Modules and Bulk Data (TR-157); wire into nav and index.
-
Replace the stale Load Test screenshot and add landing, Single Mode and device-detail screenshots captured from the running web UI (v4.1).
-
Fix installation/API verification: /api/activeSerialList does not exist (use /api/status); Spring Boot Actuator endpoints are not exposed by the running service, so health checks now use /api/status.
-
Clarify HTTPS Connection Request is set via -Dconnection.request.address, and note DUStateChangeComplete (11) is API-only (not in the UI dropdown).
-
-
Rework Antora docs to match real codebase (install, usage, API)
Deep-analyze the emulator and rewrite the documentation for accuracy and depth, modeled on the northbound-api docs style.
installation.adoc: full rewrite — overview, prerequisites, quick start, image options (Harbor / offline / source), parameter trees & runtime config (parameterstree/, start_params.properties), Connection Request host (port 9999, CONNECTION_REQUEST_HOST, HTTPS via bundled certs), deployment, verify, environment variables (+DEFAULT_ACS_URL, actuator, Spring Boot 3.5.6 / Java 25), manual web/desktop modes, container management, updating, production checklist, troubleshooting, port reference (8555 + 9999).
api.adoc: document both controllers — /api (Load Test) and /apiV2 (Single Mode, ~40 endpoints) — with request/response shapes, TR-069 event codes, data models and error handling.
user-guide.adoc (Load Test Mode): rewrite to match the real index.html v4.1 UI; remove stale sections; add Getting Started and Common Workflows.
single-mode.adoc: add Getting Started and Common Workflows; correct live log caps and refresh intervals; link to the full API reference.
index.adoc / nav.adoc: mode selection (/load, /single) and deep links.
Fixes inaccuracies: parameterstree (not configuration), start_params (not emulator.properties), and removes the non-existent /api/activeSerialList in favor of /api/status, /apiV2/activeEmulators and /actuator/health.
Chores
-
Carry the Deployment Manager contract on dev
DM now reads the contract from dev; it existed only on master.
-
Build and test feature branches on every push
Same as build-test-upload.yml in northbound-api and build-test.yml in oneiot_emulator: every branch except main and dev gets mvn clean package with the full suite and a test summary. No image is pushed.
-
Build and deploy the image from dev instead of 5.0.1
The development branch 5.0.1 is renamed to dev, like in northbound-api, oneiot_emulator and the other hasDevelop services: dev for development, main for releases. A push or a pull request to dev now runs the build and the tests, a push also pushes the Harbor image, and the Environment Manager build defaults to dev instead of the missing main.
-
Stop tracking .idea/workspace.xml
Refactoring
-
Drop preflight service, stop promising state persistence
The preflight service in docker/compose.yml existed only to guard two single-file bind mounts (start_params.properties, updatableParameters.yaml) against Docker silently turning them into empty directories when the source file is missing on the host.
Per owner decision: fifty lines of embedded shell is too much surface for a test emulator’s customer-facing compose file. Remove preflight, its depends_on gate, and the two mounts it guarded together — keeping the mounts without the guard would reinstate the exact regression preflight was written to prevent. parameterstree and logs mounts are unaffected and stay.
installation.adoc now says plainly, everywhere it previously promised persistence (Runtime Configuration Files, Deployment Option 1 and 2, Updating, Rollback, Production checklist, Troubleshooting), that these two files live inside the container only and do not survive 'docker compose down', a recreation, or an image upgrade. Added a docker cp based backup/restore workflow as the actual way to carry them across a recreation, and narrowed the bootstrap extraction step to just parameterstree. The inline compose.yml reproduction in the guide now matches the real file byte for byte.
Removed the now-pointless .gitignore entries for the two extracted runtime-state files — nothing extracts them onto the host anymore.
Verified live: 'docker compose config' shows exactly two volumes and no preflight; 'docker compose up -d' from a clean host state (no start_params.properties / updatableParameters.yaml, no bootstrap step) reaches healthy, and docker exec confirms both paths are real files inside the container; 'docker compose down' leaves no stray directories on the host.
Tests
-
The updater restarts after a cleared file is refilled
Adversary brief: nothing ran stop then start through the real reload path. Parameterized over an empty list and a deleted file: loadFromFile ends the live updater, a later non-empty file starts exactly one fresh one.
Test-only: no operator-visible change.
-
Absence verdicts prove a counted emulator decision, not a 3 s window
-
Pin the exact timeouts and the single follow-up waiter
The test-adequacy review of the wall-time sweep found what the removed timing bounds had still been guarding:
-
Connection Request coalescing asserted only its log line; a second request that logged and still started a waiter stayed green. The cell now counts the follow-up threads (virtual, so from a thread dump) with the slot held and an unbounded wait: exactly one.
-
A timeout halved on the way was invisible once "elapsed >= timeout" went. Exchange.await is now pinned to wait exactly the timeout it is given (a recording future), and create to hand its request timeout to the exchange unchanged.
-
The two-waiter slot cell checked the loser before it had re-checked; it now waits until the loser answered or re-parked on the next release’s latch.
-
The hanging-lookup cell had 5 s of slack over a 5 s product timer and leaked its lookup thread: latch released in finally, 60 s backstop.
Each new check was shown red on its mutant (return dropped after the coalescing line, both waiters granted, half the await, half the create timeout, unbounded lookup).
-
-
Verdicts prove counted events and order, never wall time
Program rule: no test verdict may depend on CPU or wall time; a timeout is only a hang backstop. The sweep of both test trees found 28 cells that asserted an elapsed time, used a sleep as proof that something did not happen, or compared two reads of a process-wide resource.
Each now asserts what the timing stood in for: - a stepped clock where the code under test reads one: the AcsStub absence window (new start(LongSupplier), clockMoved and a caught-up counter under the stub’s monitor) and the FarmCounters latency samples (informRtt and session samples are exact, the ACS handlers move the clock after the client’s write stamp); - the wait mechanism: a waiter is seen parked on the slot-release latch, a factory reset parked on its stop’s future, before the release; - an ordering point reached after the forbidden act would have happened: the session Mono’s own doFinally runs after the scheduler’s teardown (slot release, wake decision), all triggers emitted into the flatMap, the coalescing decision of a second Connection Request; - the cause of the end: a TimeoutException from the client’s own timeout, the child exiting before the ready bound, a lookup still running when the diagnostic gave up, a budget that cannot elapse; - clock-read brackets instead of a fixed slack, and the maps-line counting on a file of known lines instead of a second /proc read.
+ Every rewritten cell was shown red on a mutation of the behaviour it pins (26 mutants, production and fixture sources reverted after each). Timing figures that help are printed, not asserted.
-
Queued wake test reads session vars only after the session took them (#14)
ReactiveSessionQueuedWakeTest listed a scripted session when the scheduler opened it, but set its vars only when the session ran buildSessionVars. The tests awaited the session count and then read the vars at once, so a poll landing in that window read null (4 of 30 runs). firstSessionWithQueuedEvent anchored on the in-session flag, which is also set before the vars are cloned, so an event queued in between could ride in the first session.
The taken vars are now a future completed when buildSessionVars returns, and every read waits for it. Test-only; no assertion changed.
-
Cover a Digest session across an unusable 401
-
English output and a preflight guard in test-image.sh
Each check treats a successful docker run as 'the file is present', so a docker failure made every check pass silently and the script printed PASS. Preflight now fails loudly instead. Output unified to English.
Docker Images
Dependencies
-
UI Backend → ACS
v7.1.3-b0.0.1 -
UI Portals → UI Backend
v7.1.3-b0.0.1 -
Northbound API → ACS
v7.1.3-b0.0.1 -
Grafana → ACS
v7.1.3-b0.0.1