Skip to content

Ignore input held while the menu opens - #940

Merged
chrisgleissner merged 2 commits into
GideonZ:masterfrom
barryw:fix/935-menu-phantom-key
Oct 2, 2026
Merged

chrisgleissner merged 2 commits into
GideonZ:masterfrom
barryw:fix/935-menu-phantom-key

Conversation

@barryw

@barryw barryw commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #935. Confirmed on an Ultimate II+ by @radius75: with v3.15-382-g46f8005ca (this PR on master, built by @chrisgleissner) the step didn't occur in a dozen or so runs of Run Disk, Run PRG and Reboot C64. That build predates the rebase below; the current head differs only in guarding ignore_held_input() against the timer scan.

Problem

After the C64 has been running (Reboot C64, Run PRG, Run Disk), opening the menu can move the browser cursor by one step with no key pressed. The step is always Up, Down, Left (back) or Right (enter).

Cause

Those four moves are what the joystick port 2 decode in Keyboard_C64::scan() produces. It samples $DC00 before the keyboard matrix and maps PA0–PA3 onto the CRSR positions in the key matrix (fire, PA4, maps to RETURN). A first-time press is queued immediately. Nothing reset the scanner when the menu took the machine, so a low sample on the first scans after the menu opens becomes one keystroke.

What pulls PA0–PA3 low is still a hypothesis, but @radius75's bisect narrows it. The step first appears between 1ba94ab and 3fbe765. Of the commits in that range, f28302e and 9b22d87 are the ones that change the keyboard scan: on the U2 family the keyboard is now scanned from a 2-tick timer, and freeze() allows that scan as soon as init_io() has set CIA1 up. Before, the first scan came from the UI task tens of milliseconds later. On a real C64 the port lines are pulled up passively, so a scan straight after init_io() may read a line still rising from whatever the program left in port A. That would fit a step that is new in 3.15, happens only after the C64 has run, varies in direction, and doesn't show on a U2+L in a C64 Ultimate, if its CIA drives its lines rather than pulling them up. None of this has been measured.

Change

  • Keyboard gains ignore_held_input(), which UserInterface::run_once() calls right after take_ownership().
  • Keyboard_C64::ignore_held_input() disarms the scanner and drops its buffer from the reading end. On builds that scan from the timer, it does both in one critical section, so a timer scan cannot queue a key in between. This follows the ownership rules from 9b22d87: the scan and push_head() write the head, the UI task moves the tail.
  • scan() queues nothing until it has seen no key and no joystick. A modifier held on its own, such as SHIFT LOCK, still arms it.
  • clear_buffer() is unchanged. Popups call it on every LEFT/RIGHT redraw, so a key held in a popup keeps repeating.

One side effect, for @GideonZ and @chrisgleissner to decide on: a joystick held on port 2 through POST /v1/machine:input as the menu opens also keeps the scanner disarmed, so the physical C64 keyboard is ignored in the menu until the REST client releases it. The USB keyboard is unaffected. I kept it this way because it is the same rule as a physical joystick, and a REST client holding the joystick through a menu open already made the cursor run.

Tests, red then green

Host (make -C software/io/usb/tests), in keyboard_c64_clear_test.cpp:

  • JoystickHeldWhenMenuOpensIsIgnoredUntilReleased: built against master's keyboard_c64.cc, with ignore_held_input() stubbed to only empty the buffer, it fails with the phantom KEY_UP (-1 vs 145, six times in 40 scans); with this change it passes. It takes the physical-line branch of scan() (joy = true).
  • ClearBufferKeepsHeldKeyRepeating: this failed against my first version, which disarmed inside clear_buffer(). That is how the popup side effect showed up.
  • JoystickWorksWithoutIgnoreHeld: a press without the new call still arrives at once. This and the repeat test pass on master too, so existing behaviour is kept.
  • The rest of software/io/usb/tests, software/api/tests and software/filemanager/tests pass.
  • The host tests build without the timer (NO_FILE_ACCESS), so the critical section is covered by review, not by a test.

E2E: a new menu-held-input scenario in the input suite. It is in the quick profile, so it runs in the default gate. It parks the highlight on the first entry, holds port 2 down, opens the menu, and requires the highlight to stay put while held and after release. A fresh cursor key must still move it.

  • Master d4c1f54: FAIL (the menu opened with the highlight on (3, 'Flash ...') instead of (2, 'Temp ...'): the held input moved it as the menu opened). That is the single step from the report.
  • This branch: OK.
  • The U64 doesn't use the timer scan, so on hardware this exercises the arming logic, not the timer path. The REST-injected press takes the software-joystick branch of scan(); the physical-line branch a II+ would take is covered by the host test.
  • Keys held through REST bypass the matrix scan (restMatrixActive()) and reach the menu through the USB queue, so an E2E check with a held key or SHIFT would pass with or without this change. I left those out. SHIFT LOCK held on its own is covered by review only.

Build: rebased on master 2c60bd8. u2_rv, u2plus, u2pl, u64 and u64ii applications link from a clean tree on the CI-matched toolchain (Quartus 18.1, RISC-V GCC 10.2.0).

Hardware: Ultimate 64 Elite, FPGA 125, core 1.50, and an Ultimate II+ by @radius75 (see the top).

Full default E2E gate (./run-tests -H 192.168.1.148) on the rebased branch: 31 of 31 suites passed. The complete log is in the latest two comments below, because it is too long for the description.

@barryw

barryw commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

Default E2E gate, ./run-tests -H 192.168.1.148, against this branch (345ae9e on master d4c1f54; Ultimate 64 Elite, FPGA 125, core 1.50). Part 1 of 2.

Default gate log, part 1 of 2

============================================================
Ultimate hardware test run
============================================================
     target:     192.168.1.148
     categories: e2e
     profile:    quick (default)
     modes:      overlay
     timeout:    30.0s
     on failure: continue
     health:    answers + health sweep, up to 3 attempts per suite
settings: capture 192.168.1.148 ... OK (197 settings in 18 stores, 0.305s)
machine: resets skip the RAM test ... OK (already set, 0.012s)
the machine keeps its own bus resources ... OK (already set, 0.012s)

============================================================
E2E  lint  (overlay)
============================================================
lint_test: OK (ruff 0.16.5 over tests, run-tests, 0.048s)
lint: OK (0.116s)

============================================================
E2E  registry  (overlay)
============================================================
[01] every suite in the tree is registered in run-tests ... OK (0.000s)
     78 suites under tests/lib, tests/e2e, tests/perf, tests/soak
[02] every registered path exists ... OK (0.000s)
     79 registered paths
[03] every argument template spells only tokens the runner knows ... OK (0.000s)
     tokens: @HOST@, @MODE@, @PASS@, @SOAKPROFILE@, @TIMEOUT@
[04] every registered argument is one the suite's parser accepts ... OK (0.303s)
     65 templates, against 3 shared argument helpers
[05] every sys.path line is the shared bootstrap ... OK (0.352s)
     one bootstrap, computed by walking up rather than by counting
[06] -H, -p and -t come from tests/lib/cli.py ... OK (0.501s)
     18 files keep their own, each with a reason
registry_test: OK (79 suites, 1.208s)
registry: OK (1.275s)

============================================================
E2E  transport-usage  (overlay)
============================================================
check_transport_usage: OK (141 files, 1.068s)
transport-usage: OK (1.132s)

============================================================
E2E  esp-depends  (overlay)
============================================================
[01] every cached ESP32 project contributes to the cache key ... OK (0.039s)
     watched: u64ctrl (24 files), wifi/raw_c3 (17 files), wifi/raw_u64 (17 files)
[02] a misspelt directory fails instead of silently hashing nothing ... OK (0.029s)
     wifi/raw_c3/main misspelt as wifi/raw_c3/main_does_not_exist: esp_depends.py exited 1
     a change to any ESP32 project invalidates the cached binaries CI would otherwise hand back unbuilt
esp_depends_test: OK (2 checks, 0.068s)
esp-depends: OK (0.132s)

============================================================
E2E  input-batching  (overlay)
============================================================
[01] a batch of short taps is limited by the event count ... OK (0.003s)
     64 events, 3852 bytes
[02] a batch of long taps is limited by the body size ... OK (0.003s)
     46 events, 4014 bytes
[03] the file browser's 64-keypress field clear fits its requests ... OK (0.001s)
     64 taps as [60, 4]
[04] one oversized event is passed on rather than dropped ... OK (0.000s)
[05] no events make no requests ... OK (0.000s)
input_batching_test: OK (5 checks, 0.034s)
input-batching: OK (0.096s)

============================================================
E2E  runner-policy  (overlay)
============================================================
[01] a bare target is its own C64-side computer ... OK (0.000s)
[02] a cartridge target names the computer it is plugged into ... OK (0.000s)
[03] keyboard input is the computer's, everything else the device's ... OK (0.000s)
[04] a malformed target is rejected before anything starts ... OK (0.000s)
[05] a target's output path is safe to use as a file name ... OK (0.000s)
[06] a cartridge named alone takes the computer the bench declares ... OK (0.000s)
[07] an undeclared cartridge is unchanged, and so is a spelt-out one ... OK (0.000s)
[08] a declaration that says nothing about this device is ignored ... OK (0.000s)
[09] a declaration that names this device and no computer is fatal ... OK (0.000s)
[10] two spellings of the same machines are one target ...      WARN u2 names the same machines as u2@c64u; running it once
OK (0.000s)
[11] the capture reads every store except the clock ... OK (0.000s)
[12] a run that changed nothing writes nothing ... OK (0.000s)
[13] only the items a suite changed are written back ... OK (0.000s)
[14] a value the device will not take back is reported, not hidden ... OK (0.000s)
[15] the profiles are ordered and cumulative ... OK (0.000s)
[16] a suite named with -s runs whatever the profile says ... OK (0.000s)
[17] the manual suites arrive with the deep profile, not before ... OK (0.000s)
[18] the transports widen with depth, and -m still overrides ... OK (0.000s)
[19] an unknown profile is refused, naming the real ones ... OK (0.000s)
[20] move_rows spends page keys before single steps ... OK (0.000s)
[21] the keys sent always add up to the rows asked for ... OK (0.000s)
[22] a zero move sends nothing at all ... OK (0.000s)
[23] the matrix agrees with what the runner selects ... OK (0.000s)
[24] a suite run is counted once per transport swept ... OK (0.000s)
[25] the static view names no duration and no check count ... OK (0.000s)
[26] measured counts come from the run records ... OK (0.002s)
[27] two targets conflict exactly when they share a machine ... OK (0.000s)
[28] a target does not start while a machine it needs is in use ... OK (0.000s)
[29] scheduling every target eventually runs each one exactly once ... OK (0.000s)
[30] a child repeats the parent's work against one target ... OK (0.000s)
[31] every runner option is forwarded to a child or excluded on purpose ... OK (0.000s)
[32] children write into a directory of their own ... OK (0.000s)
[33] concurrent children never tear each other's lines ... OK (0.034s)
[34] every line a child printed reaches the run's output ... OK (0.029s)
[35] the run's status is the worst of its children's ... OK (0.000s)
[36] the gate reads the menu from the device and types into the computer ... OK (0.000s)
[37] a single-device target still sends everything to one host ... OK (0.000s)
[38] only a cartridge target has a computer menu to get out of the way ... OK (0.000s)
[39] a menu that will not open is repaired by resetting the machine ... OK (0.000s)
[40] a menu that will not close is repaired by resetting the machine ... OK (0.000s)
[41] a launcher is descended by reading the cursor, not by pressing blind ... OK (0.000s)
[42] a cartridge target shuts the computer's menu before resetting ... OK (1.005s)
[43] a UI that the reset does not free is reported, not looped on ... OK (0.000s)
[44] no suite builds a REST URL from an unrouted host ... OK (0.000s)
     8 routing forms accepted, tests/lib/rest.py is where the rule lives
[45] a clean run exits 0 ... OK (0.000s)
[46] a suite that needed a second attempt exits EXIT_RETRIED ... OK (0.000s)
[47] a failed suite exits EXIT_SUITE_FAILED ... OK (0.000s)
[48] a recovery with no failure exits EXIT_RECOVERED ... OK (0.000s)
[49] a recovery outranks a retry ... OK (0.000s)
[50] a failure outranks a recovery ... OK (0.000s)
[51] a device that cannot be made healthy outranks a failure ... OK (0.000s)
[52] the statuses are a scale, in severity order ... OK (0.000s)
[53] a device that answers is never recovered ... OK (0.000s)
[54] recovery runs only once the ordinary wait has given up ... OK (0.006s)
     fixture: the device is unhealthy: it is not answering
[55] a recovery that does not bring the device back reports so ... OK (0.060s)
     fixture: the device is unhealthy: it is not answering
[56] a recovery command that exits non-zero is still followed by a probe ... OK (0.006s)
     fixture: the device is unhealthy: it is not answering
[57] a recovery command that hangs is bounded by --recover-timeout ... OK (0.207s)
     fixture: the device is unhealthy: it is not answering
[58] a recovery command the shell cannot find is a failed recovery ... OK (0.070s)
     fixture: the device is unhealthy: it is not answering
[59] no recovery command means no recovery ... OK (0.000s)
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: no --recover-command was given
[60] a suite gives up after --recover-max-per-suite recoveries ... OK (0.123s)
     fixture: the device is unhealthy: it is not answering
     fixture: the device is unhealthy: it is not answering
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: this suite has already used its 2 recoveries
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: this suite has already used its 2 recoveries
[61] the per-suite budget starts again at the next suite ... OK (0.069s)
     fixture: the device is unhealthy: it is not answering
[62] the run gives up after --recover-max-total recoveries ... OK (0.117s)
     fixture: the device is unhealthy: it is not answering
     fixture: the device is unhealthy: it is not answering
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: the run has already used its 2 recoveries
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: the run has already used its 2 recoveries
[63] the refusal says which ceiling was reached ... OK (0.071s)
     fixture: the device is unhealthy: it is not answering
[64] a healthy sweep after a failed suite recovers nothing ... OK (0.001s)
     fixture: health: rest=9ms -> OK
[65] a degraded but reachable device is recovered ... OK (0.006s)
     fixture: health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: the device is unhealthy: it is degraded: ftp
     fixture: after recovery, health: rest=9ms -> OK
[66] a device still degraded after recovering is reported, not retried ... OK (0.011s)
     fixture: health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: the device is unhealthy: it is degraded: ftp
     fixture: after recovery, health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: still unhealthy after recovering: it is degraded: ftp
[67] a degraded device is not recovered past its ceiling ... OK (0.006s)
     fixture: health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: the device is unhealthy: it is degraded: ftp
     fixture: after recovery, health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: still unhealthy after recovering: it is degraded: ftp
     fixture: health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: the device is unhealthy: it is degraded: ftp
     fixture: not recovering: the run has already used its 1 recoveries
[68] --no-health-check takes the sweep out of the decision ... OK (0.000s)
[69] --no-health-check still recovers a device that has gone ... OK (0.068s)
     fixture: the device is unhealthy: it is not answering
[70] -o names the output directory ... OK (0.000s)
[71] --output-dir names the same one ... OK (0.000s)
[72] -j is not accepted ... OK (0.000s)
[73] --jsonl-dir is not accepted ... OK (0.000s)
[74] the old spellings are gone from --help ... OK (0.000s)
[75] the examples use the option the parser accepts ... OK (0.000s)
[76] a child is told where to write with the same option ... OK (0.000s)
[77] consecutive resets collapse into one ... OK (0.000s)
[78] a read between two resets does not warrant the second ... OK (0.000s)
[79] a mutation through another object still warrants a reset ... OK (0.000s)
[80] a GET through another object does not warrant a reset ... OK (0.000s)
[81] a mutating call between two resets warrants the second ... OK (0.000s)
[82] force resets even when nothing has changed ... OK (0.000s)
[83] a suite told the device was just reset does not reset again ... OK (0.000s)
[84] a suite not told that still resets ... OK (0.000s)
[85] the default runs a failing suite exactly three times ... OK (0.064s)
[86] --attempts counts executions, so 2 runs it twice ... OK (0.045s)
[87] --attempts 1 and --no-retry both run it exactly once ... OK (0.046s)
[88] a healthy device does not stop a failure being retried ... OK (0.069s)
[89] recoveries do not buy extra executions ... OK (0.066s)
[90] a device that has died by the last attempt is still noticed ... OK (0.064s)
[91] a device that cannot be made healthy ends the run ... OK (0.021s)
[92] a suite killed by a signal says so instead of reading as a failure ... OK (0.021s)
fixture: OK (1.500s)
[93] a health sweep reaches the JSONL with a latency per check ... OK (0.000s)
[94] a suite record carries the profile, attempt and recoveries ... OK (0.000s)
[95] the run record agrees with the exit status ... OK (0.000s)
[96] a sweep with every check passing is healthy ... OK (0.000s)
[97] a failed check makes the sweep degraded and names it ... OK (0.000s)
[98] a skipped check never makes the sweep degraded ... OK (0.000s)
[99] the one-line summary carries every latency and the verdict ... OK (0.000s)
     the recovery command runs on a degraded or unreachable device, never on a suite that merely failed
runner_policy_test: OK (99 checks, 2.369s)
runner-policy: OK (2.445s)

============================================================
E2E  stale-gates  (overlay)
============================================================
[01] a check that passes under an assumed fix is reported stale ... OK (0.001s)
[02] a tag in a per-suite file is found; run.jsonl alone would miss it ... OK (0.001s)
[03] a check that still fails under the assumption is not stale ... OK (0.000s)
[04] one failure among repeats keeps the entry off the stale list ... OK (0.000s)
[05] with no assumption, the gate skips for real and tags nothing ... OK (0.000s)
[06] assuming every fix does not tag a machine that never needed one ... OK (0.000s)
[07] a run with nothing tagged reports no stale gates at all ... OK (0.000s)
stale_gates_test: OK (7 checks, 0.006s)
stale-gates: OK (0.067s)

============================================================
E2E  openapi-validator  (overlay)
============================================================
[01] the core_version field decides which document applies ... OK (0.000s)
[02] a declared profile is used instead of asking the device ... OK (0.000s)
[03] a profile with no document is refused ... OK (0.000s)
[04] a request path finds the call it belongs to ... OK (0.000s)
     8 paths, including the three configs depths
[05] a path the document does not describe matches nothing ... OK (0.000s)
[06] an answer that matches is accepted ... OK (0.165s)
[07] a body missing a required member is refused ... OK (0.000s)
[08] a member of the wrong type is refused ... OK (0.000s)
[09] a status the call does not declare is refused ... OK (0.000s)
[10] the password refusal every call shares is accepted ... OK (0.000s)
[11] JSON where the document promises bytes is refused ... OK (0.000s)
[12] a body that will not parse is refused ... OK (0.000s)
[13] an undescribed call is refused unless the device says so too ... OK (0.000s)
[14] a verb the call does not have is refused ... OK (0.000s)
[15] anything outside /v1 is left alone ... OK (0.000s)
[16] both documents load and describe their own product ... OK (0.125s)
     u2 55 operations, u64 59 operations
openapi_contract_test: OK (16 checks, 0.441s)
openapi-validator: OK (0.519s)

============================================================
E2E  navigation-keys  (overlay)
============================================================
[01] the two values, and an unknown one, resolve to a reading ... OK (0.000s)
[02] a letter is shifted only where the menu folds it back ... OK (0.000s)
[03] the menu cannot be made to read an uppercase letter under wasd ... OK (0.000s)
[04] the setting is read once per host ... OK (0.000s)
[05] a quick-seek prefix is spelt the way the machine will read it ... OK (0.000s)
[06] a name holding a cursor letter is still seeked for ... OK (0.000s)
[07] a popup's button key reaches the button rather than the cursor ... OK (0.000s)
[08] an overlay item is picked by the same spelling ... OK (0.000s)
[09] text typed into a field is never respelt ... OK (0.000s)
[10] a duration is read in every unit the suites use ... OK (0.000s)
[11] a duration that is not one is a usage error, not a traceback ... OK (0.000s)
[12] a duration has to be a length of time, so zero is refused ... OK (0.000s)
     a letter is shifted only where the firmware folds it back, so a field still receives what a suite typed
navigation_test: OK (12 checks, 0.033s)
navigation-keys: OK (0.094s)

============================================================
E2E  ui-backend-parse  (overlay)
============================================================
[01] a row marked by background colour is the selected one ... OK (0.000s)
[02] a blank row never wins, however it is coloured ... OK (0.000s)
[03] a screen with nothing marked says so, rather than guessing ... OK (0.000s)
[04] two entries are separated by the machine's own cursor colour ... OK (0.000s)
[05] a cursor that colours one field still marks its row ... OK (0.000s)
[06] a framed window is read instead of what it covers ... OK (0.000s)
[07] a window narrows what counts as a marking ... OK (0.000s)
[08] row_marks counts only the cells inside the window ... OK (0.000s)
[09] reverse video marks a row where no colour does ... OK (0.000s)
     the rules the parsers were written for, each as one screen
ui_backend_parse_test: OK (9 checks, 0.033s)
ui-backend-parse: OK (0.099s)

============================================================
E2E  telnet-drain  (overlay)
============================================================
[01] a capture that sent nothing waits only the quiet check ... OK (0.155s)
[02] a key known to draw nothing costs no more than that either ... OK (0.154s)
[03] a redraw that never starts gives up after the first-byte budget ... OK (1.081s)
[04] one burst ends the drain an idle gap after it ... OK (0.210s)
[05] a settled command waits through the pause and takes both bursts ... OK (6.799s)
[06] an ordinary command does not wait for a second burst ... OK (0.658s)
[07] a redraw arriving in pieces is drained as one ... OK (0.315s)
[08] a band header refuses a layout it cannot label ... OK (0.000s)
telnet_drain_test: OK (8 checks, 9.400s)
telnet-drain: OK (9.472s)

============================================================
E2E  ui-backend-smoke  (overlay)
============================================================
     ui-backend-smoke: health: ping=12ms rest=15ms ftp=39ms telnet=36ms ident=13ms dma=14ms heap=5248492B raster=22ms jiffy=22ms -> OK

--- Machine identification
[01] each machine is recognised from its product string ... OK (0.000s)
[02] only the C64 Ultimate opens on a launcher ... OK (0.000s)
[03] the C64 Ultimate searches CommoServe, the others Assembly 64 ... OK (0.000s)
[04] an unrecognised product is refused rather than guessed ... OK (0.000s)
[05] the product is fetched once and then kept ... OK (0.000s)
[06] the firmware version is kept when the caller has it ... OK (0.000s)
[07] every fix in the table names a behaviour and a machine that lacks it ... OK (0.000s)
[08] the table decides which machine skips a tagged check ... OK (0.000s)
[09] a fix no entry lists is one every machine has ... OK (0.000s)
[10] a skipped check names the fix and the machine in its reason ... OK (0.000s)
[11] skip_without_fix answers True only where the check cannot run ... OK (0.000s)
[12] an assumed fix runs the checks it gates, which is how a backport is found ... OK (0.000s)
[13] an assumption list is parsed as a list, and a typo is refused ... OK (0.000s)
--- OK (13 checks, 0.000s)

--- Overlay navigation planner
[14] a unique first letter jumps straight to the item ... OK (0.000s)
[15] a shared first letter extends the prefix rather than walking ... OK (0.000s)
[16] walking wins when the item is already next to the cursor ... OK (0.000s)
[17] the seek lands on the first match and the walk covers the rest ... OK (0.000s)
[18] a prefix never contains a space, which selects rather than seeks ... OK (0.000s)
[19] a plan is never longer than walking from the top ... OK (0.000s)
[20] an upward walk is planned when that is the shorter route ... OK (0.000s)
--- OK (7 checks, 0.000s)

--- Cursor row from the colour plane
[21] a background-marked cursor row is found ... OK (0.000s)
[22] a cursor row marked by foreground colour alone is found ... OK (0.000s)
[23] the first entry is found when it is the selected one ... OK (0.000s)
[24] a cursor that colours only the name field is still found ... OK (0.000s)
[25] a volume header in reverse video is not taken for a cursor ... OK (0.000s)
[26] a form marks a field, not a row, and the field is found ... OK (0.000s)
[27] reverse video still marks the cursor when nothing else does ... OK (0.000s)
[28] a listing of three or more entries says which colour is the cursor ... OK (0.000s)
[29] a background-marked screen teaches no foreground cursor colour ... OK (0.000s)
[30] two entries need the colour the machine was measured to mark with ... OK (0.000s)
--- OK (10 checks, 0.001s)

--- Cursor row under a framed window
[31] a plain listing reports no framed window ... OK (0.000s)
[32] a framed window's own cursor is read, not the browser's ... OK (0.000s)
[33] a cursor further down a framed window is read ... OK (0.000s)
[34] the menu's header rule is not taken for a framed window ... OK (0.000s)
[35] a titled window's cursor is read, not its title ... OK (0.000s)
[36] a window's blank rows never win the cursor colour ... OK (0.000s)
[37] a dialog inside a picker is read, not the picker ... OK (0.000s)
[38] an open window is what the cursor colour is measured on ... OK (0.000s)
[39] a form teaches no cursor colour at all ... OK (0.000s)
[40] a menu beside a highlighted row is read, not the row ... OK (0.000s)
[41] a window with rounded corners is a window too ... OK (0.000s)
[42] an untitled window keeps its first row ... OK (0.000s)
[43] a background-marked window is read on a background-marked browser ... OK (0.000s)
--- OK (13 checks, 0.002s)

--- REST backend, Interface Type = Overlay on HDMI
[44] REST/Overlay: connect, navigate, teardown ... OK (2.670s)
--- OK (1 checks, 2.671s)

--- Telnet backend
[45] Telnet: connect, navigate, teardown ... OK (2.033s)
--- OK (1 checks, 2.033s)

--- REST backend, Interface Type = Freeze
[46] REST/Freeze: connect, navigate, teardown ... OK (2.416s)
--- OK (1 checks, 2.416s)
ui_backend_smoke_test: OK (46 checks, 7.156s)
ui-backend-smoke: OK (7.226s)

============================================================
E2E  readmem-writemem  (overlay)
============================================================
     readmem-writemem: health: ping=8ms rest=10ms ftp=39ms telnet=40ms ident=82ms dma=21ms heap=5243836B raster=26ms jiffy=34ms -> OK
[01] reset C64 to a clean, stable state ... OK (0.035s)
[02] read User Interface Settings config ... OK (0.014s)
     current Interface Type: Freeze

--- bounds: readmem rejects out-of-range parameters before allocating, and max-size reads do not degrade the device
[03] readmem rejects zero length ... OK (0.012s)
[04] readmem rejects negative length ... OK (0.019s)
[05] readmem rejects length one past the 64KB cap ... OK (0.010s)
[06] readmem rejects length far past the cap ... OK (0.011s)
[07] readmem rejects length that overflows a long ... OK (0.011s)
[08] readmem rejects read running past $FFFF ... OK (0.012s)
[09] readmem rejects address above $FFFF ... OK (0.010s)
[10] readmem rejects negative address ... OK (0.011s)
[11] 8 back-to-back max-size reads ($0000, 65536 bytes) all succeed ... OK (1.618s)
[12] 25 unsupported machine:measure calls leave readmem working ... OK (0.510s)
--- OK (10 checks, 2.250s)

--- bad-address: readmem and writemem reject an address that is not valid hex
[13] readmem rejects address='ZZZZ' ... OK (0.010s)
[14] writemem PUT rejects address='ZZZZ' ... OK (0.010s)
[15] writemem POST rejects address='ZZZZ' ... OK (0.054s)
[16] readmem rejects address='0xZZZZ' ... OK (0.013s)
[17] writemem PUT rejects address='0xZZZZ' ... OK (0.010s)
[18] writemem POST rejects address='0xZZZZ' ... OK (0.054s)
[19] readmem rejects address='gggg' ... OK (0.011s)
[20] writemem PUT rejects address='gggg' ... OK (0.010s)
[21] writemem POST rejects address='gggg' ... OK (0.040s)
[22] readmem rejects address='-0' ... OK (0.010s)
[23] writemem PUT rejects address='-0' ... OK (0.016s)
[24] writemem POST rejects address='-0' ... OK (0.060s)
[25] readmem rejects address='+1' ... OK (0.011s)
[26] writemem PUT rejects address='+1' ... OK (0.010s)
[27] writemem POST rejects address='+1' ... OK (0.085s)
[28] readmem rejects address='12GG' ... OK (0.010s)
[29] writemem PUT rejects address='12GG' ... OK (0.010s)
[30] writemem POST rejects address='12GG' ... OK (0.068s)
--- OK (18 checks, 0.504s)

--- bad-debugreg: machine:debugreg rejects a value that is not two hex digits
[31] debugreg rejects value='ZZ' ... OK (0.020s)
[32] debugreg rejects value='0xZZ' ... OK (0.030s)
[33] debugreg rejects value='-0' ... OK (0.021s)
[34] debugreg rejects value='1G' ... OK (0.026s)
[35] debugreg rejects value='1FF' ... OK (0.021s)
[36] debugreg still takes a valid value without changing it ... OK (0.010s)
[37] switch to Overlay on HDMI to probe live background activity ... OK (0.015s)
[38] probe addresses that change on their own while the C64 runs ... OK (6.008s)
     6 address(es) treated as expected live background noise: $00A1, $00A2, $00CD, $00CF, $01F2, $0287
[39] set Interface Type = Freeze ... OK (0.011s)
[40] open menu (Freeze) ... OK (0.112s)
[41] every 4 KB of RAM answers DMA while the machine is frozen ... OK (1.661s)
[42] probe addresses that still change while the machine is frozen ... OK (0.845s)
     0 address(es) change on their own while frozen
[43] write full-range pattern (Freeze) ... OK (0.768s)
[44] read back full range (Freeze) ... OK (0.219s)
[45] menu still open after write+read (Freeze) ... OK (0.016s)
--- OK (15 checks, 9.788s)

--- selfcheck-freeze: write and read both happen in Freeze (screen RAM excluded, the menu redraws its entry rows while open)
     [selfcheck-freeze] ignored ROM mismatches (writes to real ROM are no-ops): 16329
     [selfcheck-freeze] screen ($0400-$07FF) mismatches: 907 (expected, menu owns this range while frozen)
     [selfcheck-freeze] ignored known-live-noise mismatches: 0
     [selfcheck-freeze] color RAM (low nibble) mismatches: 0
     [selfcheck-freeze] RAM mismatches: 0
[46] close menu (Freeze) ... OK (0.036s)
[47] set Interface Type = Overlay on HDMI ... OK (0.011s)
[48] open menu (Overlay on HDMI) ... OK (0.115s)
[49] pause C64 for exact round trip (Overlay on HDMI) ... OK (0.010s)
[50] write full-range pattern (Overlay on HDMI) ... OK (0.588s)
[51] read back full range (Overlay on HDMI) ... OK (0.223s)
[52] resume C64 after exact round trip (Overlay on HDMI) ... OK (0.010s)
[53] menu still open after write+read (Overlay on HDMI) ... OK (0.017s)
--- OK (8 checks, 1.040s)

--- selfcheck-overlay-on-hdmi: write and read both happen in Overlay on HDMI (screen RAM excluded, the menu redraws its entry rows while open)
     [selfcheck-overlay-on-hdmi] ignored ROM mismatches (writes to real ROM are no-ops): 0
     [selfcheck-overlay-on-hdmi] screen ($0400-$07FF) mismatches: 908 (expected, menu owns this range while frozen)
     [selfcheck-overlay-on-hdmi] ignored known-live-noise mismatches: 0
     [selfcheck-overlay-on-hdmi] color RAM (low nibble) mismatches: 0
     [selfcheck-overlay-on-hdmi] RAM mismatches: 0
[54] close menu (Overlay on HDMI) ... OK (0.111s)
[55] close menu for the screen round trip (Overlay on HDMI) ... OK (0.010s)
[56] pause C64 for the screen round trip (Overlay on HDMI) ... OK (0.010s)
[57] write and read back $0400-$07FF (Overlay on HDMI) ... OK (0.085s)
[58] resume C64 after the screen round trip (Overlay on HDMI) ... OK (0.010s)
--- OK (5 checks, 0.255s)

--- screen-round-trip-overlay-on-hdmi: screen RAM round-trips exactly with no menu open
     [screen-round-trip-overlay-on-hdmi] screen ($0400-$07FF) mismatches: 0 (expected 0)
[59] set Interface Type = Overlay on HDMI ... OK (0.019s)
[60] open menu (Overlay on HDMI) ... OK (0.103s)
[61] write full-range pattern (Overlay on HDMI) ... OK (0.505s)
[62] capture ground truth in Overlay on HDMI mode ... OK (0.208s)
[63] close menu (Overlay on HDMI) ... OK (0.043s)
[64] set Interface Type = Freeze ... OK (0.011s)
[65] open menu (Freeze) ... OK (0.102s)
[66] read full range (Freeze) ... OK (0.197s)
[67] menu still open after cross-mode read (Freeze) ... OK (0.015s)
--- OK (9 checks, 1.211s)

--- overlay-on-hdmi-write_freeze-read: bytes written while Overlay on HDMI must read back the same while Freeze, except screen RAM (menu-owned while frozen)
     [overlay-on-hdmi-write_freeze-read] screen ($0400-$07FF) mismatches: 113 (expected, menu owns this range while frozen)
     [overlay-on-hdmi-write_freeze-read] ignored known-live-noise mismatches: 0
     [overlay-on-hdmi-write_freeze-read] color RAM (low nibble) mismatches: 0
     [overlay-on-hdmi-write_freeze-read] RAM mismatches: 0
[68] close menu (Freeze) ... OK (0.038s)
[69] set Interface Type = Freeze ... OK (0.011s)
[70] open menu (Freeze) ... OK (0.105s)
[71] write full-range pattern (Freeze) ... OK (0.553s)
[72] capture ground truth in Freeze mode ... OK (0.196s)
[73] close menu (Freeze) ... OK (0.042s)
[74] set Interface Type = Overlay on HDMI ... OK (0.016s)
[75] open menu (Overlay on HDMI) ... OK (0.098s)
[76] read full range (Overlay on HDMI) ... OK (0.195s)
[77] menu still open after cross-mode read (Overlay on HDMI) ... OK (0.020s)
--- OK (10 checks, 1.300s)

--- freeze-write_overlay-on-hdmi-read: bytes written while Freeze must read back the same while Overlay on HDMI, except screen RAM (menu-owned while frozen)
     [freeze-write_overlay-on-hdmi-read] screen ($0400-$07FF) mismatches: 113 (expected, menu owns this range while frozen)
     [freeze-write_overlay-on-hdmi-read] ignored known-live-noise mismatches: 0
     [freeze-write_overlay-on-hdmi-read] color RAM (low nibble) mismatches: 0
     [freeze-write_overlay-on-hdmi-read] RAM mismatches: 0
[78] close menu (Overlay on HDMI) ... OK (0.112s)
     restored Interface Type to 'Freeze'
--- OK (1 checks, 0.342s)

--- summary
     bounds: OK
     bad-address: OK
     bad-debugreg: OK
     selfcheck-freeze: OK
     selfcheck-overlay: OK
     screen-round-trip: OK
     overlay-to-freeze: OK
     freeze-to-overlay: OK
readmem_writemem_test: OK (78 checks, 22.8s)
readmem-writemem: OK (22.9s)

============================================================
E2E  menu-screen  (overlay)
============================================================
     menu-screen: health: ping=7ms rest=10ms ftp=49ms telnet=36ms ident=13ms dma=7ms heap=5243884B raster=21ms jiffy=21ms -> OK
[01] open menu ... OK (0.010s)
[02] GET menu_screen contract ... OK (0.019s)
[03] menu_screen renders a real menu ... OK (0.000s)
[04] close menu ... OK (0.014s)
[05] GET menu_screen unavailable ... OK (0.010s)
[06] GET menu_screen auth ... SKIP (--password not supplied, 0.000s)
menu_screen_test: OK (6 checks, 0.823s)
menu-screen: OK (0.900s)

============================================================
E2E  input  (overlay)
============================================================
     input: health: ping=7ms rest=10ms ftp=40ms telnet=37ms ident=13ms dma=20ms heap=5243884B raster=24ms jiffy=46ms -> OK
[01] input snapshot has stable empty response shape ... OK (0.028s)
[02] POST accepts 64 event batch ... OK (0.062s)
[03] bad content-type is rejected without mutation ... OK (0.060s)
[04] missing JSON body is rejected without mutation ... OK (0.075s)
[05] malformed JSON is rejected without mutation ... OK (0.072s)
[06] unknown root field is rejected without mutation ... OK (0.065s)
[07] late invalid event keeps whole batch atomic ... OK (0.065s)
[08] joystick port 1 fire keeps Anykey buttons 2 and 3 released ... OK (0.357s)
[09] joystick port 1 fire2 lights only Anykey button 2, only on port 1 ... OK (0.316s)
[10] joystick port 1 fire3 lights only Anykey button 3, only on port 1 ... OK (0.341s)
[11] joystick port 2 fire keeps Anykey buttons 2 and 3 released ... OK (0.327s)
[12] joystick port 2 fire2 lights only Anykey button 2, only on port 2 ... OK (0.335s)
[13] joystick port 2 fire3 lights only Anykey button 3, only on port 2 ... OK (0.328s)
[14] joystick fire2 on one port and fire3 on the other stay independent ... OK (0.336s)
[15] joystick fire2/fire3 tap auto-releases the POT hardware state ... OK (0.417s)
[16] joystick port 1 up press is visible on CIA reads ... OK (0.114s)
[17] joystick port 1 all inputs and idempotent release are visible on CIA reads ... OK (0.123s)
[18] joystick port 2 diagonal and fire are visible on CIA reads ... OK (0.110s)
[19] joystick partial release is visible on CIA reads ... OK (0.117s)
[20] joystick fire2/fire3 round-trip through REST state and POT hardware ... OK (0.809s)
[21] joystick release in the same batch as a tap on the same input wins ... OK (0.043s)
[22] joystick release_all then press in same batch is visible on CIA reads ... OK (0.087s)
[23] joystick unusual combination is visible on CIA reads ... OK (0.090s)
[24] joystick tap does not release persistent input ... OK (0.318s)
[25] joystick tap auto releases ... OK (0.340s)
[26] invalid joystick batch does not mutate state ... OK (0.149s)
[27] joystick release_all clears both ports, including POT hardware ... OK (0.389s)
[28] machine reset clears keyboard and joystick REST state ... OK (3.120s)
[29] keyboard single-tap batch is consumed by BASIC in order ... OK (0.713s)
[30] keyboard 10 Hz mixed alphabet echo has no missed presses ... OK (2.802s)
[31] keyboard 20 Hz alternating ab echo has no missed presses ... OK (1.473s)
[32] keyboard 5 Hz alternating ab echo has no missed presses ... OK (0.810s)
[33] keyboard single letter reaches the live C64 matrix ... OK (0.155s)
[34] keyboard shifted pair reaches the live C64 matrix ... OK (0.226s)
[35] keyboard batch applies multiple presses atomically ... OK (0.207s)
[36] keyboard ordered batch and idempotent release ... OK (0.070s)
[37] keyboard release_all can be followed by press in same batch ... OK (0.062s)
[38] keyboard accepts eight simultaneous inputs ... OK (0.088s)
[39] keyboard tap does not release persistent key ... OK (0.169s)
[40] keyboard release_all clears state ... OK (0.073s)
[41] keyboard restore tap auto releases ... OK (0.252s)
[42] keyboard special-key taps snapshot correctly and auto release ... OK (2.557s)
[43] keyboard tap is visible in the live hardware snapshot and auto releases ... OK (0.275s)
[44] keyboard cursor-left tap is visible in the live hardware snapshot and auto releases ... OK (0.273s)
[45] keyboard tap batch drains through the live matrix path ... OK (1.455s)
[46] keyboard long repeated tap train drains fully without sticky state ... OK (4.429s)
[47] invalid keyboard batch does not mutate state ... OK (0.043s)
[48] mouse state is detached and empty after release_all ... OK (0.035s)
[49] a mouse button press attaches the mouse and is reported in order ... OK (0.103s)
[50] invalid mouse events are rejected with their error and change nothing ... OK (0.650s)
[51] a tap presses and releases, and a path is queued behind it ... OK (0.523s)
[52] the queue holds 1024 reports and refuses a batch beyond that with 429 ... OK (0.505s)
[53] a request over the JSON value limit is refused with a clear error ... OK (0.028s)
[54] release_all in a batch makes room for what follows it ... OK (5.217s)
[55] release_all detaches the mouse ... OK (0.049s)
[56] a machine reset detaches the mouse and drops its queue ... OK (3.134s)
[57] a joystick held as the menu opens is ignored until released ... OK (5.223s)
input_test: OK (57 checks, 45.2s)
input: OK (45.3s)

@barryw

barryw commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

Default E2E gate, ./run-tests -H 192.168.1.148, against this branch (345ae9e on master d4c1f54; Ultimate 64 Elite, FPGA 125, core 1.50). Part 2 of 2.

Default gate log, part 2 of 2
============================================================
E2E  create-disk-image  (overlay)
============================================================
     create-disk-image: health: ping=7ms rest=11ms ftp=40ms telnet=37ms ident=13ms dma=7ms heap=5243872B raster=21ms jiffy=24ms -> OK

--- preconditions
[01] device reachable ... OK (0.023s)
[02] clear leftovers from an earlier run ... OK (0.130s)
--- OK (2 checks, 0.154s)

--- d64-35
[03] create d64 at /Temp/cdi_d64-35.d64 ... OK (0.052s)
[04] device still answers after create d64 ... OK (0.017s)
[05] /Temp/cdi_d64-35.d64 is 174848 bytes ... OK (0.014s)
--- OK (3 checks, 0.084s)

--- d64-40
[06] create d64 at /Temp/cdi_d64-40.d64 ... OK (0.054s)
[07] device still answers after create d64 ... OK (0.010s)
[08] /Temp/cdi_d64-40.d64 is 196608 bytes ... OK (0.013s)
--- OK (3 checks, 0.077s)

--- d71
[09] create d71 at /Temp/cdi_d71.d71 ... OK (0.114s)
[10] device still answers after create d71 ... OK (0.011s)
[11] /Temp/cdi_d71.d71 is 349696 bytes ... OK (0.015s)
--- OK (3 checks, 0.140s)

--- d81
[12] create d81 at /Temp/cdi_d81.d81 ... OK (0.160s)
[13] device still answers after create d81 ... OK (0.019s)
[14] /Temp/cdi_d81.d81 is 819200 bytes ... OK (0.014s)
--- OK (3 checks, 0.193s)

--- dnp-1
[15] create dnp at /Temp/cdi_dnp-1.dnp ... OK (0.037s)
[16] device still answers after create dnp ... OK (0.009s)
[17] /Temp/cdi_dnp-1.dnp is 65536 bytes ... OK (0.014s)
--- OK (3 checks, 0.061s)

--- dnp-16
[18] create dnp at /Temp/cdi_dnp-16.dnp ... OK (0.154s)
[19] device still answers after create dnp ... OK (0.012s)
[20] /Temp/cdi_dnp-16.dnp is 1048576 bytes ... OK (0.017s)
--- OK (3 checks, 0.184s)

--- repeat
[21] create d64 at /Temp/cdi_d64-35-repeat.d64 ... OK (0.054s)
[22] device still answers after create d64 ... OK (0.012s)
[23] /Temp/cdi_d64-35-repeat.d64 is 174848 bytes ... OK (0.017s)
--- OK (3 checks, 0.197s)
create_disk_image_test: OK (23 checks, 1.123s)
create-disk-image: OK (1.194s)

============================================================
E2E  d81-track-bounds  (overlay)
============================================================
     d81-track-bounds: health: ping=7ms rest=10ms ftp=49ms telnet=36ms ident=13ms dma=7ms heap=5243872B raster=32ms jiffy=21ms -> OK
[01] prepare 1581 and generated D81 fixtures ... OK (3.113s)

--- missing-track-81
[02] mount 80-track D81 on drive b ... OK (0.142s)
[03] device remains reachable after mount ... OK (0.010s)
[04] physical track 81 has the expected result ... OK (4.684s)
     tracks=80, job=$00, io=$00
--- OK (3 checks, 4.836s)

--- track-81
[05] mount 81-track D81 on drive b ... OK (0.145s)
[06] device remains reachable after mount ... OK (0.011s)
[07] physical track 81 has the expected result ... OK (4.723s)
     tracks=81, job=$00, io=$00
--- OK (3 checks, 4.879s)

--- oversized
[08] mount 85-track D81 on drive b ... OK (0.142s)
[09] device remains reachable after mount ... OK (0.019s)
[10] physical track 81 has the expected result ... OK (4.646s)
     tracks=85, job=$00, io=$00
--- OK (3 checks, 5.175s)
d81_track_bounds_test: OK (10 checks, 18.0s)
d81-track-bounds: OK (18.1s)

============================================================
E2E  rest-api-coverage  (overlay)
============================================================
     rest-api-coverage: health: ping=7ms rest=10ms ftp=48ms telnet=37ms ident=14ms dma=7ms heap=5243884B raster=22ms jiffy=58ms -> OK

--- coverage
[01] read the operation list ... OK (59 operations, from 2 OpenAPI document(s), 0.264s)
[02] every operation is exercised or excluded ... OK (58 exercised, 1 excluded, 0.000s)
[03] nothing is classified that the device does not serve ... OK (0.000s)
[04] every operation has a happy path somewhere ... OK (41 here, 9 elsewhere, 8 with none, 0.000s)
     not called: PUT /v1/machine:poweroff - turns the device off, and no test can turn it back on
     negative only: POST /v1/drives/{drive}:load_rom - as the PUT form
     negative only: POST /v1/runners:modplay - as the PUT form
     negative only: POST /v1/runners:run_crt - as the PUT form
     negative only: POST /v1/runners:sidplay - as the PUT form
     negative only: PUT /v1/drives/{drive}:load_rom - a wrong file leaves the drive with a broken ROM until the next reboot, and the tree has no drive ROM to load a good one from
     negative only: PUT /v1/runners:modplay - needs a MOD file and takes over the machine
     negative only: PUT /v1/runners:run_crt - needs a cartridge image and resets the C64
     negative only: PUT /v1/runners:sidplay - needs a SID file and takes over the machine
--- OK (4 checks, 0.264s)

--- preconditions
[05] device reachable ... OK (0.089s)
[06] record the state to restore ... OK (drive a: enabled=True type='1541', 9 settings, 0.179s)
--- OK (2 checks, 0.268s)

--- operations
     79 cases x3, concurrent, 3 workers
[07] GET /v1/version - returns a version x3 ... OK (0.000s)
[08] GET /v1/info - names product and firmware x3 ... OK (0.000s)
[09] GET /v1/info - reports the interface MAC addresses x3 ... OK (0.000s)
[10] GET /v1/info - names the commit it was built from x3 ... OK (0.000s)
[11] GET /v1/help - answers for a known command x3 ... OK (0.000s)
[12] GET /v1/help - refuses a missing command x3 ... OK (0.000s)
[13] GET /v1/configs - lists categories x3 ... OK (0.000s)
[14] GET /v1/configs/{category} - reads one category x3 ... OK (0.000s)
[15] GET /v1/configs/{category}/{item} - reads one item x3 ... OK (0.000s)
[16] GET /v1/configs/{category} - refuses an unknown category x3 ... OK (0.000s)
[17] PUT /v1/configs/{category}/{item} - writing the current value back is a no-op x3 ... OK (0.000s)
[18] PUT /v1/configs/{category}/{item}/{value} - the value-in-path form sets the same item x3 ... OK (0.000s)
[19] PUT /v1/configs/{category}/{item} - refuses an unknown category x3 ... OK (0.000s)
[20] POST /v1/configs - the JSON form sets an item x3 ... OK (0.000s)
[21] POST /v1/configs - refuses an unknown category x3 ... OK (0.000s)
[22] PUT /v1/configs:save_to_flash - save then load leaves the value x3 ... OK (0.000s)
[23] PUT /v1/configs:load_from_flash - covered by the save case above x3 ... OK (0.000s)
[24] PUT /v1/configs/{category}:save_to_flash - save then load leaves the value x3 ... OK (0.000s)
[25] PUT /v1/configs/{category}:load_from_flash - covered by the save case above x3 ... OK (0.000s)
[26] PUT /v1/configs/{category}:reset_to_default - resets one category and the values restore x3 ... OK (0.000s)
[27] PUT /v1/configs:reset_to_default - resets everything, needs --allow-global-reset x3 ... SKIP (resets every category at once; pass --allow-global-reset, 0.000s)
[28] GET /v1/files/{path}:info - describes /Temp x3 ... OK (0.000s)
[29] GET /v1/files/{path}:info - reports a missing path as absent x3 ... OK (0.000s)
[30] PUT /v1/files/{path}:create_d64 - refuses an unwritable path x3 ... OK (0.000s)
[31] PUT /v1/files/{path}:create_d71 - refuses an unwritable path x3 ... OK (0.000s)
[32] PUT /v1/files/{path}:create_d81 - refuses an unwritable path x3 ... OK (0.000s)
[33] PUT /v1/files/{path}:create_dnp - refuses an unwritable path x3 ... OK (0.000s)
[34] GET /v1/machine:readmem - returns the length asked for x3 ... OK (0.000s)
[35] GET /v1/machine:readmem - refuses a zero length x3 ... OK (0.000s)
[36] GET /v1/machine:heap - reports free within total x3 ... OK (0.000s)
[37] GET /v1/machine:measure - answers, 501 without bus measurement x3 ... OK (0.000s)
[38] GET /v1/machine:input - reports the input state x3 ... OK (0.000s)
[39] GET /v1/machine:debugreg - reads the register x3 ... OK (0.000s)
[40] PUT /v1/machine:debugreg - writing the held value back is a no-op x3 ... OK (0.000s)
[41] GET /v1/machine:menu_screen - answers 404 with no menu open x3 ... OK (0.000s)
[42] PUT /v1/machine:writemem - the byte written is the byte read back x3 ... OK (0.000s)
[43] POST /v1/machine:writemem - the uploaded block reads back x3 ... OK (0.000s)
[44] PUT /v1/machine:writemem - refuses a missing data argument x3 ... OK (0.000s)
[45] POST /v1/machine:input - refuses an empty event list x3 ... OK (0.000s)
[46] PUT /v1/machine:pause - pauses and resumes (status only) x3 ... OK (0.000s)
[47] PUT /v1/machine:resume - covered by the pause case above x3 ... OK (0.000s)
[48] PUT /v1/machine:menu_button - opens the menu and closes it again x3 ... OK (0.000s)
[49] PUT /v1/machine:reset - the C64 comes back to READY x3 ... OK (0.000s)
[50] PUT /v1/machine:reboot - the C64 comes back to READY x3 ... OK (0.000s)
[51] GET /v1/drives - lists both drive slots x3 ... OK (0.000s)
[52] PUT /v1/drives/{drive}:on - flips the drive and the listing agrees x3 ... OK (0.000s)
[53] PUT /v1/drives/{drive}:off - covered by the on/off case above x3 ... OK (0.000s)
[54] PUT /v1/drives/{drive}:mount - the listing shows the image x3 ... OK (0.000s)
[55] PUT /v1/drives/{drive}:unlink - keeps the disk, drops the file x3 ... OK (0.000s)
[56] PUT /v1/drives/{drive}:remove - clears the mounted image x3 ... OK (0.000s)
[57] POST /v1/drives/{drive}:mount - an uploaded image mounts x3 ... OK (0.000s)
[58] PUT /v1/drives/{drive}:set_mode - setting the current mode is a no-op x3 ... OK (0.000s)
[59] PUT /v1/drives/{drive}:reset - resets the drive (status only) x3 ... OK (0.000s)
[60] PUT /v1/drives/{drive}:reset - refuses an unknown drive letter x3 ... OK (0.000s)
[61] PUT /v1/drives/{drive}:mount - refuses a missing image x3 ... OK (0.000s)
[62] PUT /v1/drives/{drive}:load_rom - refuses a missing ROM file x3 ... OK (0.000s)
[63] POST /v1/drives/{drive}:load_rom - refuses a request with no body x3 ... OK (0.000s)
[64] PUT /v1/drives/{drive}:set_mode - refuses an unknown mode x3 ... OK (0.000s)
[65] PUT /v1/drives/{drive}:remove - refuses an unknown drive letter x3 ... OK (0.000s)
[66] PUT /v1/drives/{drive}:on - refuses an unknown drive letter x3 ... OK (0.000s)
[67] PUT /v1/drives/{drive}:off - refuses an unknown drive letter x3 ... OK (0.000s)
[68] PUT /v1/drives/{drive}:unlink - refuses an unknown drive letter x3 ... OK (0.000s)
[69] PUT /v1/runners:sidplay - refuses a missing file x3 ... OK (0.000s)
[70] POST /v1/runners:sidplay - refuses a request with no body x3 ... OK (0.000s)
[71] PUT /v1/runners:modplay - refuses a missing file x3 ... OK (0.000s)
[72] POST /v1/runners:modplay - refuses a request with no body x3 ... OK (0.000s)
[73] PUT /v1/runners:load_prg - refuses a missing file x3 ... OK (0.000s)
[74] POST /v1/runners:load_prg - refuses a request with no body x3 ... OK (0.000s)
[75] PUT /v1/runners:run_prg - refuses a missing file x3 ... OK (0.000s)
[76] POST /v1/runners:run_prg - refuses a request with no body x3 ... OK (0.000s)
[77] PUT /v1/runners:run_crt - refuses a missing file x3 ... OK (0.000s)
[78] POST /v1/runners:run_crt - refuses a request with no body x3 ... OK (0.000s)
[79] PUT /v1/streams/{stream}:start - starts and stops the debug stream x3 ... OK (0.000s)
[80] PUT /v1/streams/{stream}:stop - covered by the start case above x3 ... OK (0.000s)
[81] PUT /v1/streams/{stream}:start - refuses an unknown stream x3 ... OK (0.000s)
[82] PUT /v1/streams/{stream}:stop - refuses an unknown stream x3 ... OK (0.000s)
[83] protocol: an unknown route is 404 x3 ... OK (0.000s)
[84] protocol: a command asked for with the wrong method does not run x3 ... OK (0.000s)
[85] protocol: an unauthenticated read is refused x3 ... SKIP (no password is set on this device, 0.000s)
--- SKIP (79 checks, 25.0s)
rest_api_coverage_test: OK (85 checks, 25.6s)
rest-api-coverage: OK (25.7s)

============================================================
E2E  openapi-contract  (overlay)
============================================================
     openapi-contract: health: ping=7ms rest=10ms ftp=49ms telnet=36ms ident=13ms dma=8ms heap=5243832B raster=31ms jiffy=21ms -> OK
[01] u2 document is valid OpenAPI 3.1 ... OK (0.478s)
     44 paths, 33 schemas
[02] u64 document is valid OpenAPI 3.1 ... OK (0.492s)
     47 paths, 35 schemas
     Ultimate 64 Elite is described by the u64 document
[03] the device serves its own OpenAPI document ... OK (0.429s)
     147819 bytes, byte for byte the committed u64 document
[04] the device serves the API explorer ... OK (0.059s)
[05] a client generates from the u64 document ... OK (0.751s)
     package ultimate_64_rest_api_client
[06] the generated client reads the interface version ... OK (0.075s)
     version 0.1
[07] the generated client reads memory and agrees with the raw call ... OK (0.030s)
     $D020 reads fef6
[08] GET /v1/version matches the document ... OK (0.011s)
[09] GET /v1/info matches the document ... OK (0.013s)
[10] GET /v1/machine:heap matches the document ... OK (0.012s)
[11] GET /v1/drives matches the document ... OK (0.017s)
[12] GET /v1/configs matches the document ... OK (0.015s)
[13] GET /v1/configs/Drive%20A%20Settings matches the document ... OK (0.015s)
[14] GET /v1/configs/Drive%20A%20Settings/* matches the document ... OK (0.064s)
[15] GET /v1/machine:readmem matches the document ... OK (0.010s)
[16] GET /v1/machine:menu_screen matches the document ... OK (0.011s)
     HTTP 404
[17] a rejected call matches the document ... OK (0.011s)
[18] a refused call matches the document ... SKIP (no network password is configured on this device, 0.000s)
openapi_contract_test: OK (18 checks, 3.071s)
openapi-contract: OK (3.202s)

============================================================
E2E  browser-long-filename  (overlay)
============================================================
     browser-long-filename: health: ping=7ms rest=10ms ftp=40ms telnet=37ms ident=13ms dma=8ms heap=5242280B raster=22ms jiffy=37ms -> OK
[01] reset the machine to a clean starting state ... OK (0.558s)
[02] seed long-name fixture for rename ... OK (0.761s)
[03] browser rename on long filename ... OK (4.212s)
[04] reseed long-name fixture for mount ... OK (0.881s)
[05] browser mount on long filename ... OK (4.357s)
browser_long_filename_test: OK (5 checks, 11.2s)
browser-long-filename: OK (12.4s)

============================================================
E2E  ftp-client  (overlay)
============================================================
     ftp-client: health: ping=8ms rest=11ms ftp=46ms telnet=36ms ident=13ms dma=7ms heap=5243848B raster=21ms jiffy=23ms -> OK
     inferred --ftp-advertised-host 192.168.1.78
     controlled FTP server on 0.0.0.0:2121 (advertised 192.168.1.78)
[I 2026-09-27 18:03:41] concurrency model: async
[I 2026-09-27 18:03:41] masquerade (NAT) address: 192.168.1.78
[I 2026-09-27 18:03:41] passive ports: 30000->30019
[I 2026-09-27 18:03:41] >>> starting FTP server on 0.0.0.0:2121, pid=87340 <<<
     server root: /var/folders/52/5656d2050tz7nvc4b1m1tfqw0000gn/T/u64ftp-gifr76_b (marker E2E-1790546621)
[01] GET /v1/version reachable ... OK (0.1, 0.030s)
[02] menu closed -> menu_screen 404 ... OK (0.038s)
[03] menu_button opens menu ... OK (0.101s)
[04] menu_screen returns 2000-byte matrix ... OK (2000 bytes, 0.015s)
[05] input release_all works ... OK (0.015s)
[06] menu closes from anywhere ... OK (0.326s)
[07] remove any stale hosts left by a prior run ... OK (0 removed, 1.853s)

--- stage: smoke
[08] create FTP host 'E2EFTP66216zx3' through the New Host form ... OK (8.579s)
[09] new alias appears under /ftp ... OK (1.864s)
[10] enter host: server sees login + TYPE I + LIST ... [I 2026-09-27 18:03:56] 192.168.1.62:52441-[] FTP session opened (connect)
[I 2026-09-27 18:03:56] 192.168.1.62:52441-[u64e2e] USER 'u64e2e' logged in.
OK (PASS,TYPE,LIST, 2.718s)
[11] root listing shows fixture entries ... OK (README,DIRA,SMALL, 0.015s)
[12] open README.TXT -> RETR (52 bytes) ... [I 2026-09-27 18:03:58] 192.168.1.62:52441-[u64e2e] RETR /private/var/folders/52/5656d2050tz7nvc4b1m1tfqw0000gn/T/u64ftp-gifr76_b/README.TXT completed=1 bytes=52 seconds=0.0
OK (52 bytes, 1.992s)
[13] remove host and confirm it disappears ... [I 2026-09-27 18:04:02] 192.168.1.62:52441-[u64e2e] FTP session closed (disconnect).
OK (5.528s)
--- OK (6 checks, 20.7s)

--- cleanup
     preserved: nothing

--- summary
     Phase    Operation              Result             Commands       Fixture/Notes
     ------------------------------------------------------------------------------
     smoke    create host            OK                                E2EFTP66216zx3
     smoke    list host              OK                                E2EFTP66216zx3
     smoke    enter/LIST             OK                 USER/PASS/TYPE E2EFTP66216zx3
     smoke    root entries           OK                 LIST           README/DIRA/SMALL
     smoke    RETR README            OK                 RETR           README.TXT 52 bytes
     smoke    remove host            OK                                E2EFTP66216zx3
     ------------------------------------------------------------------------------
     Total REST requests   : 125
     Total menu snapshots  : 56
     Total keyboard events : 87
     Total FTP commands    : 24
     Created host alias    : (removed)
     Remote root path      : /var/folders/52/5656d2050tz7nvc4b1m1tfqw0000gn/T/u64ftp-gifr76_b
     Cleanup status        : clean
Exception in thread Thread-1 (serve_forever):
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/threading.py", line 992, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/barry/Library/Python/3.13/lib/python/site-packages/pyftpdlib/servers.py", line 254, in serve_forever
    self.ioloop.loop(timeout, blocking)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/Users/barry/Library/Python/3.13/lib/python/site-packages/pyftpdlib/ioloop.py", line 376, in loop
    poll(timeout)
    ~~~~^^^^^^^^^
  File "/Users/barry/Library/Python/3.13/lib/python/site-packages/pyftpdlib/ioloop.py", line 741, in poll
    kevents = self._kqueue.control(
        None, _len(self.socket_map), timeout
    )
OSError: [Errno 9] Bad file descriptor
ftp_client_test: OK (6 operation(s), 24.9s)
ftp-client: OK (25.2s)

============================================================
E2E  prg-load-path-trim  (overlay)
============================================================
     prg-load-path-trim: health: ping=7ms rest=11ms ftp=51ms telnet=36ms ident=13ms dma=7ms heap=5243800B raster=34ms jiffy=21ms -> OK

--- Ultimate 64 PRG load path trim
     host: 192.168.1.148
     PUT file path: /Temp/rest-prg-path-trim-target-example.prg
     POST upload name: rest-prg-path-trim-upload-example.prg

--- 1. Capture Current Configuration
     Temp Auto Cleanup: Enabled
     Temp Subfolders: Enabled

--- 2. Configure Temp Settings
[01] set Temp Auto Cleanup to Enabled ... OK (0.011s)
[02] set Temp Subfolders to Enabled ... OK (0.023s)
--- OK (2 checks, 0.034s)

--- 3. Prepare PRG Fixture
[03] upload PUT fixture rest-prg-path-trim-target-example.prg ... OK (0.110s)
--- OK (1 checks, 0.111s)

--- 4. Validate PUT Endpoints
[04] exercise PUT runners:load_prg ... OK (0.394s)
     PUT load_prg boot-cart name: ...T-EXAMPLE
[05] exercise PUT runners:run_prg ... OK (1.766s)
     PUT run_prg boot-cart name: ...T-EXAMPLE
--- OK (2 checks, 2.293s)

--- 5. Validate POST Endpoints
[06] exercise POST runners:load_prg ... OK (0.438s)
     POST load_prg boot-cart name: ...D-EXAMPLE
[07] exercise POST runners:run_prg ... OK (1.804s)
     POST run_prg boot-cart name: ...D-EXAMPLE
--- OK (2 checks, 2.817s)
prg_load_path_trim_test: OK (7 checks, 5.856s)

--- restore User Interface Settings
[08] set Temp Auto Cleanup to Enabled ... OK (0.013s)
[09] set Temp Subfolders to Enabled ... OK (0.016s)
prg-load-path-trim: OK (6.634s)

============================================================
E2E  cfg-single-group  (overlay)
============================================================
     cfg-single-group: health: ping=7ms rest=10ms ftp=49ms telnet=37ms ident=13ms dma=7ms heap=5243912B raster=20ms jiffy=56ms -> OK
[01] load a one-group CFG file through the browser ... OK (5.170s)
cfg_single_group_test: OK (1 checks, 5.706s)
cfg-single-group: OK (6.218s)

============================================================
E2E  cfg-loader-log  (overlay)
============================================================
[01] an uninterrupted log gives the stores it names ... OK (0.000s)
[02] a log with no loader lines in it reports nothing ... OK (0.000s)
[03] a spliced effectuated record yields no store name ... OK (0.000s)
[04] both halves of a spliced effectuated record are reported ... OK (0.000s)
[05] a record appended to another task's line is reported, not read ... OK (0.000s)
[06] a spliced clean record yields no store name and is reported ... OK (0.000s)
cfg_loader_log_test: OK (6 checks, 0.037s)
cfg-loader-log: OK (0.106s)

============================================================
E2E  printer  (overlay)
============================================================
     printer: health: ping=6ms rest=10ms ftp=40ms telnet=46ms ident=15ms dma=7ms heap=5245464B raster=32ms jiffy=58ms -> OK
[01] REST reachable at 192.168.1.148 ... OK (0.018s)
[02] reset before run ... OK (0.088s)
[03] load printer_e2e.prg ... OK (914 bytes, 0.000s)
[04] capture original Printer Settings ... OK (0.153s)
[05] print epson/bitmap: apply settings + run PRG ... OK (phase=printer closed heartbeat=4, 2.667s)
[06] print epson/bitmap: Flush/Eject via on-screen menu ... OK (3.962s)

--- restoring original Printer Settings
     IEC printer: Disabled
     Bus ID: 4
     Output file: /Usb0/printer
     Output type: PNG B&W
     Ink density: Medium
     Page top margin (default is 5): 5
     Page height (default is 60): 60
     Emulation: Commodore MPS
     Commodore charset: USA/UK
     Epson charset: Basic
     IBM table 2: International 1

--- summary
     epson      bitmap PASS_NO_VERIFY       /USB1/printer/e2e-ebfd9e
printer_test: OK (1 combination(s), 7.393s)
printer: OK (7.495s)

============================================================
E2E  usb-mouse  (overlay)
============================================================
     usb-mouse: health: ping=7ms rest=10ms ftp=50ms telnet=36ms ident=14ms dma=8ms heap=5245364B raster=34ms jiffy=23ms -> OK
     saved settings: Mouse Mode='Mouse', Mouse Sensitivity=8, Mouse Acceleration='Off', Mouse Wheel Sensitivity=8, Mouse Wheel Direction='Normal', Joystick Swapper='Normal', Menu Mouse Navigation='Enabled', System Mode='NTSC'
     quick profile: move, precision, buttons, wheel-micromys, cursor-mode
[01] moves [(30, 20)] land at (30, 20) ... OK (0.971s)
     x=30 y=20 step x(0, 30) y(0, 20) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$54/$70 lines=$00 frames=30 moved=1
[02] moves [(-80, -65)] land at (-80, -65) ... OK (0.612s)
     x=-80 y=-65 step x(-31, 0) y(-31, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$78/$1A lines=$00 frames=30 moved=3
[03] moves [(63, -63), (-20, 40)] land at (43, -23) ... OK (0.632s)
     x=43 y=-23 step x(-20, 31) y(-31, 31) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$6E/$46 lines=$00 frames=32 moved=4
[04] 120 reports of 1,-1 move a frame each ... OK (3.221s)
     x=120 y=-120 step x(0, 1) y(-1, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$08/$08 lines=$00 frames=186 moved=120
[05] 120 reports of -2,2 move a frame each ... OK (3.199s)
     x=-240 y=240 step x(-2, 0) y(0, 2) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$38/$38 lines=$00 frames=185 moved=120
[06] all 8 button states ... OK (1.722s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=4 middle=2 right=1] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=97 moved=0
[07] a REST tap of each button, and of all three, is one press each ... OK (0.941s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=2 middle=2 right=2] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=54 moved=0
[08] sensitivity 3: 2 up and 1 down detents, slowly, give 3 pulses each and leave the position ... OK (2.007s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=6 down=3 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=117 moved=0
[09] 10 detents as fast as the host polls queue and all pulse ... OK (1.358s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=10 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=80 moved=0
[10] Cursor, sensitivity 2: wheel -2/0 types cursor keys {'up': 0, 'down': 8, 'left': 0, 'right': 0} ... OK (1.232s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[down=8] keys held=0 [0.7=8] pot=$18/$18 lines=$00 frames=72 moved=0
[11] Cursor, sensitivity 2: wheel 0/1 types cursor keys {'up': 0, 'down': 0, 'left': 3, 'right': 0} ... OK (0.753s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[left=3] keys held=0 [0.2=3 6.4=3] pot=$18/$18 lines=$00 frames=44 moved=0
[12] Cursor: [(8, 0)] types {'right': 2} and leaves the pointer ... OK (0.546s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[right=2] keys held=0 [0.2=2] pot=$18/$18 lines=$00 frames=32 moved=0
[13] Cursor: [(-12, 0)] types {'left': 3} and leaves the pointer ... OK (0.563s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[left=3] keys held=0 [0.2=3 6.4=3] pot=$18/$18 lines=$00 frames=30 moved=0
[14] Cursor: [(0, 8)] types {'down': 2} and leaves the pointer ... OK (0.485s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[down=2] keys held=0 [0.7=2] pot=$18/$18 lines=$00 frames=27 moved=0
[15] Cursor: [(0, -2)] types nothing and leaves the pointer ... OK (0.461s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=27 moved=0
[16] Cursor: [(0, -2), (0, -2)] types {'up': 1} and leaves the pointer ... OK (0.602s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[up=1] keys held=0 [0.7=1 6.4=1] pot=$18/$18 lines=$00 frames=36 moved=0
[17] Cursor: [(1, 0), (1, 0), (1, 0)] types nothing and leaves the pointer ... OK (0.596s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=35 moved=0
[18] Cursor: [(1, 0), (1, 0), (1, 0), (1, 0)] types {'right': 1} and leaves the pointer ... OK (0.685s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[right=1] keys held=0 [0.2=1] pot=$18/$18 lines=$00 frames=40 moved=0
[19] Cursor: motion far faster than the keys can be typed stops soon after the mouse ... OK (1.597s)
     keys kept coming for 0.97s after the mouse stopped: x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[right=19] keys held=0 [0.2=19] pot=$18/$18 lines=$00 frames=95 moved=0
[20] Cursor: turning the other way drops the keys still waiting ... OK (0.758s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[left=1 right=5] keys held=0 [0.2=6 6.4=1] pot=$18/$18 lines=$00 frames=44 moved=0
mouse_test: OK (20 checks, 25.7s)
usb-mouse: OK (25.8s)

============================================================
E2E  ftp-server  (overlay)
============================================================
     ftp-server: health: ping=6ms rest=10ms ftp=49ms telnet=36ms ident=13ms dma=7ms heap=5243848B raster=21ms jiffy=53ms -> OK

--- a name the listing reports can address the file it names
[01] a 40-character name is listed unchanged ... OK (0.055s)
[02] that file is removed by the name the listing reported ... OK (0.051s)
[03] a 100-character name is listed unchanged ... OK (0.068s)
     100 characters survived the listing
[04] SIZE answers for the long name the listing reported ... OK (0.035s)
[05] that file is removed by the name the listing reported ... OK (0.067s)
--- OK (5 checks, 0.343s)
ftp_server_test: OK (5 checks, 0.348s)
ftp-server: OK (0.420s)

============================================================
E2E  assembly64  (overlay)
============================================================
     assembly64: health: ping=7ms rest=11ms ftp=50ms telnet=37ms ident=13ms dma=8ms heap=5239192B raster=29ms jiffy=21ms -> OK
     this machine searches Assembly 64, from its task menu

--- the form opens from the menu and closes again
[01] open the Assembly 64 Query Form ... OK (0.664s)
[02] the form leaves cleanly with RUN/STOP ... OK (0.356s)
--- OK (2 checks, 1.120s)

--- a real query is sent to Assembly 64
[03] open the form and enter the first field ... OK (0.933s)
     the query term goes in 'Name:', the form's first field
[04] the typed term lands in the first field ... OK (0.632s)
[05] the service answers and the results match what was asked for ... OK (1.069s)
     20 result rows mention 'turrican'
--- OK (3 checks, 3.086s)

--- dropdown selections preserve the query form (#863)
[06] the form draws fields, and at least one of them is a dropdown ... OK (8.017s)
     13 field(s) drawn: Name:, Group:, Handle:, Event:, Repo:, Category:, Subcat:, Rating:, Type:, Date:, Latest:, Sort:, Order:
     4 free text: Name:, Group:, Handle:, Event:
     9 dropdown: Repo:, Category:, Subcat:, Rating:, Type:, Date:, Latest:, Sort:, Order:
[07] populate the free-text fields ... OK (3.873s)
[08] Repo: +/- preserves existing fields ... OK (0.804s)
[09] cancelling Repo: preserves existing fields ... OK (0.504s)
[10] confirming Repo: preserves its value and all other fields ... OK (2.089s)
[11] Category: +/- preserves existing fields ... OK (1.046s)
[12] cancelling Category: preserves existing fields ... OK (0.573s)
[13] confirming Category: preserves its value and all other fields ... OK (2.121s)
[14] Subcat: +/- preserves existing fields ... OK (0.922s)
[15] cancelling Subcat: preserves existing fields ... OK (0.561s)
[16] confirming Subcat: preserves its value and all other fields ... OK (2.067s)
[17] Rating: +/- preserves existing fields ... OK (1.062s)
[18] cancelling Rating: preserves existing fields ... OK (0.507s)
[19] confirming Rating: preserves its value and all other fields ... OK (2.116s)
[20] Type: +/- preserves existing fields ... OK (1.038s)
[21] cancelling Type: preserves existing fields ... OK (0.496s)
[22] confirming Type: preserves its value and all other fields ... OK (2.004s)
[23] Date: +/- preserves existing fields ... OK (1.004s)
[24] cancelling Date: preserves existing fields ... OK (0.586s)
[25] confirming Date: preserves its value and all other fields ... OK (2.077s)
[26] Latest: +/- preserves existing fields ... OK (0.984s)
[27] cancelling Latest: preserves existing fields ... OK (0.598s)
[28] confirming Latest: preserves its value and all other fields ... OK (2.031s)
[29] Sort: +/- preserves existing fields ... OK (1.122s)
[30] cancelling Sort: preserves existing fields ... OK (0.498s)
[31] confirming Sort: preserves its value and all other fields ... OK (2.043s)
[32] Order: +/- preserves existing fields ... OK (1.284s)
[33] cancelling Order: preserves existing fields ... OK (0.561s)
[34] confirming Order: preserves its value and all other fields ... OK (2.113s)
--- OK (29 checks, 45.1s)

--- the menu button must work from inside the edit field
[35] open the form and enter the edit field ... OK (0.876s)
[36] the menu button closes the menu from inside the field ... OK (0.101s)
[37] the menu opens again, so the UI task left string_edit ... OK (0.102s)
--- OK (3 checks, 1.504s)

--- an aborted edit must not wedge the form
[38] open the form, type into a field, then abort ... OK (1.387s)
[39] the form is still usable after the abort ... OK (0.016s)
--- OK (2 checks, 1.773s)

--- over-long and empty input
[40] type more than the field accepts ... OK (2.044s)
[41] an empty query is refused rather than sent ... OK (1.731s)
[42] the warning is dismissed and the form is still usable ... OK (0.303s)
--- OK (3 checks, 4.518s)

--- a user mashing keys while the form is busy
[43] submit a query and hammer keys while it runs ... OK (4.481s)
[44] the device is still answering after the mashing ... OK (0.009s)
--- OK (2 checks, 4.920s)

--- opening and abandoning the form repeatedly
[45] open and abandon the form three times ... OK (2.956s)
[46] the menu button closes and reopens the form three times ... OK (3.267s)
--- OK (2 checks, 6.507s)
assembly64_test: OK (46 checks, 69.0s)
assembly64: OK (69.1s)

============================================================
E2E  freezer-audio  (overlay)
============================================================
     freezer-audio: health: ping=7ms rest=10ms ftp=39ms telnet=37ms ident=14ms dma=8ms heap=5243844B raster=21ms jiffy=63ms -> OK
[01] entering the freezer menu is silent on a silent machine ... OK (0.629s)
     entry peak RMS 0.001
[02] a SID tune reaches the audio stream ... OK (2.014s)
     baseline RMS 0.107
[03] entering the freezer menu is silent while a tune plays ... OK (0.146s)
     entry peak RMS 0.107 against a 0.107 tune
[04] the freezer menu silences the machine ... OK (0.401s)
     frozen RMS 0.000, under the 0.011 bound
[05] closing the freezer menu gives the sound back ... OK (1.297s)
     resumed RMS 0.106
[06] playing a SID from the freezer menu gives the sound back ... OK (2.558s)
     relaunched RMS 0.107
freezer_audio_test: OK (6 checks, 8.061s)
freezer-audio: OK (8.134s)

TEARDOWN (overlay): release input ... OK (0.015s)
TEARDOWN (overlay): close active menu UI ... OK (0.082s)
TEARDOWN (overlay): reset machine ... OK (0.217s)

settings: restore 192.168.1.148 ... OK (unchanged, 0.549s)

============================================================
Summary
============================================================
     OK   e2e overlay    301s (29 ok)
     slowest: assembly64 69.1s, input 45.3s, usb-mouse 25.8s
     301s in suites, 16.9s in health checks, the UI-state gate and teardown
     318s total

OK  all 29 suite runs passed.

@GideonZ

GideonZ commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Interesting. I have mever encountered this in the entire 15 years of existence of the 1541U2 / U2+ line.

@radius75

Copy link
Copy Markdown
Contributor

I'll test the fix this evening after work.

I have to admit that I had never encountered this issue before either. This is the first time I've noticed this behavior on my U2+.

@chrisgleissner

chrisgleissner commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

I just checked and it also does not occur on my Ultimate II+L with latest 3.15 master firmware on a C64U FE. I opened the menu 10 times and the position in the menu did not change. I positioned the cursor in the middle of a long file list on my USB drive. Maybe it just happens if connected to a real C64.

@radius75

Copy link
Copy Markdown
Contributor

The automated GitHub build hasn't compiled this fix yet, though.

@radius75

Copy link
Copy Markdown
Contributor

In the meantime, I used the time to narrow down which commit introduced the problem.

The build I used, v3.15-219-gec6e0322c, comes from PR #931, which has since been merged into master.

Not every commit from that branch was included in an automated build, but I was able to narrow it down to:

Last known good commit: 1ba94ab
First known bad commit: 3fbe765

The commits between these two were not built by the automated build system.

@GideonZ

GideonZ commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Due to reconstruction work, the build server is online here in my house.

Opening the menu after the C64 has been running could move the browser
cursor by one step without any key being pressed (GideonZ#935). The step was
always Up, Down, Left or Right, which is what the joystick port 2 decode
in Keyboard_C64::scan() produces: it samples $DC00 before the keyboard
matrix and maps PA0-PA3 onto the CRSR positions. Nothing reset the
scanner when the menu took the machine, so a low sample on the first
scans would become one keystroke.

Keyboard gains ignore_held_input(), called by UserInterface::run_once()
right after it takes ownership. Keyboard_C64 disarms and drops its buffer
from the reading end, in one critical section on builds that scan from
the timer, so a timer scan cannot queue a key in between; scan() queues
nothing until it has seen no key and no joystick.
A modifier held on its own (SHIFT LOCK) still arms it. clear_buffer() is
unchanged, so a key held inside a popup keeps repeating.

Tests: host cases for the held joystick, a joystick press without the
new call, and key repeat across clear_buffer(); a menu-held-input
scenario in the input E2E suite (quick profile) that opens the menu with
joystick port 2 held and requires the highlight to stay put.
@barryw
barryw force-pushed the fix/935-menu-phantom-key branch from 345ae9e to f2389ba Compare September 29, 2026 19:37
@barryw

barryw commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Default E2E gate, ./run-tests -H 192.168.1.148, against the rebased branch (f2389ba on master 2c60bd8; Ultimate 64 Elite, FPGA 125, core 1.50). Part 1 of 2.

Default gate log, part 1 of 2

============================================================
Ultimate hardware test run
============================================================
     target:     192.168.1.148
     categories: e2e
     profile:    quick (default)
     modes:      overlay
     timeout:    30.0s
     on failure: continue
     health:    answers + health sweep, up to 3 attempts per suite
settings: capture 192.168.1.148 ... OK (197 settings in 18 stores, 0.379s)
machine: resets skip the RAM test ... OK (already set, 0.019s)
the machine keeps its own bus resources ... OK (already set, 0.020s)

============================================================
E2E  lint  (overlay)
============================================================
lint_test: OK (ruff 0.16.5 over tests, run-tests, 0.025s)
lint: OK (0.094s)

============================================================
E2E  registry  (overlay)
============================================================
[01] every suite in the tree is registered in run-tests ... OK (0.000s)
     83 suites under tests/lib, tests/e2e, tests/perf, tests/soak
[02] every registered path exists ... OK (0.000s)
     84 registered paths
[03] every argument template spells only tokens the runner knows ... OK (0.000s)
     tokens: @HOST@, @KERNAL@, @MODE@, @PASS@, @SOAKPROFILE@, @TIMEOUT@
[04] every registered argument is one the suite's parser accepts ... OK (0.326s)
     68 templates, against 3 shared argument helpers
[05] every sys.path line is the shared bootstrap ... OK (0.369s)
     one bootstrap, computed by walking up rather than by counting
[06] -H, -p and -t come from tests/lib/cli.py ... OK (0.508s)
     18 files keep their own, each with a reason
registry_test: OK (84 suites, 1.256s)
registry: OK (1.322s)

============================================================
E2E  transport-usage  (overlay)
============================================================
check_transport_usage: OK (147 files, 1.114s)
transport-usage: OK (1.180s)

============================================================
E2E  esp-depends  (overlay)
============================================================
[01] every cached ESP32 project contributes to the cache key ... OK (0.039s)
     watched: u64ctrl (24 files), wifi/raw_c3 (17 files), wifi/raw_u64 (17 files)
[02] a misspelt directory fails instead of silently hashing nothing ... OK (0.031s)
     wifi/raw_c3/main misspelt as wifi/raw_c3/main_does_not_exist: esp_depends.py exited 1
     a change to any ESP32 project invalidates the cached binaries CI would otherwise hand back unbuilt
esp_depends_test: OK (2 checks, 0.071s)
esp-depends: OK (0.135s)

============================================================
E2E  input-batching  (overlay)
============================================================
[01] a batch of short taps is limited by the event count ... OK (0.003s)
     64 events, 3852 bytes
[02] a batch of long taps is limited by the body size ... OK (0.003s)
     46 events, 4014 bytes
[03] the file browser's 64-keypress field clear fits its requests ... OK (0.001s)
     64 taps as [60, 4]
[04] one oversized event is passed on rather than dropped ... OK (0.000s)
[05] no events make no requests ... OK (0.000s)
input_batching_test: OK (5 checks, 0.034s)
input-batching: OK (0.098s)

============================================================
E2E  runner-policy  (overlay)
============================================================
[01] a bare target is its own C64-side computer ... OK (0.000s)
[02] a cartridge target names the computer it is plugged into ... OK (0.000s)
[03] keyboard input is the computer's, everything else the device's ... OK (0.000s)
[04] a malformed target is rejected before anything starts ... OK (0.000s)
[05] a target's output path is safe to use as a file name ... OK (0.000s)
[06] a cartridge named alone takes the computer the bench declares ... OK (0.000s)
[07] an undeclared cartridge is unchanged, and so is a spelt-out one ... OK (0.000s)
[08] a declaration that says nothing about this device is ignored ... OK (0.000s)
[09] a declaration that names this device and no computer is fatal ... OK (0.000s)
[10] two spellings of the same machines are one target ...      WARN u2 names the same machines as u2@c64u; running it once
OK (0.000s)
[11] the capture reads every store except the clock ... OK (0.000s)
[12] a run that changed nothing writes nothing ... OK (0.000s)
[13] only the items a suite changed are written back ... OK (0.000s)
[14] a value the device will not take back is reported, not hidden ... OK (0.000s)
[15] the profiles are ordered and cumulative ... OK (0.000s)
[16] a suite named with -s runs whatever the profile says ... OK (0.000s)
[17] the manual suites arrive with the deep profile, not before ... OK (0.000s)
[18] the transports widen with depth, and -m still overrides ... OK (0.000s)
[19] an unknown profile is refused, naming the real ones ... OK (0.000s)
[20] move_rows spends page keys before single steps ... OK (0.000s)
[21] the keys sent always add up to the rows asked for ... OK (0.000s)
[22] a zero move sends nothing at all ... OK (0.000s)
[23] the matrix agrees with what the runner selects ... OK (0.000s)
[24] a suite run is counted once per transport swept ... OK (0.000s)
[25] the static view names no duration and no check count ... OK (0.000s)
[26] measured counts come from the run records ... OK (0.002s)
[27] two targets conflict exactly when they share a machine ... OK (0.000s)
[28] a target does not start while a machine it needs is in use ... OK (0.000s)
[29] scheduling every target eventually runs each one exactly once ... OK (0.000s)
[30] a child repeats the parent's work against one target ... OK (0.000s)
[31] every runner option is forwarded to a child or excluded on purpose ... OK (0.000s)
[32] children write into a directory of their own ... OK (0.000s)
[33] concurrent children never tear each other's lines ... OK (0.027s)
[34] every line a child printed reaches the run's output ... OK (0.026s)
[35] the run's status is the worst of its children's ... OK (0.000s)
[36] the gate reads the menu from the device and types into the computer ... OK (0.000s)
[37] a single-device target still sends everything to one host ... OK (0.000s)
[38] only a cartridge target has a computer menu to get out of the way ... OK (0.000s)
[39] a menu that will not open is repaired by resetting the machine ... OK (0.000s)
[40] a menu that will not close is repaired by resetting the machine ... OK (0.000s)
[41] a launcher is descended by reading the cursor, not by pressing blind ... OK (0.000s)
[42] a cartridge target shuts the computer's menu before resetting ... OK (1.005s)
[43] a UI that the reset does not free is reported, not looped on ... OK (0.000s)
[44] no suite builds a REST URL from an unrouted host ... OK (0.000s)
     8 routing forms accepted, tests/lib/rest.py is where the rule lives
[45] a clean run exits 0 ... OK (0.000s)
[46] a suite that needed a second attempt exits EXIT_RETRIED ... OK (0.000s)
[47] a failed suite exits EXIT_SUITE_FAILED ... OK (0.000s)
[48] a recovery with no failure exits EXIT_RECOVERED ... OK (0.000s)
[49] a recovery outranks a retry ... OK (0.000s)
[50] a failure outranks a recovery ... OK (0.000s)
[51] a device that cannot be made healthy outranks a failure ... OK (0.000s)
[52] the statuses are a scale, in severity order ... OK (0.000s)
[53] a device that answers is never recovered ... OK (0.000s)
[54] recovery runs only once the ordinary wait has given up ... OK (0.006s)
     fixture: the device is unhealthy: it is not answering
[55] a recovery that does not bring the device back reports so ... OK (0.070s)
     fixture: the device is unhealthy: it is not answering
[56] a recovery command that exits non-zero is still followed by a probe ... OK (0.011s)
     fixture: the device is unhealthy: it is not answering
[57] a recovery command that hangs is bounded by --recover-timeout ... OK (0.208s)
     fixture: the device is unhealthy: it is not answering
[58] a recovery command the shell cannot find is a failed recovery ... OK (0.066s)
     fixture: the device is unhealthy: it is not answering
[59] no recovery command means no recovery ... OK (0.000s)
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: no --recover-command was given
[60] a suite gives up after --recover-max-per-suite recoveries ... OK (0.135s)
     fixture: the device is unhealthy: it is not answering
     fixture: the device is unhealthy: it is not answering
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: this suite has already used its 2 recoveries
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: this suite has already used its 2 recoveries
[61] the per-suite budget starts again at the next suite ... OK (0.072s)
     fixture: the device is unhealthy: it is not answering
[62] the run gives up after --recover-max-total recoveries ... OK (0.140s)
     fixture: the device is unhealthy: it is not answering
     fixture: the device is unhealthy: it is not answering
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: the run has already used its 2 recoveries
     fixture: the device is unhealthy: it is not answering
     fixture: not recovering: the run has already used its 2 recoveries
[63] the refusal says which ceiling was reached ... OK (0.067s)
     fixture: the device is unhealthy: it is not answering
[64] a healthy sweep after a failed suite recovers nothing ... OK (0.001s)
     fixture: health: rest=9ms -> OK
[65] a degraded but reachable device is recovered ... OK (0.012s)
     fixture: health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: the device is unhealthy: it is degraded: ftp
     fixture: after recovery, health: rest=9ms -> OK
[66] a device still degraded after recovering is reported, not retried ... OK (0.011s)
     fixture: health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: the device is unhealthy: it is degraded: ftp
     fixture: after recovery, health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: still unhealthy after recovering: it is degraded: ftp
[67] a degraded device is not recovered past its ceiling ... OK (0.006s)
     fixture: health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: the device is unhealthy: it is degraded: ftp
     fixture: after recovery, health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: still unhealthy after recovering: it is degraded: ftp
     fixture: health: rest=9ms ftp=FAIL -> DEGRADED (ftp)
         ftp: refused
     fixture: the device is unhealthy: it is degraded: ftp
     fixture: not recovering: the run has already used its 1 recoveries
[68] --no-health-check takes the sweep out of the decision ... OK (0.000s)
[69] --no-health-check still recovers a device that has gone ... OK (0.056s)
     fixture: the device is unhealthy: it is not answering
[70] -o names the output directory ... OK (0.000s)
[71] --output-dir names the same one ... OK (0.000s)
[72] -j is not accepted ... OK (0.000s)
[73] --jsonl-dir is not accepted ... OK (0.000s)
[74] the old spellings are gone from --help ... OK (0.000s)
[75] the examples use the option the parser accepts ... OK (0.000s)
[76] a child is told where to write with the same option ... OK (0.000s)
[77] a run without --kernal starts the suite without one ... OK (0.000s)
[78] --kernal and --command-interface are passed to the suite ... OK (0.000s)
[79] a child run is given the same KERNAL options ... OK (0.000s)
[80] consecutive resets collapse into one ... OK (0.000s)
[81] a read between two resets does not warrant the second ... OK (0.000s)
[82] a mutation through another object still warrants a reset ... OK (0.000s)
[83] a GET through another object does not warrant a reset ... OK (0.000s)
[84] a mutating call between two resets warrants the second ... OK (0.000s)
[85] force resets even when nothing has changed ... OK (0.000s)
[86] a suite told the device was just reset does not reset again ... OK (0.000s)
[87] a suite not told that still resets ... OK (0.000s)
[88] the default runs a failing suite exactly three times ... OK (0.071s)
[89] --attempts counts executions, so 2 runs it twice ... OK (0.050s)
[90] --attempts 1 and --no-retry both run it exactly once ... OK (0.048s)
[91] a healthy device does not stop a failure being retried ... OK (0.072s)
[92] recoveries do not buy extra executions ... OK (0.074s)
[93] a device that has died by the last attempt is still noticed ... OK (0.073s)
[94] a device that cannot be made healthy ends the run ... OK (0.025s)
[95] a suite killed by a signal says so instead of reading as a failure ... OK (0.028s)
fixture: OK (1.500s)
[96] a health sweep reaches the JSONL with a latency per check ... OK (0.000s)
[97] a suite record carries the profile, attempt and recoveries ... OK (0.000s)
[98] the run record agrees with the exit status ... OK (0.000s)
[99] a sweep with every check passing is healthy ... OK (0.000s)
[100] a failed check makes the sweep degraded and names it ... OK (0.000s)
[101] a skipped check never makes the sweep degraded ... OK (0.000s)
[102] the one-line summary carries every latency and the verdict ... OK (0.000s)
     the recovery command runs on a degraded or unreachable device, never on a suite that merely failed
runner_policy_test: OK (102 checks, 2.445s)
runner-policy: OK (2.524s)

============================================================
E2E  stale-gates  (overlay)
============================================================
[01] a check that passes under an assumed fix is reported stale ... OK (0.001s)
[02] a tag in a per-suite file is found; run.jsonl alone would miss it ... OK (0.001s)
[03] a check that still fails under the assumption is not stale ... OK (0.001s)
[04] one failure among repeats keeps the entry off the stale list ... OK (0.001s)
[05] with no assumption, the gate skips for real and tags nothing ... OK (0.001s)
[06] assuming every fix does not tag a machine that never needed one ... OK (0.000s)
[07] a run with nothing tagged reports no stale gates at all ... OK (0.000s)
stale_gates_test: OK (7 checks, 0.007s)
stale-gates: OK (0.075s)

============================================================
E2E  openapi-validator  (overlay)
============================================================
[01] the core_version field decides which document applies ... OK (0.000s)
[02] a declared profile is used instead of asking the device ... OK (0.000s)
[03] a profile with no document is refused ... OK (0.000s)
[04] a request path finds the call it belongs to ... OK (0.000s)
     8 paths, including the three configs depths
[05] a path the document does not describe matches nothing ... OK (0.000s)
[06] an answer that matches is accepted ... OK (0.140s)
[07] a body missing a required member is refused ... OK (0.000s)
[08] a member of the wrong type is refused ... OK (0.000s)
[09] a status the call does not declare is refused ... OK (0.000s)
[10] the password refusal every call shares is accepted ... OK (0.000s)
[11] JSON where the document promises bytes is refused ... OK (0.000s)
[12] a body that will not parse is refused ... OK (0.000s)
[13] an undescribed call is refused unless the device says so too ... OK (0.000s)
[14] a verb the call does not have is refused ... OK (0.000s)
[15] anything outside /v1 is left alone ... OK (0.000s)
[16] both documents load and describe their own product ... OK (0.137s)
     u2 55 operations, u64 59 operations
openapi_contract_test: OK (16 checks, 0.426s)
openapi-validator: OK (0.517s)

============================================================
E2E  softiec-log  (overlay)
============================================================
[01] a command whose status read crossed a drive reset pairs with the line it wrote ... OK (0.000s)
[02] a reset outside a command's span leaves its status in force ... OK (0.000s)
[03] a drive reset sent during the status read makes the command optional ... OK (0.026s)
[04] the run's collected log gives this device's whole lines after the mark ... OK (0.001s)
[05] a line goes to the operation that needs it, not to an optional one before it ... OK (0.000s)
softiec_log_test: OK (5 checks, 0.071s)
softiec-log: OK (0.148s)

============================================================
E2E  navigation-keys  (overlay)
============================================================
[01] the two values, and an unknown one, resolve to a reading ... OK (0.000s)
[02] a letter is shifted only where the menu folds it back ... OK (0.000s)
[03] the menu cannot be made to read an uppercase letter under wasd ... OK (0.000s)
[04] the setting is read once per host ... OK (0.000s)
[05] a quick-seek prefix is spelt the way the machine will read it ... OK (0.000s)
[06] a name holding a cursor letter is still seeked for ... OK (0.000s)
[07] a popup's button key reaches the button rather than the cursor ... OK (0.000s)
[08] an overlay item is picked by the same spelling ... OK (0.000s)
[09] text typed into a field is never respelt ... OK (0.000s)
[10] a duration is read in every unit the suites use ... OK (0.000s)
[11] a duration that is not one is a usage error, not a traceback ... OK (0.000s)
[12] a duration has to be a length of time, so zero is refused ... OK (0.000s)
     a letter is shifted only where the firmware folds it back, so a field still receives what a suite typed
navigation_test: OK (12 checks, 0.035s)
navigation-keys: OK (0.103s)

============================================================
E2E  ui-backend-parse  (overlay)
============================================================
[01] a row marked by background colour is the selected one ... OK (0.000s)
[02] a blank row never wins, however it is coloured ... OK (0.000s)
[03] a screen with nothing marked says so, rather than guessing ... OK (0.000s)
[04] two entries are separated by the machine's own cursor colour ... OK (0.000s)
[05] a cursor that colours one field still marks its row ... OK (0.000s)
[06] a framed window is read instead of what it covers ... OK (0.000s)
[07] a window narrows what counts as a marking ... OK (0.000s)
[08] row_marks counts only the cells inside the window ... OK (0.000s)
[09] reverse video marks a row where no colour does ... OK (0.000s)
[10] over Telnet, a popup is the one frame inside the browser's ... OK (0.001s)
[11] over Telnet, a disk image's volume row is never taken for the cursor ... OK (0.000s)
[12] over Telnet, panels side by side are each a frame, and a column of one colour has no highlight ... OK (0.000s)
     the rules the parsers were written for, each as one screen
ui_backend_parse_test: OK (12 checks, 0.035s)
ui-backend-parse: OK (0.103s)

============================================================
E2E  keystroke-read-back  (overlay)
============================================================
[01] a field that shows the text is accepted after one typing ... OK (0.000s)
[02] a lost keystroke is typed again, and the retype is reported ... OK (0.155s)
[03] a field that never shows the text fails without being accepted ... OK (0.460s)
[04] the same name already in the listing does not stand in for the field ... OK (0.153s)
[05] a popup key that changes the screen is pressed once ... OK (0.000s)
[06] a popup key that changed nothing is pressed again, and the repeat is reported ... OK (0.155s)
[07] a popup key that never changes the screen fails ... OK (0.461s)
[08] an answer that opens a second popup with the same buttons is not repeated ... OK (0.000s)
[09] a lost quick-seek key is corrected before ENTER, so the named item runs ... OK (0.000s)
[10] a lost ENTER is pressed again, and runs the item once ... OK (0.155s)
[11] a highlight that cannot be read leaves the navigation as it was sent ... OK (0.000s)
[12] a transport that raises instead of reading the highlight still runs the item ... OK (0.000s)
[13] a context menu that opens is opened with one ENTER ... OK (0.000s)
[14] an ENTER the browser never saw is pressed again, and reported ... OK (0.151s)
[15] a screen that changed into something else gets no second ENTER ... OK (0.000s)
[16] a search term that arrives whole is typed once ... OK (0.000s)
[17] a doubled letter lost from a search term is typed again and reported ... OK (0.055s)
[18] a term the field never shows fails ... OK (0.161s)
     string boxes, popup keys, overlay items and search terms read back, against scripted key loss
keystroke_read_back_test: OK (18 checks, 1.942s)
keystroke-read-back: OK (2.012s)

============================================================
E2E  telnet-drain  (overlay)
============================================================
[01] a capture that sent nothing waits only the quiet check ... OK (0.155s)
[02] a key known to draw nothing costs no more than that either ... OK (0.150s)
[03] a redraw that never starts gives up after the first-byte budget ... OK (1.083s)
[04] one burst ends the drain an idle gap after it ... OK (0.208s)
[05] a settled command waits through the pause and takes both bursts ... OK (6.810s)
[06] an ordinary command does not wait for a second burst ... OK (0.655s)
[07] a redraw arriving in pieces is drained as one ... OK (0.309s)
[08] a band header refuses a layout it cannot label ... OK (0.000s)
telnet_drain_test: OK (8 checks, 9.400s)
telnet-drain: OK (9.477s)

============================================================
E2E  ui-backend-smoke  (overlay)
============================================================
     ui-backend-smoke: health: ping=12ms rest=18ms ftp=69ms telnet=37ms ident=19ms dma=14ms heap=5248588B raster=35ms jiffy=36ms -> OK

--- Machine identification
[01] each machine is recognised from its product string ... OK (0.000s)
[02] only the C64 Ultimate opens on a launcher ... OK (0.000s)
[03] the C64 Ultimate searches CommoServe, the others Assembly 64 ... OK (0.000s)
[04] an unrecognised product is refused rather than guessed ... OK (0.000s)
[05] the product is fetched once and then kept ... OK (0.000s)
[06] the firmware version is kept when the caller has it ... OK (0.000s)
[07] every fix in the table names a behaviour and a machine that lacks it ... OK (0.000s)
[08] the table decides which machine skips a tagged check ... OK (0.000s)
[09] a fix no entry lists is one every machine has ... OK (0.000s)
[10] a skipped check names the fix and the machine in its reason ... OK (0.000s)
[11] skip_without_fix answers True only where the check cannot run ... OK (0.000s)
[12] an assumed fix runs the checks it gates, which is how a backport is found ... OK (0.000s)
[13] an assumption list is parsed as a list, and a typo is refused ... OK (0.000s)
--- OK (13 checks, 0.000s)

--- Overlay navigation planner
[14] a unique first letter jumps straight to the item ... OK (0.000s)
[15] a shared first letter extends the prefix rather than walking ... OK (0.000s)
[16] walking wins when the item is already next to the cursor ... OK (0.000s)
[17] the seek lands on the first match and the walk covers the rest ... OK (0.000s)
[18] a prefix never contains a space, which selects rather than seeks ... OK (0.000s)
[19] a plan is never longer than walking from the top ... OK (0.000s)
[20] an upward walk is planned when that is the shorter route ... OK (0.000s)
--- OK (7 checks, 0.000s)

--- Cursor row from the colour plane
[21] a background-marked cursor row is found ... OK (0.000s)
[22] a cursor row marked by foreground colour alone is found ... OK (0.000s)
[23] the first entry is found when it is the selected one ... OK (0.000s)
[24] a cursor that colours only the name field is still found ... OK (0.000s)
[25] a volume header in reverse video is not taken for a cursor ... OK (0.000s)
[26] a form marks a field, not a row, and the field is found ... OK (0.000s)
[27] reverse video still marks the cursor when nothing else does ... OK (0.000s)
[28] a listing of three or more entries says which colour is the cursor ... OK (0.000s)
[29] a background-marked screen teaches no foreground cursor colour ... OK (0.000s)
[30] two entries need the colour the machine was measured to mark with ... OK (0.000s)
--- OK (10 checks, 0.002s)

--- Cursor row under a framed window
[31] a plain listing reports no framed window ... OK (0.000s)
[32] a framed window's own cursor is read, not the browser's ... OK (0.000s)
[33] a cursor further down a framed window is read ... OK (0.000s)
[34] the menu's header rule is not taken for a framed window ... OK (0.000s)
[35] a titled window's cursor is read, not its title ... OK (0.000s)
[36] a window's blank rows never win the cursor colour ... OK (0.000s)
[37] a dialog inside a picker is read, not the picker ... OK (0.000s)
[38] an open window is what the cursor colour is measured on ... OK (0.000s)
[39] a form teaches no cursor colour at all ... OK (0.000s)
[40] a menu beside a highlighted row is read, not the row ... OK (0.000s)
[41] a window with rounded corners is a window too ... OK (0.000s)
[42] an untitled window keeps its first row ... OK (0.000s)
[43] a background-marked window is read on a background-marked browser ... OK (0.000s)
--- OK (13 checks, 0.002s)

--- REST backend, Interface Type = Overlay on HDMI
[44] REST/Overlay: connect, navigate, teardown ... OK (2.681s)
--- OK (1 checks, 2.681s)

--- Telnet backend
[45] Telnet: connect, navigate, teardown ... OK (2.353s)
--- OK (1 checks, 2.353s)

--- REST backend, Interface Type = Freeze
[46] REST/Freeze: connect, navigate, teardown ... OK (2.456s)
--- OK (1 checks, 2.456s)
ui_backend_smoke_test: OK (46 checks, 7.526s)
ui-backend-smoke: OK (7.596s)

============================================================
E2E  readmem-writemem  (overlay)
============================================================
     readmem-writemem: health: ping=12ms rest=17ms ftp=70ms telnet=35ms ident=19ms dma=11ms heap=5243932B raster=34ms jiffy=35ms -> OK
[01] reset C64 to a clean, stable state ... OK (0.042s)
[02] read User Interface Settings config ... OK (0.020s)
     current Interface Type: Freeze

--- bounds: readmem rejects out-of-range parameters before allocating, and max-size reads do not degrade the device
[03] readmem rejects zero length ... OK (0.018s)
[04] readmem rejects negative length ... OK (0.018s)
[05] readmem rejects length one past the 64KB cap ... OK (0.018s)
[06] readmem rejects length far past the cap ... OK (0.018s)
[07] readmem rejects length that overflows a long ... OK (0.017s)
[08] readmem rejects read running past $FFFF ... OK (0.016s)
[09] readmem rejects address above $FFFF ... OK (0.015s)
[10] readmem rejects negative address ... OK (0.017s)
[11] 8 back-to-back max-size reads ($0000, 65536 bytes) all succeed ... OK (1.360s)
[12] 25 unsupported machine:measure calls leave readmem working ... OK (0.607s)
--- OK (10 checks, 2.140s)

--- bad-address: readmem and writemem reject an address that is not valid hex
[13] readmem rejects address='ZZZZ' ... OK (0.018s)
[14] writemem PUT rejects address='ZZZZ' ... OK (0.017s)
[15] writemem POST rejects address='ZZZZ' ... OK (0.050s)
[16] readmem rejects address='0xZZZZ' ... OK (0.018s)
[17] writemem PUT rejects address='0xZZZZ' ... OK (0.016s)
[18] writemem POST rejects address='0xZZZZ' ... OK (0.059s)
[19] readmem rejects address='gggg' ... OK (0.017s)
[20] writemem PUT rejects address='gggg' ... OK (0.018s)
[21] writemem POST rejects address='gggg' ... OK (0.047s)
[22] readmem rejects address='-0' ... OK (0.018s)
[23] writemem PUT rejects address='-0' ... OK (0.017s)
[24] writemem POST rejects address='-0' ... OK (0.066s)
[25] readmem rejects address='+1' ... OK (0.016s)
[26] writemem PUT rejects address='+1' ... OK (0.015s)
[27] writemem POST rejects address='+1' ... OK (0.089s)
[28] readmem rejects address='12GG' ... OK (0.018s)
[29] writemem PUT rejects address='12GG' ... OK (0.017s)
[30] writemem POST rejects address='12GG' ... OK (0.073s)
--- OK (18 checks, 0.606s)

--- bad-debugreg: machine:debugreg rejects a value that is not two hex digits
[31] debugreg rejects value='ZZ' ... OK (0.035s)
[32] debugreg rejects value='0xZZ' ... OK (0.035s)
[33] debugreg rejects value='-0' ... OK (0.034s)
[34] debugreg rejects value='1G' ... OK (0.035s)
[35] debugreg rejects value='1FF' ... OK (0.035s)
[36] debugreg still takes a valid value without changing it ... OK (0.018s)
[37] switch to Overlay on HDMI to probe live background activity ... OK (0.019s)
[38] probe addresses that change on their own while the C64 runs ... OK (5.714s)
     6 address(es) treated as expected live background noise: $00A1, $00A2, $00CD, $00CF, $01F2, $0287
[39] set Interface Type = Freeze ... OK (0.018s)
[40] open menu (Freeze) ... OK (0.127s)
[41] every 4 KB of RAM answers DMA while the machine is frozen ... OK (1.716s)
[42] probe addresses that still change while the machine is frozen ... OK (0.745s)
     0 address(es) change on their own while frozen
[43] write full-range pattern (Freeze) ... OK (0.779s)
[44] read back full range (Freeze) ... OK (0.166s)
[45] menu still open after write+read (Freeze) ... OK (0.020s)
--- OK (15 checks, 9.500s)

--- selfcheck-freeze: write and read both happen in Freeze (screen RAM excluded, the menu redraws its entry rows while open)
     [selfcheck-freeze] ignored ROM mismatches (writes to real ROM are no-ops): 16329
     [selfcheck-freeze] screen ($0400-$07FF) mismatches: 907 (expected, menu owns this range while frozen)
     [selfcheck-freeze] ignored known-live-noise mismatches: 0
     [selfcheck-freeze] color RAM (low nibble) mismatches: 0
     [selfcheck-freeze] RAM mismatches: 0
[46] close menu (Freeze) ... OK (0.055s)
[47] set Interface Type = Overlay on HDMI ... OK (0.019s)
[48] open menu (Overlay on HDMI) ... OK (0.122s)
[49] pause C64 for exact round trip (Overlay on HDMI) ... OK (0.017s)
[50] write full-range pattern (Overlay on HDMI) ... OK (0.591s)
[51] read back full range (Overlay on HDMI) ... OK (0.162s)
[52] resume C64 after exact round trip (Overlay on HDMI) ... OK (0.017s)
[53] menu still open after write+read (Overlay on HDMI) ... OK (0.020s)
--- OK (8 checks, 1.028s)

--- selfcheck-overlay-on-hdmi: write and read both happen in Overlay on HDMI (screen RAM excluded, the menu redraws its entry rows while open)
     [selfcheck-overlay-on-hdmi] ignored ROM mismatches (writes to real ROM are no-ops): 0
     [selfcheck-overlay-on-hdmi] screen ($0400-$07FF) mismatches: 908 (expected, menu owns this range while frozen)
     [selfcheck-overlay-on-hdmi] ignored known-live-noise mismatches: 0
     [selfcheck-overlay-on-hdmi] color RAM (low nibble) mismatches: 0
     [selfcheck-overlay-on-hdmi] RAM mismatches: 0
[54] close menu (Overlay on HDMI) ... OK (0.054s)
[55] close menu for the screen round trip (Overlay on HDMI) ... OK (0.018s)
[56] pause C64 for the screen round trip (Overlay on HDMI) ... OK (0.017s)
[57] write and read back $0400-$07FF (Overlay on HDMI) ... OK (0.087s)
[58] resume C64 after the screen round trip (Overlay on HDMI) ... OK (0.018s)
--- OK (5 checks, 0.219s)

--- screen-round-trip-overlay-on-hdmi: screen RAM round-trips exactly with no menu open
     [screen-round-trip-overlay-on-hdmi] screen ($0400-$07FF) mismatches: 0 (expected 0)
[59] set Interface Type = Overlay on HDMI ... OK (0.018s)
[60] open menu (Overlay on HDMI) ... OK (0.114s)
[61] write full-range pattern (Overlay on HDMI) ... OK (0.509s)
[62] capture ground truth in Overlay on HDMI mode ... OK (0.168s)
[63] close menu (Overlay on HDMI) ... OK (0.055s)
[64] set Interface Type = Freeze ... OK (0.019s)
[65] open menu (Freeze) ... OK (0.120s)
[66] read full range (Freeze) ... OK (0.166s)
[67] menu still open after cross-mode read (Freeze) ... OK (0.019s)
--- OK (9 checks, 1.192s)

--- overlay-on-hdmi-write_freeze-read: bytes written while Overlay on HDMI must read back the same while Freeze, except screen RAM (menu-owned while frozen)
     [overlay-on-hdmi-write_freeze-read] screen ($0400-$07FF) mismatches: 113 (expected, menu owns this range while frozen)
     [overlay-on-hdmi-write_freeze-read] ignored known-live-noise mismatches: 0
     [overlay-on-hdmi-write_freeze-read] color RAM (low nibble) mismatches: 0
     [overlay-on-hdmi-write_freeze-read] RAM mismatches: 0
[68] close menu (Freeze) ... OK (0.054s)
[69] set Interface Type = Freeze ... OK (0.019s)
[70] open menu (Freeze) ... OK (0.116s)
[71] write full-range pattern (Freeze) ... OK (0.555s)
[72] capture ground truth in Freeze mode ... OK (0.166s)
[73] close menu (Freeze) ... OK (0.053s)
[74] set Interface Type = Overlay on HDMI ... OK (0.018s)
[75] open menu (Overlay on HDMI) ... OK (0.125s)
[76] read full range (Overlay on HDMI) ... OK (0.167s)
[77] menu still open after cross-mode read (Overlay on HDMI) ... OK (0.019s)
--- OK (10 checks, 1.317s)

--- freeze-write_overlay-on-hdmi-read: bytes written while Freeze must read back the same while Overlay on HDMI, except screen RAM (menu-owned while frozen)
     [freeze-write_overlay-on-hdmi-read] screen ($0400-$07FF) mismatches: 113 (expected, menu owns this range while frozen)
     [freeze-write_overlay-on-hdmi-read] ignored known-live-noise mismatches: 0
     [freeze-write_overlay-on-hdmi-read] color RAM (low nibble) mismatches: 0
     [freeze-write_overlay-on-hdmi-read] RAM mismatches: 0
[78] close menu (Overlay on HDMI) ... OK (0.055s)
     restored Interface Type to 'Freeze'
--- OK (1 checks, 0.287s)

--- summary
     bounds: OK
     bad-address: OK
     bad-debugreg: OK
     selfcheck-freeze: OK
     selfcheck-overlay: OK
     screen-round-trip: OK
     overlay-to-freeze: OK
     freeze-to-overlay: OK
readmem_writemem_test: OK (78 checks, 22.5s)
readmem-writemem: OK (22.5s)

============================================================
E2E  menu-screen  (overlay)
============================================================
     menu-screen: health: ping=12ms rest=17ms ftp=67ms telnet=37ms ident=19ms dma=15ms heap=5243940B raster=34ms jiffy=36ms -> OK
[01] open menu ... OK (0.018s)
[02] GET menu_screen contract ... OK (0.015s)
[03] menu_screen renders a real menu ... OK (0.000s)
[04] close menu ... OK (0.017s)
[05] GET menu_screen unavailable ... OK (0.018s)
[06] GET menu_screen auth ... SKIP (--password not supplied, 0.000s)
menu_screen_test: OK (6 checks, 0.848s)
menu-screen: OK (0.919s)

============================================================
E2E  input  (overlay)
============================================================
     input: health: ping=12ms rest=17ms ftp=75ms telnet=36ms ident=20ms dma=14ms heap=5240836B raster=36ms jiffy=36ms -> OK
[01] input snapshot has stable empty response shape ... OK (0.042s)
[02] POST accepts 64 event batch ... OK (0.071s)
[03] bad content-type is rejected without mutation ... OK (0.079s)
[04] missing JSON body is rejected without mutation ... OK (0.083s)
[05] malformed JSON is rejected without mutation ... OK (0.082s)
[06] unknown root field is rejected without mutation ... OK (0.079s)
[07] late invalid event keeps whole batch atomic ... OK (0.088s)
[08] joystick port 1 fire keeps Anykey buttons 2 and 3 released ... OK (0.369s)
[09] joystick port 1 fire2 lights only Anykey button 2, only on port 1 ... OK (0.371s)
[10] joystick port 1 fire3 lights only Anykey button 3, only on port 1 ... OK (0.376s)
[11] joystick port 2 fire keeps Anykey buttons 2 and 3 released ... OK (0.375s)
[12] joystick port 2 fire2 lights only Anykey button 2, only on port 2 ... OK (0.378s)
[13] joystick port 2 fire3 lights only Anykey button 3, only on port 2 ... OK (0.383s)
[14] joystick fire2 on one port and fire3 on the other stay independent ... OK (0.396s)
[15] joystick fire2/fire3 tap auto-releases the POT hardware state ... OK (0.467s)
[16] joystick port 1 up press is visible on CIA reads ... OK (0.158s)
[17] joystick port 1 all inputs and idempotent release are visible on CIA reads ... OK (0.160s)
[18] joystick port 2 diagonal and fire are visible on CIA reads ... OK (0.162s)
[19] joystick partial release is visible on CIA reads ... OK (0.166s)
[20] joystick fire2/fire3 round-trip through REST state and POT hardware ... OK (0.984s)
[21] joystick fire2/fire3 held on port 2 leave port 1's Anykey buttons released ... OK (0.724s)
[22] joystick release in the same batch as a tap on the same input wins ... OK (0.043s)
[23] joystick release_all then press in same batch is visible on CIA reads ... OK (0.138s)
[24] joystick unusual combination is visible on CIA reads ... OK (0.147s)
[25] joystick tap does not release persistent input ... OK (0.359s)
[26] joystick tap auto releases ... OK (0.364s)
[27] invalid joystick batch does not mutate state ... OK (0.196s)
[28] joystick release_all clears both ports, including POT hardware ... OK (0.465s)
[29] machine reset clears keyboard and joystick REST state ... OK (3.166s)
[30] keyboard single-tap batch is consumed by BASIC in order ... OK (0.703s)
[31] keyboard 10 Hz mixed alphabet echo has no missed presses ... OK (2.832s)
[32] keyboard 20 Hz alternating ab echo has no missed presses ... OK (1.527s)
[33] keyboard 5 Hz alternating ab echo has no missed presses ... OK (0.813s)
[34] keyboard single letter reaches the live C64 matrix ... OK (0.189s)
[35] keyboard shifted pair reaches the live C64 matrix ... OK (0.309s)
[36] keyboard batch applies multiple presses atomically ... OK (0.331s)
[37] keyboard ordered batch and idempotent release ... OK (0.093s)
[38] keyboard release_all can be followed by press in same batch ... OK (0.089s)
[39] keyboard accepts eight simultaneous inputs ... OK (0.108s)
[40] keyboard tap does not release persistent key ... OK (0.197s)
[41] keyboard release_all clears state ... OK (0.087s)
[42] keyboard restore tap auto releases ... OK (0.268s)
[43] keyboard special-key taps snapshot correctly and auto release ... OK (2.725s)
[44] keyboard tap is visible in the live hardware snapshot and auto releases ... OK (0.282s)
[45] keyboard cursor-left tap is visible in the live hardware snapshot and auto releases ... OK (0.292s)
[46] keyboard tap batch drains through the live matrix path ... OK (1.433s)
[47] keyboard long repeated tap train drains fully without sticky state ... OK (4.414s)
[48] invalid keyboard batch does not mutate state ... OK (0.065s)
[49] mouse state is detached and empty after release_all ... OK (0.041s)
[50] a mouse button press attaches the mouse and is reported in order ... OK (0.117s)
[51] invalid mouse events are rejected with their error and change nothing ... OK (0.798s)
[52] a tap presses and releases, and a path is queued behind it ... OK (0.482s)
[53] the queue holds 1024 reports and refuses a batch beyond that with 429 ... OK (0.573s)
[54] a request over the JSON value limit is refused with a clear error ... OK (0.037s)
[55] release_all in a batch makes room for what follows it ... OK (5.247s)
[56] release_all detaches the mouse ... OK (0.064s)
[57] a machine reset detaches the mouse and drops its queue ... OK (3.189s)
[58] a joystick held as the menu opens is ignored until released ... OK (5.337s)
input_test: OK (58 checks, 50.9s)
input: OK (51.0s)

@barryw

barryw commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Default E2E gate, ./run-tests -H 192.168.1.148, against the rebased branch (f2389ba on master 2c60bd8; Ultimate 64 Elite, FPGA 125, core 1.50). Part 2 of 2.

Default gate log, part 2 of 2
============================================================
E2E  create-disk-image  (overlay)
============================================================
     create-disk-image: health: ping=22ms rest=17ms ftp=73ms telnet=33ms ident=26ms dma=16ms heap=5243952B raster=45ms jiffy=40ms -> OK

--- preconditions
[01] device reachable ... OK (0.020s)
[02] clear leftovers from an earlier run ... OK (0.164s)
--- OK (2 checks, 0.184s)

--- d64-35
[03] create d64 at /Temp/cdi_d64-35.d64 ... OK (0.058s)
[04] device still answers after create d64 ... OK (0.016s)
[05] /Temp/cdi_d64-35.d64 is 174848 bytes ... OK (0.020s)
--- OK (3 checks, 0.095s)

--- d64-40
[06] create d64 at /Temp/cdi_d64-40.d64 ... OK (0.060s)
[07] device still answers after create d64 ... OK (0.017s)
[08] /Temp/cdi_d64-40.d64 is 196608 bytes ... OK (0.020s)
--- OK (3 checks, 0.098s)

--- d71
[09] create d71 at /Temp/cdi_d71.d71 ... OK (0.104s)
[10] device still answers after create d71 ... OK (0.019s)
[11] /Temp/cdi_d71.d71 is 349696 bytes ... OK (0.021s)
--- OK (3 checks, 0.144s)

--- d81
[12] create d81 at /Temp/cdi_d81.d81 ... OK (0.163s)
[13] device still answers after create d81 ... OK (0.018s)
[14] /Temp/cdi_d81.d81 is 819200 bytes ... OK (0.021s)
--- OK (3 checks, 0.203s)

--- dnp-1
[15] create dnp at /Temp/cdi_dnp-1.dnp ... OK (0.044s)
[16] device still answers after create dnp ... OK (0.027s)
[17] /Temp/cdi_dnp-1.dnp is 65536 bytes ... OK (0.019s)
--- OK (3 checks, 0.090s)

--- dnp-16
[18] create dnp at /Temp/cdi_dnp-16.dnp ... OK (0.155s)
[19] device still answers after create dnp ... OK (0.016s)
[20] /Temp/cdi_dnp-16.dnp is 1048576 bytes ... OK (0.021s)
--- OK (3 checks, 0.192s)

--- repeat
[21] create d64 at /Temp/cdi_d64-35-repeat.d64 ... OK (0.061s)
[22] device still answers after create d64 ... OK (0.015s)
[23] /Temp/cdi_d64-35-repeat.d64 is 174848 bytes ... OK (0.021s)
--- OK (3 checks, 0.252s)
create_disk_image_test: OK (23 checks, 1.288s)
create-disk-image: OK (1.358s)

============================================================
E2E  d81-track-bounds  (overlay)
============================================================
     d81-track-bounds: health: ping=12ms rest=17ms ftp=76ms telnet=36ms ident=19ms dma=15ms heap=5240732B raster=39ms jiffy=41ms -> OK
[01] prepare 1581 and generated D81 fixtures ... OK (3.011s)

--- missing-track-81
[02] mount 80-track D81 on drive b ... OK (0.161s)
[03] device remains reachable after mount ... OK (0.018s)
[04] physical track 81 has the expected result ... OK (4.980s)
     tracks=80, job=$00, io=$00
--- OK (3 checks, 5.159s)

--- track-81
[05] mount 81-track D81 on drive b ... OK (0.154s)
[06] device remains reachable after mount ... OK (0.017s)
[07] physical track 81 has the expected result ... OK (4.988s)
     tracks=81, job=$00, io=$00
--- OK (3 checks, 5.160s)

--- oversized
[08] mount 85-track D81 on drive b ... OK (0.159s)
[09] device remains reachable after mount ... OK (0.016s)
[10] physical track 81 has the expected result ... OK (4.936s)
     tracks=85, job=$00, io=$00
--- OK (3 checks, 5.518s)
d81_track_bounds_test: OK (10 checks, 18.9s)
d81-track-bounds: OK (19.0s)

============================================================
E2E  rest-api-coverage  (overlay)
============================================================
     rest-api-coverage: health: ping=12ms rest=17ms ftp=70ms telnet=37ms ident=19ms dma=7ms heap=5243952B raster=36ms jiffy=36ms -> OK

--- coverage
[01] read the operation list ... OK (59 operations, from 2 OpenAPI document(s), 0.264s)
[02] every operation is exercised or excluded ... OK (58 exercised, 1 excluded, 0.000s)
[03] nothing is classified that the device does not serve ... OK (0.000s)
[04] every operation has a happy path somewhere ... OK (41 here, 9 elsewhere, 8 with none, 0.000s)
     not called: PUT /v1/machine:poweroff - turns the device off, and no test can turn it back on
     negative only: POST /v1/drives/{drive}:load_rom - as the PUT form
     negative only: POST /v1/runners:modplay - as the PUT form
     negative only: POST /v1/runners:run_crt - as the PUT form
     negative only: POST /v1/runners:sidplay - as the PUT form
     negative only: PUT /v1/drives/{drive}:load_rom - a wrong file leaves the drive with a broken ROM until the next reboot, and the tree has no drive ROM to load a good one from
     negative only: PUT /v1/runners:modplay - needs a MOD file and takes over the machine
     negative only: PUT /v1/runners:run_crt - needs a cartridge image and resets the C64
     negative only: PUT /v1/runners:sidplay - needs a SID file and takes over the machine
--- OK (4 checks, 0.264s)

--- preconditions
[05] device reachable ... OK (0.018s)
[06] record the state to restore ... OK (drive a: enabled=True type='1541', 9 settings, 0.221s)
--- OK (2 checks, 0.239s)

--- operations
     79 cases x3, concurrent, 3 workers
[07] GET /v1/version - returns a version x3 ... OK (0.000s)
[08] GET /v1/info - names product and firmware x3 ... OK (0.000s)
[09] GET /v1/info - reports the interface MAC addresses x3 ... OK (0.000s)
[10] GET /v1/info - names the commit it was built from x3 ... OK (0.000s)
[11] GET /v1/help - answers for a known command x3 ... OK (0.000s)
[12] GET /v1/help - refuses a missing command x3 ... OK (0.000s)
[13] GET /v1/configs - lists categories x3 ... OK (0.000s)
[14] GET /v1/configs/{category} - reads one category x3 ... OK (0.000s)
[15] GET /v1/configs/{category}/{item} - reads one item x3 ... OK (0.000s)
[16] GET /v1/configs/{category} - refuses an unknown category x3 ... OK (0.000s)
[17] PUT /v1/configs/{category}/{item} - writing the current value back is a no-op x3 ... OK (0.000s)
[18] PUT /v1/configs/{category}/{item}/{value} - the value-in-path form sets the same item x3 ... OK (0.000s)
[19] PUT /v1/configs/{category}/{item} - refuses an unknown category x3 ... OK (0.000s)
[20] POST /v1/configs - the JSON form sets an item x3 ... OK (0.000s)
[21] POST /v1/configs - refuses an unknown category x3 ... OK (0.000s)
[22] PUT /v1/configs:save_to_flash - save then load leaves the value x3 ... OK (0.000s)
[23] PUT /v1/configs:load_from_flash - covered by the save case above x3 ... OK (0.000s)
[24] PUT /v1/configs/{category}:save_to_flash - save then load leaves the value x3 ... OK (0.000s)
[25] PUT /v1/configs/{category}:load_from_flash - covered by the save case above x3 ... OK (0.000s)
[26] PUT /v1/configs/{category}:reset_to_default - resets one category and the values restore x3 ... OK (0.000s)
[27] PUT /v1/configs:reset_to_default - resets everything, needs --allow-global-reset x3 ... SKIP (resets every category at once; pass --allow-global-reset, 0.000s)
[28] GET /v1/files/{path}:info - describes /Temp x3 ... OK (0.000s)
[29] GET /v1/files/{path}:info - reports a missing path as absent x3 ... OK (0.000s)
[30] PUT /v1/files/{path}:create_d64 - refuses an unwritable path x3 ... OK (0.000s)
[31] PUT /v1/files/{path}:create_d71 - refuses an unwritable path x3 ... OK (0.000s)
[32] PUT /v1/files/{path}:create_d81 - refuses an unwritable path x3 ... OK (0.000s)
[33] PUT /v1/files/{path}:create_dnp - refuses an unwritable path x3 ... OK (0.000s)
[34] GET /v1/machine:readmem - returns the length asked for x3 ... OK (0.000s)
[35] GET /v1/machine:readmem - refuses a zero length x3 ... OK (0.000s)
[36] GET /v1/machine:heap - reports free within total x3 ... OK (0.000s)
[37] GET /v1/machine:measure - answers, 501 without bus measurement x3 ... OK (0.000s)
[38] GET /v1/machine:input - reports the input state x3 ... OK (0.000s)
[39] GET /v1/machine:debugreg - reads the register x3 ... OK (0.000s)
[40] PUT /v1/machine:debugreg - writing the held value back is a no-op x3 ... OK (0.000s)
[41] GET /v1/machine:menu_screen - answers 404 with no menu open x3 ... OK (0.000s)
[42] PUT /v1/machine:writemem - the byte written is the byte read back x3 ... OK (0.000s)
[43] POST /v1/machine:writemem - the uploaded block reads back x3 ... OK (0.000s)
[44] PUT /v1/machine:writemem - refuses a missing data argument x3 ... OK (0.000s)
[45] POST /v1/machine:input - refuses an empty event list x3 ... OK (0.000s)
[46] PUT /v1/machine:pause - pauses and resumes (status only) x3 ... OK (0.000s)
[47] PUT /v1/machine:resume - covered by the pause case above x3 ... OK (0.000s)
[48] PUT /v1/machine:menu_button - opens the menu and closes it again x3 ... OK (0.000s)
[49] PUT /v1/machine:reset - the C64 comes back to READY x3 ... OK (0.000s)
[50] PUT /v1/machine:reboot - the C64 comes back to READY x3 ... OK (0.000s)
[51] GET /v1/drives - lists both drive slots x3 ... OK (0.000s)
[52] PUT /v1/drives/{drive}:on - flips the drive and the listing agrees x3 ... OK (0.000s)
[53] PUT /v1/drives/{drive}:off - covered by the on/off case above x3 ... OK (0.000s)
[54] PUT /v1/drives/{drive}:mount - the listing shows the image x3 ... OK (0.000s)
[55] PUT /v1/drives/{drive}:unlink - keeps the disk, drops the file x3 ... OK (0.000s)
[56] PUT /v1/drives/{drive}:remove - clears the mounted image x3 ... OK (0.000s)
[57] POST /v1/drives/{drive}:mount - an uploaded image mounts x3 ... OK (0.000s)
[58] PUT /v1/drives/{drive}:set_mode - setting the current mode is a no-op x3 ... OK (0.000s)
[59] PUT /v1/drives/{drive}:reset - resets the drive (status only) x3 ... OK (0.000s)
[60] PUT /v1/drives/{drive}:reset - refuses an unknown drive letter x3 ... OK (0.000s)
[61] PUT /v1/drives/{drive}:mount - refuses a missing image x3 ... OK (0.000s)
[62] PUT /v1/drives/{drive}:load_rom - refuses a missing ROM file x3 ... OK (0.000s)
[63] POST /v1/drives/{drive}:load_rom - refuses a request with no body x3 ... OK (0.000s)
[64] PUT /v1/drives/{drive}:set_mode - refuses an unknown mode x3 ... OK (0.000s)
[65] PUT /v1/drives/{drive}:remove - refuses an unknown drive letter x3 ... OK (0.000s)
[66] PUT /v1/drives/{drive}:on - refuses an unknown drive letter x3 ... OK (0.000s)
[67] PUT /v1/drives/{drive}:off - refuses an unknown drive letter x3 ... OK (0.000s)
[68] PUT /v1/drives/{drive}:unlink - refuses an unknown drive letter x3 ... OK (0.000s)
[69] PUT /v1/runners:sidplay - refuses a missing file x3 ... OK (0.000s)
[70] POST /v1/runners:sidplay - refuses a request with no body x3 ... OK (0.000s)
[71] PUT /v1/runners:modplay - refuses a missing file x3 ... OK (0.000s)
[72] POST /v1/runners:modplay - refuses a request with no body x3 ... OK (0.000s)
[73] PUT /v1/runners:load_prg - refuses a missing file x3 ... OK (0.000s)
[74] POST /v1/runners:load_prg - refuses a request with no body x3 ... OK (0.000s)
[75] PUT /v1/runners:run_prg - refuses a missing file x3 ... OK (0.000s)
[76] POST /v1/runners:run_prg - refuses a request with no body x3 ... OK (0.000s)
[77] PUT /v1/runners:run_crt - refuses a missing file x3 ... OK (0.000s)
[78] POST /v1/runners:run_crt - refuses a request with no body x3 ... OK (0.000s)
[79] PUT /v1/streams/{stream}:start - starts and stops the debug stream x3 ... OK (0.000s)
[80] PUT /v1/streams/{stream}:stop - covered by the start case above x3 ... OK (0.000s)
[81] PUT /v1/streams/{stream}:start - refuses an unknown stream x3 ... OK (0.000s)
[82] PUT /v1/streams/{stream}:stop - refuses an unknown stream x3 ... OK (0.000s)
[83] protocol: an unknown route is 404 x3 ... OK (0.000s)
[84] protocol: a command asked for with the wrong method does not run x3 ... OK (0.000s)
[85] protocol: an unauthenticated read is refused x3 ... SKIP (no password is set on this device, 0.000s)
--- SKIP (79 checks, 26.9s)
rest_api_coverage_test: OK (85 checks, 27.4s)
rest-api-coverage: OK (27.5s)

============================================================
E2E  openapi-contract  (overlay)
============================================================
     openapi-contract: health: ping=11ms rest=18ms ftp=67ms telnet=37ms ident=19ms dma=15ms heap=5243836B raster=35ms jiffy=36ms -> OK
[01] u2 document is valid OpenAPI 3.1 ... OK (0.478s)
     44 paths, 33 schemas
[02] u64 document is valid OpenAPI 3.1 ... OK (0.510s)
     47 paths, 35 schemas
     Ultimate 64 Elite is described by the u64 document
[03] the device serves its own OpenAPI document ... OK (0.362s)
     147819 bytes, byte for byte the committed u64 document
[04] the device serves the API explorer ... OK (0.058s)
[05] a client generates from the u64 document ... OK (0.781s)
     package ultimate_64_rest_api_client
[06] the generated client reads the interface version ... OK (0.078s)
     version 0.1
[07] the generated client reads memory and agrees with the raw call ... OK (0.036s)
     $D020 reads fef6
[08] GET /v1/version matches the document ... OK (0.017s)
[09] GET /v1/info matches the document ... OK (0.019s)
[10] GET /v1/machine:heap matches the document ... OK (0.017s)
[11] GET /v1/drives matches the document ... OK (0.023s)
[12] GET /v1/configs matches the document ... OK (0.018s)
[13] GET /v1/configs/Drive%20A%20Settings matches the document ... OK (0.021s)
[14] GET /v1/configs/Drive%20A%20Settings/* matches the document ... OK (0.066s)
[15] GET /v1/machine:readmem matches the document ... OK (0.017s)
[16] GET /v1/machine:menu_screen matches the document ... OK (0.018s)
     HTTP 404
[17] a rejected call matches the document ... OK (0.017s)
[18] a refused call matches the document ... SKIP (no network password is configured on this device, 0.000s)
openapi_contract_test: OK (18 checks, 3.112s)
openapi-contract: OK (3.244s)

============================================================
E2E  browser-long-filename  (overlay)
============================================================
     browser-long-filename: health: ping=12ms rest=13ms ftp=73ms telnet=37ms ident=19ms dma=13ms heap=5245388B raster=36ms jiffy=35ms -> OK
[01] reset the machine to a clean starting state ... OK (0.569s)
[02] seed long-name fixture for rename ... OK (0.697s)
[03] browser rename on long filename ... OK (4.170s)
[04] reseed long-name fixture for mount ... OK (0.866s)
[05] browser mount on long filename ... OK (4.564s)
browser_long_filename_test: OK (5 checks, 11.4s)
browser-long-filename: OK (12.5s)

============================================================
E2E  ftp-client  (overlay)
============================================================
     ftp-client: health: ping=12ms rest=18ms ftp=76ms telnet=37ms ident=20ms dma=14ms heap=5243836B raster=36ms jiffy=37ms -> OK
     inferred --ftp-advertised-host 192.168.1.78
     controlled FTP server on 0.0.0.0:2121 (advertised 192.168.1.78)
[I 2026-09-29 15:28:08] concurrency model: async
[I 2026-09-29 15:28:08] masquerade (NAT) address: 192.168.1.78
[I 2026-09-29 15:28:08] passive ports: 30000->30019
[I 2026-09-29 15:28:08] >>> starting FTP server on 0.0.0.0:2121, pid=72352 <<<
     server root: /var/folders/52/5656d2050tz7nvc4b1m1tfqw0000gn/T/u64ftp-y8nc93ro (marker E2E-1790710088)
[01] GET /v1/version reachable ... OK (0.1, 0.035s)
[02] menu closed -> menu_screen 404 ... OK (0.057s)
[03] menu_button opens menu ... OK (0.125s)
[04] menu_screen returns 2000-byte matrix ... OK (2000 bytes, 0.020s)
[05] input release_all works ... OK (0.021s)
[06] menu closes from anywhere ... OK (0.331s)
[07] remove any stale hosts left by a prior run ... OK (0 removed, 1.657s)

--- stage: smoke
[08] create FTP host 'E2EFTP0089l3a3' through the New Host form ... OK (8.223s)
[09] new alias appears under /ftp ... OK (1.854s)
[10] enter host: server sees login + TYPE I + LIST ... [I 2026-09-29 15:28:23] 192.168.1.148:52441-[] FTP session opened (connect)
[I 2026-09-29 15:28:23] 192.168.1.148:52441-[u64e2e] USER 'u64e2e' logged in.
OK (PASS,TYPE,LIST, 2.799s)
[11] root listing shows fixture entries ... OK (README,DIRA,SMALL, 0.020s)
[12] open README.TXT -> RETR (52 bytes) ... [I 2026-09-29 15:28:25] 192.168.1.148:52441-[u64e2e] RETR /private/var/folders/52/5656d2050tz7nvc4b1m1tfqw0000gn/T/u64ftp-y8nc93ro/README.TXT completed=1 bytes=52 seconds=0.0
OK (52 bytes, 2.031s)
[13] remove host and confirm it disappears ... [I 2026-09-29 15:28:29] 192.168.1.148:52441-[u64e2e] FTP session closed (disconnect).
OK (5.680s)
--- OK (6 checks, 20.6s)

--- cleanup
     preserved: nothing

--- summary
     Phase    Operation              Result             Commands       Fixture/Notes
     ------------------------------------------------------------------------------
     smoke    create host            OK                                E2EFTP0089l3a3
     smoke    list host              OK                                E2EFTP0089l3a3
     smoke    enter/LIST             OK                 USER/PASS/TYPE E2EFTP0089l3a3
     smoke    root entries           OK                 LIST           README/DIRA/SMALL
     smoke    RETR README            OK                 RETR           README.TXT 52 bytes
     smoke    remove host            OK                                E2EFTP0089l3a3
     ------------------------------------------------------------------------------
     Total REST requests   : 125
     Total menu snapshots  : 56
     Total keyboard events : 87
     Total FTP commands    : 24
     Created host alias    : (removed)
     Remote root path      : /var/folders/52/5656d2050tz7nvc4b1m1tfqw0000gn/T/u64ftp-y8nc93ro
     Cleanup status        : clean
Exception in thread Thread-1 (serve_forever):
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/threading.py", line 992, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/barry/Library/Python/3.13/lib/python/site-packages/pyftpdlib/servers.py", line 254, in serve_forever
    self.ioloop.loop(timeout, blocking)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/Users/barry/Library/Python/3.13/lib/python/site-packages/pyftpdlib/ioloop.py", line 376, in loop
    poll(timeout)
    ~~~~^^^^^^^^^
  File "/Users/barry/Library/Python/3.13/lib/python/site-packages/pyftpdlib/ioloop.py", line 741, in poll
    kevents = self._kqueue.control(
        None, _len(self.socket_map), timeout
    )
OSError: [Errno 9] Bad file descriptor
ftp_client_test: OK (6 operation(s), 24.8s)
ftp-client: OK (25.1s)

============================================================
E2E  prg-load-path-trim  (overlay)
============================================================
     prg-load-path-trim: health: ping=12ms rest=18ms ftp=75ms telnet=37ms ident=19ms dma=15ms heap=5243824B raster=36ms jiffy=35ms -> OK

--- Ultimate 64 PRG load path trim
     host: 192.168.1.148
     PUT file path: /Temp/rest-prg-path-trim-target-example.prg
     POST upload name: rest-prg-path-trim-upload-example.prg

--- 1. Capture Current Configuration
     Temp Auto Cleanup: Enabled
     Temp Subfolders: Enabled

--- 2. Configure Temp Settings
[01] set Temp Auto Cleanup to Enabled ... OK (0.020s)
[02] set Temp Subfolders to Enabled ... OK (0.019s)
--- OK (2 checks, 0.039s)

--- 3. Prepare PRG Fixture
[03] upload PUT fixture rest-prg-path-trim-target-example.prg ... OK (0.169s)
--- OK (1 checks, 0.169s)

--- 4. Validate PUT Endpoints
[04] exercise PUT runners:load_prg ... OK (0.404s)
     PUT load_prg boot-cart name: ...T-EXAMPLE
[05] exercise PUT runners:run_prg ... OK (1.778s)
     PUT run_prg boot-cart name: ...T-EXAMPLE
--- OK (2 checks, 2.343s)

--- 5. Validate POST Endpoints
[06] exercise POST runners:load_prg ... OK (0.445s)
     POST load_prg boot-cart name: ...D-EXAMPLE
[07] exercise POST runners:run_prg ... OK (1.814s)
     POST run_prg boot-cart name: ...D-EXAMPLE
--- OK (2 checks, 3.033s)

--- 6. Validate a P00 wrapper through the same runner
[08] upload P00 fixture rest-prg-wrap.p00 ... OK (0.171s)
[09] exercise PUT runners:load_prg on a P00 wrapper ... OK (0.402s)
     P00 boot-cart name: WRAPPED PROGRAM
[10] the program behind the header is what was loaded ... OK (0.016s)
--- OK (3 checks, 0.675s)
prg_load_path_trim_test: OK (10 checks, 6.974s)

--- restore User Interface Settings
[11] set Temp Auto Cleanup to Enabled ... OK (0.019s)
[12] set Temp Subfolders to Enabled ... OK (0.019s)
prg-load-path-trim: OK (8.051s)

============================================================
E2E  cfg-single-group  (overlay)
============================================================
     cfg-single-group: health: ping=13ms rest=18ms ftp=74ms telnet=37ms ident=19ms dma=15ms heap=5245464B raster=36ms jiffy=34ms -> OK
[01] load a one-group CFG file through the browser ... OK (5.522s)
cfg_single_group_test: OK (1 checks, 6.116s)
cfg-single-group: OK (6.721s)

============================================================
E2E  cfg-loader-log  (overlay)
============================================================
[01] an uninterrupted log gives the stores it names ... OK (0.000s)
[02] a log with no loader lines in it reports nothing ... OK (0.000s)
[03] a spliced effectuated record yields no store name ... OK (0.000s)
[04] both halves of a spliced effectuated record are reported ... OK (0.000s)
[05] a record appended to another task's line is reported, not read ... OK (0.000s)
[06] a spliced clean record yields no store name and is reported ... OK (0.000s)
cfg_loader_log_test: OK (6 checks, 0.036s)
cfg-loader-log: OK (0.102s)

============================================================
E2E  printer  (overlay)
============================================================
     printer: health: ping=12ms rest=15ms ftp=74ms telnet=35ms ident=19ms dma=14ms heap=5245464B raster=36ms jiffy=34ms -> OK
[01] REST reachable at 192.168.1.148 ... OK (0.019s)
[02] reset before run ... OK (0.124s)
[03] load printer_e2e.prg ... OK (914 bytes, 0.000s)
[04] capture original Printer Settings ... OK (0.215s)
[05] print epson/bitmap: apply settings + run PRG ... OK (phase=printer closed heartbeat=4, 2.843s)
[06] print epson/bitmap: Flush/Eject via on-screen menu ... OK (4.075s)
     the flush held the menu for 2.2s

--- restoring original Printer Settings
     IEC printer: Disabled
     Bus ID: 4
     Output file: /Usb0/printer
     Output type: PNG B&W
     Ink density: Medium
     Page top margin (default is 5): 5
     Page height (default is 60): 60
     Emulation: Commodore MPS
     Commodore charset: USA/UK
     Epson charset: Basic
     IBM table 2: International 1

--- summary
     epson      bitmap PASS_NO_VERIFY       /USB1/printer/e2e-eb7c2f
printer_test: OK (1 combination(s), 7.819s)
printer: OK (7.916s)

============================================================
E2E  usb-mouse  (overlay)
============================================================
     usb-mouse: health: ping=12ms rest=17ms ftp=75ms telnet=37ms ident=17ms dma=14ms heap=5243888B raster=41ms jiffy=36ms -> OK
     saved settings: Mouse Mode='Mouse', Mouse Sensitivity=8, Mouse Acceleration='Off', Mouse Wheel Sensitivity=8, Mouse Wheel Direction='Normal', Joystick Swapper='Normal', Menu Mouse Navigation='Enabled', System Mode='NTSC'
     quick profile: move, precision, buttons, wheel-micromys, cursor-mode
[01] moves [(30, 20)] land at (30, 20) ... OK (0.988s)
     x=30 y=20 step x(0, 30) y(0, 20) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$54/$70 lines=$00 frames=30 moved=1
[02] moves [(-80, -65)] land at (-80, -65) ... OK (0.723s)
     x=-80 y=-65 step x(-31, 0) y(-31, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$78/$1A lines=$00 frames=36 moved=3
[03] moves [(63, -63), (-20, 40)] land at (43, -23) ... OK (0.734s)
     x=43 y=-23 step x(-20, 31) y(-31, 31) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$6E/$46 lines=$00 frames=36 moved=4
[04] 120 reports of 1,-1 move a frame each ... OK (3.339s)
     x=120 y=-120 step x(0, 1) y(-1, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$08/$08 lines=$00 frames=191 moved=120
[05] 120 reports of -2,2 move a frame each ... OK (3.313s)
     x=-240 y=240 step x(-2, 0) y(0, 2) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$38/$38 lines=$00 frames=190 moved=120
[06] all 8 button states ... OK (1.935s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=4 middle=2 right=1] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=107 moved=0
[07] a REST tap of each button, and of all three, is one press each ... OK (1.083s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=2 middle=2 right=2] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=62 moved=0
[08] sensitivity 3: 2 up and 1 down detents, slowly, give 3 pulses each and leave the position ... OK (2.081s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=6 down=3 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=121 moved=0
[09] 10 detents as fast as the host polls queue and all pulse ... OK (1.419s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=10 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=81 moved=0
[10] Cursor, sensitivity 2: wheel -2/0 types cursor keys {'up': 0, 'down': 8, 'left': 0, 'right': 0} ... OK (1.234s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[down=8] keys held=0 [0.7=8] pot=$18/$18 lines=$00 frames=72 moved=0
[11] Cursor, sensitivity 2: wheel 0/1 types cursor keys {'up': 0, 'down': 0, 'left': 3, 'right': 0} ... OK (0.861s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[left=3] keys held=0 [0.2=3 6.4=3] pot=$18/$18 lines=$00 frames=51 moved=0
[12] Cursor: [(8, 0)] types {'right': 2} and leaves the pointer ... OK (0.648s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[right=2] keys held=0 [0.2=2] pot=$18/$18 lines=$00 frames=38 moved=0
[13] Cursor: [(-12, 0)] types {'left': 3} and leaves the pointer ... OK (0.621s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[left=3] keys held=0 [0.2=3 6.4=3] pot=$18/$18 lines=$00 frames=36 moved=0
[14] Cursor: [(0, 8)] types {'down': 2} and leaves the pointer ... OK (0.626s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[down=2] keys held=0 [0.7=2] pot=$18/$18 lines=$00 frames=36 moved=0
[15] Cursor: [(0, -2)] types nothing and leaves the pointer ... OK (0.552s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=31 moved=0
[16] Cursor: [(0, -2), (0, -2)] types {'up': 1} and leaves the pointer ... OK (0.625s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[up=1] keys held=0 [0.7=1 6.4=1] pot=$18/$18 lines=$00 frames=36 moved=0
[17] Cursor: [(1, 0), (1, 0), (1, 0)] types nothing and leaves the pointer ... OK (0.684s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[] keys held=0 [] pot=$18/$18 lines=$00 frames=40 moved=0
[18] Cursor: [(1, 0), (1, 0), (1, 0), (1, 0)] types {'right': 1} and leaves the pointer ... OK (0.758s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[right=1] keys held=0 [0.2=1] pot=$18/$18 lines=$00 frames=44 moved=0
[19] Cursor: motion far faster than the keys can be typed stops soon after the mouse ... OK (1.573s)
     keys kept coming for 0.91s after the mouse stopped: x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[right=19] keys held=0 [0.2=19] pot=$18/$18 lines=$00 frames=93 moved=0
[20] Cursor: turning the other way drops the keys still waiting ... OK (0.831s)
     x=0 y=0 step x(0, 0) y(0, 0) held=none presses[left=0 middle=0 right=0] wheel up=0 down=0 port2=none [] cursor[left=1 right=5] keys held=0 [0.2=6 6.4=1] pot=$18/$18 lines=$00 frames=49 moved=0
mouse_test: OK (20 checks, 27.6s)
usb-mouse: OK (27.7s)

============================================================
E2E  ftp-server  (overlay)
============================================================
     ftp-server: health: ping=12ms rest=18ms ftp=75ms telnet=36ms ident=19ms dma=15ms heap=5243912B raster=36ms jiffy=36ms -> OK

--- a name the listing reports can address the file it names
[01] a 40-character name is listed unchanged ... OK (0.085s)
[02] that file is removed by the name the listing reported ... OK (0.091s)
[03] a 100-character name is listed unchanged ... OK (0.092s)
     100 characters survived the listing
[04] SIZE answers for the long name the listing reported ... OK (0.051s)
[05] that file is removed by the name the listing reported ... OK (0.098s)
--- OK (5 checks, 0.511s)
ftp_server_test: OK (5 checks, 0.515s)
ftp-server: OK (0.582s)

============================================================
E2E  assembly64  (overlay)
============================================================
     assembly64: health: ping=12ms rest=14ms ftp=66ms telnet=40ms ident=17ms dma=14ms heap=5240808B raster=36ms jiffy=36ms -> OK
     this machine searches Assembly 64, from its task menu

--- the form opens from the menu and closes again
[01] open the Assembly 64 Query Form ... OK (0.617s)
[02] the form leaves cleanly with RUN/STOP ... OK (0.395s)
--- OK (2 checks, 1.128s)

--- a real query is sent to Assembly 64
[03] open the form and enter the first field ... OK (0.904s)
     the query term goes in 'Name:', the form's first field
[04] the typed term lands in the first field ... OK (0.615s)
[05] the service answers and the results match what was asked for ... OK (0.938s)
     20 result rows mention 'turrican'
--- OK (3 checks, 2.949s)

--- dropdown selections preserve the query form (#863)
[06] the form draws fields, and at least one of them is a dropdown ... OK (8.062s)
     13 field(s) drawn: Name:, Group:, Handle:, Event:, Repo:, Category:, Subcat:, Rating:, Type:, Date:, Latest:, Sort:, Order:
     4 free text: Name:, Group:, Handle:, Event:
     9 dropdown: Repo:, Category:, Subcat:, Rating:, Type:, Date:, Latest:, Sort:, Order:
[07] populate the free-text fields ... OK (3.776s)
[08] Repo: +/- preserves existing fields ... OK (0.778s)
[09] cancelling Repo: preserves existing fields ... OK (0.543s)
[10] confirming Repo: preserves its value and all other fields ... OK (2.006s)
[11] Category: +/- preserves existing fields ... OK (1.078s)
[12] cancelling Category: preserves existing fields ... OK (0.484s)
[13] confirming Category: preserves its value and all other fields ... OK (2.004s)
[14] Subcat: +/- preserves existing fields ... OK (1.004s)
[15] cancelling Subcat: preserves existing fields ... OK (0.478s)
[16] confirming Subcat: preserves its value and all other fields ... OK (2.100s)
[17] Rating: +/- preserves existing fields ... OK (1.073s)
[18] cancelling Rating: preserves existing fields ... OK (0.529s)
[19] confirming Rating: preserves its value and all other fields ... OK (2.097s)
[20] Type: +/- preserves existing fields ... OK (1.018s)
[21] cancelling Type: preserves existing fields ... OK (0.542s)
[22] confirming Type: preserves its value and all other fields ... OK (2.027s)
[23] Date: +/- preserves existing fields ... OK (1.021s)
[24] cancelling Date: preserves existing fields ... OK (0.469s)
[25] confirming Date: preserves its value and all other fields ... OK (1.989s)
[26] Latest: +/- preserves existing fields ... OK (0.987s)
[27] cancelling Latest: preserves existing fields ... OK (0.544s)
[28] confirming Latest: preserves its value and all other fields ... OK (2.042s)
[29] Sort: +/- preserves existing fields ... OK (0.990s)
[30] cancelling Sort: preserves existing fields ... OK (0.472s)
[31] confirming Sort: preserves its value and all other fields ... OK (2.090s)
[32] Order: +/- preserves existing fields ... OK (1.284s)
[33] cancelling Order: preserves existing fields ... OK (0.532s)
[34] confirming Order: preserves its value and all other fields ... OK (2.155s)
--- OK (29 checks, 44.7s)

--- the menu button must work from inside the edit field
[35] open the form and enter the edit field ... OK (0.860s)
[36] the menu button closes the menu from inside the field ... OK (0.106s)
[37] the menu opens again, so the UI task left string_edit ... OK (0.108s)
--- OK (3 checks, 1.564s)

--- an aborted edit must not wedge the form
[38] open the form, type into a field, then abort ... OK (1.339s)
[39] the form is still usable after the abort ... OK (0.020s)
--- OK (2 checks, 1.849s)

--- over-long and empty input
[40] type more than the field accepts ... OK (2.021s)
[41] an empty query is refused rather than sent ... OK (1.692s)
[42] the warning is dismissed and the form is still usable ... OK (0.247s)
--- OK (3 checks, 4.433s)

--- a user mashing keys while the form is busy
[43] submit a query and hammer keys while it runs ... OK (4.389s)
[44] the device is still answering after the mashing ... OK (0.017s)
--- OK (2 checks, 4.893s)

--- opening and abandoning the form repeatedly
[45] open and abandon the form three times ... OK (2.879s)
[46] the menu button closes and reopens the form three times ... OK (3.170s)
--- OK (2 checks, 6.310s)
assembly64_test: OK (46 checks, 68.3s)
assembly64: OK (68.4s)

============================================================
E2E  freezer-audio  (overlay)
============================================================
     freezer-audio: health: ping=12ms rest=18ms ftp=69ms telnet=37ms ident=18ms dma=14ms heap=5243912B raster=35ms jiffy=36ms -> OK
[01] entering the freezer menu is silent on a silent machine ... OK (0.593s)
     entry peak RMS 0.001
[02] a SID tune reaches the audio stream ... OK (2.049s)
     baseline RMS 0.107
[03] entering the freezer menu is silent while a tune plays ... OK (0.137s)
     entry peak RMS 0.106 against a 0.107 tune
[04] the freezer menu silences the machine ... OK (0.402s)
     frozen RMS 0.000, under the 0.011 bound
[05] closing the freezer menu gives the sound back ... OK (1.262s)
     resumed RMS 0.107
[06] playing a SID from the freezer menu gives the sound back ... OK (2.545s)
     relaunched RMS 0.107
freezer_audio_test: OK (6 checks, 8.040s)
freezer-audio: OK (8.112s)

TEARDOWN (overlay): release input ... OK (0.022s)
TEARDOWN (overlay): close active menu UI ... OK (0.036s)
TEARDOWN (overlay): reset machine ... OK (0.063s)

settings: restore 192.168.1.148 ... OK (unchanged, 0.368s)

============================================================
Summary
============================================================
     OK   e2e overlay    316s (31 ok)
     slowest: assembly64 68.4s, input 51.0s, usb-mouse 27.7s
     316s in suites, 18.8s in health checks, the UI-state gate and teardown
     335s total

OK  all 31 suite runs passed.

@barryw

barryw commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto master 2c60bd8 and updated the description with @radius75's bisect.

One change came with the rebase. Since f28302e and 9b22d87, the U2 family scans the keyboard from a timer, and 9b22d87 made the head of the key buffer the scan's end. My first version of ignore_held_input() reset key_head and key_tail. It now disarms and moves only key_tail, in one critical section on the timer builds, the same way push_key() guards the head.

@chrisgleissner, your test build for @radius75 has the earlier version. The difference only matters if a timer scan lands in the middle of ignore_held_input(), so it's still a fair test of whether the step goes away.

@radius75, thanks for testing. Which version did the menu show? Chris's build for this PR is v3.15-382-g46f8005ca; v3.15-242-gb04f577cb is an earlier build without it.

@radius75

Copy link
Copy Markdown
Contributor

v3.15-382-g46f8005ca

@chrisgleissner

chrisgleissner commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Hi @barryw , is a retest needed using the latest version of this PR before it can be merged, given @radius75 tested with v3.15-382-g46f8005ca? I am happy to rebuild the firmware like before and make it available if a retest is needed, just let me know.

@chrisgleissner

chrisgleissner commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Hi @barryw, as per my last comment, does this need retesting? It is difficult to see since the original Git IDs appear to have disappeared due to a forced push. Thank you.

@barryw

barryw commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@chrisgleissner Sorry, I missed your question from Tuesday. Yes, I think a retest on the current head is worth it, and thanks for offering to build it again.

Sorry about the force push hiding the history. The commits:

  • 345ae9e4: what @radius75 tested, via your v3.15-382-g46f8005ca.
  • f2389ba4: the current head, rebased onto master 2c60bd8, the same base your test build merged onto.

Apart from the rebase, the only code change is the body of Keyboard_C64::ignore_held_input():

 void Keyboard_C64 :: ignore_held_input(void)
 {
+    // One step, so the timer scan cannot queue a key between the disarm and
+    // the drop. Like clear_buffer(), it drops from the reading end only.
-    key_head = key_tail = 0;
-    mtrx_prev = 0xFF;
-    shift_prev = 0xFF;
-    armed = false;
+#if KEYBOARD_C64_TIMER_SCAN
+    portENTER_CRITICAL();
+#endif
+    armed = false;
+    mtrx_prev = 0xFF;
+    shift_prev = 0xFF;
+    key_tail = key_head;
+#if KEYBOARD_C64_TIMER_SCAN
+    portEXIT_CRITICAL();
+#endif
 }

It should behave the same, but it only runs differently on builds that scan from the timer, which means the U2 family. My U64 gate doesn't exercise that path, so @radius75's II+ is the only place the code that would actually merge gets tested. The same steps as before would do: Run Disk, Run PRG and Reboot C64, checking that the menu doesn't move.

@chrisgleissner

Copy link
Copy Markdown
Collaborator

Thanks @barryw for the update. @radius75 has now successfully re-tested the official build.

@chrisgleissner
chrisgleissner merged commit e2e9913 into GideonZ:master Oct 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ultimate menu selection randomly moves one step after returning from C64

4 participants