From 3b71c7c532f0da0b6ebbe5aee1c7cc0213a0cd56 Mon Sep 17 00:00:00 2001 From: Brett Heap <1513478+brettheap@users.noreply.github.com> Date: Sun, 15 Nov 2026 03:22:52 +0000 Subject: [PATCH 1/4] 007 S007-07: Test C5, the readers' table and default arms, with T505's primary case and `key()`'s trim (T217, T235, T259; part of opensoft/openRepoTools#165) Pull request P05 of feature 007's task sets, version 12f: lane 2's set S007-07 in one commit, through the code queue. It is stacked on P01, code pull request opensoft/openRepoTools-code#88 (rule 2): its base is P01's head 7f1141be15ac9c0d20c25c802ba9533c2fec811c, one commit on code main c9c65cc14695732c9badf9f1f7cac795f661d524, which line R takes as merge154 32e11de4ad2c736281a04cc80f3ddfbb71e10e4b. When P01 lands, this pull request is retargeted to main with its head unchanged (landing note 24). It lands after no other pull request (rule 3). It is cut from lane 1's line R at merge158 7e11b7712678fc57d190d7b2b77d92f0c012eab7 onto that base. Its 53 task commits, all lane 2's, were picked with cherry-pick -x in line R's order, and every pick is clean: line R's merge129 01f3fc39f8feeaf3e0ad8e607a528d0f48b8793e took 52 of them, lane 2's line N1 at T217zu, in N1's own order, and merge144 b4c544296685f40024a86fe31b5bfaa29a7b2760 took T217zv. The part below lists them in that order. No plain commit of landing note 15 falls in this set, and no other line R commit holds its code by hunk. The full shas are pointers into lane 1's share. Not picked: N1's merge of T207c, 616d292087dfa600c9b316c28fd4481666a13dba, which changes only tests/sql_register_helpers.py; T207c cda4dbb467e45f9443adad9bd5280a07adebd554 is S007-01's, and P01 holds it. Nor lane 5's 101-line seed of tests/test_sql_register_readers.py, in T502's part 1 7e55ec85bd67d07564522453daed8e6e69df10c9, line R's blob b947ba55a8763a4cc8b22dff63c3787e85737870 at merge25 c6acdff54c51f0dd3066be065ba866383e48c3dd: it is S007-30's, outside T502's files:, and N1's module supersedes it (landing note 11; P05's cut notes). Line R's merge129 met it as an add/add and settled it by taking N1's file whole, line R's merge129 blob 8db7ce9ac006e3eba940a442ee5b6e5b4bcb71d0. P01's head holds no readers module, so the first pick adds N1's file and no pick meets the seed. Only tests land. In this pull request's CI every id of the readers module skips, naming the tasks it waits for (rule 4), since none of the table's keys is met by the markers of P01's seven tasks and T217, T235 and T259; the run shows collection and the table's key check pass. 007 S007-07: Test C5, the readers' table and default arms, with T505's primary case and `key()`'s trim (T217, T235, T259; part of opensoft/openRepoTools#165) - T217, lane 2's, each whole, in line R's merge129 01f3fc39f8feeaf3e0ad8e607a528d0f48b8793e: T217 460c0bf7ce5d5dc231fcb83bf92320cfe3ce1e10, T217 edd3db25a1548a63850db8178248b8b35607e029, T217 ab5c66c1f298be385e75d5bc5523106a97db19e4 and T217 e95e4ab4df09d18998752c84279c5be7e25aa4d1. - T259, lane 2's, whole, in line R's merge129: T259 e0852e1fdde064cfd1053f4c03f20d8cb7080532. - T217's T217f to T217k, lane 2's, each whole, in line R's merge129: T217f 0287f3228187e984702922f0aee983d76651d426, T217g 6e8e4996a8a535ccc95d92e75e5090c34b1902e4, T217h 7e597959d260752d34b4bab234e69f07340057a9, T217i 3a80fbfc7fdab21c4361175bf55c8556642733c4, T217j 1045b770399db4a7705a2679f2a98395b51f1c08 and T217k 6b782827b3f893d17d50e64de82d7f07e08e6982. - T235 and T235b, lane 2's, each whole, in line R's merge129: T235 c4b828e09afc38b31ec515c6c61b53c3c73a2a81 and T235b f58fd4e8628b13b5073de5b71bd94d24580dd38b. - T217's T217m, T217n and T217l, lane 2's, each whole, in line R's merge129: T217m 7b8d329832fa64887ec935f6b897dfbfa93607e6, T217n 96bef061b2e84f9a2a306cdff9d1109d463273c8 and T217l a6cc83713d7b3aff89ce5e2f8f999258e61965e0. - T235c and T235d, lane 2's, each whole, in line R's merge129: T235c 79ae7df9473a1ccb75340101f1e0b60b699fab09 and T235d fb19dde1a21bcc136c4fbd1f1ed3e19cfbbc4d40. - T217's T217o to T217zk, lane 2's, each whole, in line R's merge129: T217o 98660ad7aeae8526abd02db816627ebdea555c04, T217p affcc0ccd90dcef0efa5e9b2664c9ce92efcf03c, T217q 0ad658b62dc59f289cd5422c102b1ae4f1b03909, T217r 20df857f7eb85730eceae5830adfd6bf42a0bba3, T217s b09813d771ed91ea2706296f5c70d610ff5c02cf, T217t 32d5b2ad0cc74f10fc56e900087f7d9c3c3939f1, T217u 82b828336ce9e8e6cf5b945ff9abc246831f1c60, T217v 52d69eb3f9f82dd4963d37e922e695ed3452497c, T217w 9ef883a6dc476f072a69c6bcb8a8e276cc18a5ff, T217x 525acb851374a6e3d49271aad192066649a308f9, T217y 10507e14b1a659dc87320631acb6ccc10ade9f5f, T217z 98100a41b7fb7aec7d628876d0188bf71dcf2822, T217za e2000cca7270639ee0779959a7170bee0f2afa95, T217zb 74e36ff3b54e5247000614c7322c8a2b3943d109, T217zc 95710232a9dbcdb8194875b8aded7b224ea083f8, T217zd c4373a99dcb64cd1673764ef65a3ae29b791f965, T217ze edb767b17831154cbc30ba40966fe7c3c954c31c, T217zf ad6505c37c286b7cee45713528839762bc546328, T217zg c9af23aef97276b44873103a254868e467c4ba81, T217zh 060e35cc1f13524da0453f5a3b71e3fa4f7a02e9, T217zi 4c4bf276461fdebc670a7c3aebd831ae16eb18b7, T217zj fb4675e729e3d59275c2c66388abf5ad3e2690b9 and T217zk 7c45a5f44223595efa0279ef940d329117b7afb8. - T235e, lane 2's, whole, in line R's merge129: T235e 5a8992d42b272e27fc51defe60ae25c8bd777f5b. - T217's T217zl to T217zu, lane 2's, each whole, in line R's merge129: T217zl d72d0f6205db953cd3a85db8fd5b3b9c2657b77c, T217zm 4bfd5eabc9fc2a0ccd3326d9968d4c0f10b6070a, T217zn 223596a49e891ee4f12c0a8e91bda9bacc6d4aef, T217zo cc2e708cc9177f74d981f4418e5c8a99157503d7, T217zp 73bc9485c20d9c9ff977eae49710d438c3fa28f0, T217zq ce4d8b0533b812dbd3ab53ec04f4b3fac6c63330, T217zr 9cacfbc336583957bfa5eb296f4ecb0165a05366, T217zs 9e67f03e318e8b3b1e138f31bbe4cbd0f99427b2, T217zt 86849e29363ed5564d7cc9741bc1afe2e5a16478 and T217zu 463dddb13e79c082938588c524acff02b7478382. - T217's T217zv, lane 2's, whole: ca2f3293af329d842df41ef5e0c0835836a5b099, line R's merge144 b4c544296685f40024a86fe31b5bfaa29a7b2760. - T217zr 9cacfbc336583957bfa5eb296f4ecb0165a05366 gives the module its landing-gate table (rule 11); after T217zv the table has 67 keys, 40 naming a test function of the module and 27 one id of one. - tests/test_sql_register_readers.py then equals line R's merge158 blob 13e43c94600dff81bba08abcaffba25358009c20, which line R holds from merge144 on. - Markers: tests/sql_register_landed/T217, T235 and T259. Lane: openRepoTools-1 Co-Authored-By: Claude Opus 5.5 --- tests/sql_register_landed/T217 | 0 tests/sql_register_landed/T235 | 0 tests/sql_register_landed/T259 | 0 tests/test_sql_register_readers.py | 4198 ++++++++++++++++++++++++++++ 4 files changed, 4198 insertions(+) create mode 100644 tests/sql_register_landed/T217 create mode 100644 tests/sql_register_landed/T235 create mode 100644 tests/sql_register_landed/T259 create mode 100644 tests/test_sql_register_readers.py diff --git a/tests/sql_register_landed/T217 b/tests/sql_register_landed/T217 new file mode 100644 index 00000000..e69de29b diff --git a/tests/sql_register_landed/T235 b/tests/sql_register_landed/T235 new file mode 100644 index 00000000..e69de29b diff --git a/tests/sql_register_landed/T259 b/tests/sql_register_landed/T259 new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_sql_register_readers.py b/tests/test_sql_register_readers.py new file mode 100644 index 00000000..13e43c94 --- /dev/null +++ b/tests/test_sql_register_readers.py @@ -0,0 +1,4198 @@ +# SPDX-License-Identifier: Apache-2.0 +"""TEST C5: THE SQL REGISTER'S READERS (feature 007, T217, L2-N4; the test +plan's AT-C5; R29; FR-033, FR-034, FR-036, FR-059). + +This module supersedes lane 5's seed of the same name (T502 part 1, +`refs/l5/T502`), and keeps its one test, `lanes --decide`, by name. + +WHAT IT HOLDS, by its five sources: + + * AT-C5's sixteen (the test plan, "The readers' table, the one-call + failure, and the callers' default arms"): each reader by the design's + S3 table with the store unreachable; each mirror read's `read: mirror` + line; the `none` arms; the read door's classification, a hygiene test; + the callers that act on a listing; one failed call anywhere in a caller's + read sequence; `lane-start`'s seven read arms at 75 and 3, and at 69; the + other callers' arms (lane 4's table, "The callers' default arms (Q9)"); + the writer's printed rerun relayed on a 3; an expectation's 2 at + `lane-start`'s last write, under a seq base, with its twin under an + `@files` base, a note, a stamp and a launch (ERR-56; lane 3, #165 + 6871338814), and ERR-56's second case, an `@files` base whose re-read + answers a seq base, which dies (lane 4, #165 6879449852), and its + row-making 2, a new lane's under an `@files` base, which dies too (lane + 4, #165 6880188792); + `register-row-local`; `lane-worktrees`' reads; `--index` on + primary; and `managed-projection`. + * Lane 1's three (L1v4.5's T113 and T114): `guard_second_read_at`, + `log_key_hex_slot` and `journal_last_pickaxe`, each `lanes-index`'s own, + on a real engine. + * Lane 5's nine (A5; T504 to T506 and T509), their guessed names kept. + * Lane 4's two read verbs (R29; GB section 4.3; T401), `register-text` and + `register-grep`, with T401's two exit-2 cases each (O21a), and + `register-grep`'s one snapshot and quoted names on primary (lane 3's Q2 + and Q3, #165 6851977580). + * Lane 4's `key()` trim (T259; R31; GB section 4.3; T426): the one test that + asks `retired-identity` about spellings that differ only past the + sixteenth digit, in files mode and on primary. + * Lane 2's T235 (F13b's proposed task, for lane 3 to place; lane 5's + choice (b), #165 6778955065): on primary, T505's three read sites, + `known_lanes`, `remote_log_events` and `worktree_rows`, read the store and + never git, by the fake `git`'s argv log, on a real engine; and its + moved-head ids, T505's two reruns where the head moves under a read, on + the stub door (lane 5's proposal, #165 6860943489; lane 3, 6861148117). + +THE ARMS' IDS ARE THEIR LINES AT `2a057a6d`, as the test plan names them (the +block, T217), so they move with slices 1a and 1b and are re-cited at each +landing. `test_the_other_callers_arms_pass_the_code_or_refuse_as_lane_4s_ +table_gives` names each arm's script first (lane 4's question 2, #165 +6752694348), `