Repository navigation
Description
(lane openRepoShape-4, 2026-11-08T16:00:38Z)
Found by: F1214, lane 4's finisher of #1214 (the 50 tests that fail under a Latin-1 locale), in its final report, section "Left, and defects outside scope". Its draft PR #1258 (a draft for #1214) says the same under "Left, and outside this issue": "These are read from their failure messages only, not classified per test. They are left for an issue of their own." This is that issue. It follows #1214. The report is a lane 4 writer's message and is not posted on GitHub.
Lane 3 places this issue, and it has no milestone here. It is in the one-byte-locale test area of #1214, #1196 and #1224.
Every count below is F1214's, from its saved Latin-1 and UTF-8 runs (the logs and junit files are in lane 4's scratch, tools/run/f1214/), read for this issue and not re-run. Test ids and line numbers are at origin/main 5926cccab, read from that commit and not run; F1214's own runs were at main bd3e9c148. #1258 is a draft and is not on main. This body is ASCII, so each non-ASCII character is written as its code point, and a printed escape is written with a backslash.
What is missing
Nothing a user can see is known: these are tests. CI and the bench run UTF-8, so no gate sees any of this today. What is not known is whether each of the 8 is a test that cannot judge under a one-byte locale (its premise holds only for UTF-8), a test that reads wrongly, or a tool defect that a Latin-1 user would meet. #1214 asked that of 50 tests. These 8 are not among the 50.
How they differ from #1214's 50
- They are in two files outside tests: 50 tests in 12 files fail under a Latin-1 locale before and after #1209 (ten of them rows of
test_stdout_encoding.py), and whether each is a test that cannot judge under a one-byte locale or a tool defect is not measured (W1196's leftovers; follows #1196) #1214's list. tests: 50 tests in 12 files fail under a Latin-1 locale before and after #1209 (ten of them rows oftest_stdout_encoding.py), and whether each is a test that cannot judge under a one-byte locale or a tool defect is not measured (W1196's leftovers; follows #1196) #1214's 24 files are W1196's list of the files that useskip_where_a_name_cannot_be_not_utf_8oron_a_branch_that_is_not_utf_8.tests/test_family.pyandtests/test_pinned_copy_text.pyare not in it. F1214 added them to its gate, withtests/test_update_shape_kept_helper.pyandtests/test_local_remote_dir_urls.py, as files that run the code validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258 changes, and so it saw them fail. - validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258 settles the 50 and leaves these 8. tests: 50 tests in 12 files fail under a Latin-1 locale before and after #1209 (ten of them rows of
test_stdout_encoding.py), and whether each is a test that cannot judge under a one-byte locale or a tool defect is not measured (W1196's leftovers; follows #1196) #1214's "Done when" names the 50, and validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258's body says these 8 are "left for an issue of their own". - Not classified. F1214 gave each of the 50 a kind: the test cannot make or pass the name; the tool answers rightly and the row expects UTF-8's reading or spelling; or a tool defect. It gave none to these 8, and read only their failure messages.
- Their guard is not on main. The helper validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258 adds for the second kind,
skip_where_the_locale_does_not_spell_it_as_utf_8, and its premise sentences are in validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258'stests/conftest.pyonly. None of the 8 takes a guard there. - validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258's tool change does not reach them. Its change to
validate-family.pytook 28 other rows oftests/test_family.pyfrom failed to passed under Latin-1, and the 3 tracking-branch rows of the 50. These 8 still fail on its head.
What was measured, and by whom
Measured by F1214, under Latin-1 (a locale built with localedef -c as #1153's tests/test_adopt_one_byte_locale.py builds one; LOCPATH, LC_ALL=en_US.ISO-8859-1, PYTHONUTF8=0; Python 3.12.3; git-filter-repo 2.47.0 first on PATH; a stub gh, a bogus token and an empty global git config). For this issue I read the four saved junit files, and the same 8 test ids fail in each:
| Run | Tree | Result under Latin-1 |
|---|---|---|
| 27 files | main bd3e9c148 |
123 failed, 1373 passed, 25 skipped |
| the same 27 files | #1258's head c8641c691 |
44 failed, 1404 passed, 74 skipped |
| 29 files | a scratch merge of #1258 and #1209 (409885e53, local, never pushed) |
8 failed, 1330 passed, 220 skipped: these 8 and no other |
4 files (test_family.py, test_family_tracking_branch.py, test_update_shape_kept_helper.py, test_pinned_copy_text.py) |
a scratch merge of #1258 and main dffc42265 (036e02f1d, local, never pushed) |
8 failed, 404 passed, 1 skipped: the same 8 |
- Under UTF-8 none of them fails. The 27 files give 1520 passed and 1 skipped on main and 1521 passed and 1 skipped on validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258's head. The 4 files give 413 passed on the merge with
dffc42265. - The head's other 36 failures (44 less these 8; my subtraction) are, in F1214's words, "the rows tests/conftest.py and tests/test_adopt_plan_paths_spelled.py: under a one-byte locale such as Latin-1 the 0xff
--work-dirrow skips and the two U+00E9 rows read the child's UTF-8, so none of the three fails on a tool that is right, and the bytes helper starts its child asrun_scriptdoes (#1196) #1209 settles, and the rows under 'Left'". On the merge with tests/conftest.py and tests/test_adopt_plan_paths_spelled.py: under a one-byte locale such as Latin-1 the 0xff--work-dirrow skips and the two U+00E9 rows read the child's UTF-8, so none of the three fails on a tool that is right, and the bytes helper starts its child asrun_scriptdoes (#1196) #1209 only these 8 fail. - Not measured: an ASCII-locale run of these two files, and any Latin-1 run of the other test files. F1214's breadth run of the 59 other files that name
validate-familywas UTF-8.
The 8, by test id
The failure text is from the junit file of the run on the merge with dffc42265; the same 8 ids fail in the other three runs, whose text I did not compare. What each test does is read from origin/main 5926cccab, not run.
Six rows of tests/test_pinned_copy_text.py:
test_the_variable_the_warning_offers_reads_the_later_link(:190)test_an_unused_pin_source_is_named_spelled[esc]and[forged-line](:450)test_a_replaced_pin_source_and_its_replacement_are_spelled(:465)test_a_key_read_as_a_path_is_spelled(:480)test_a_printable_pin_source_is_named_as_typed(:497)
Each compares text the tool printed with text that holds U+2014, or U+2192 and U+2026, and the printed text holds them escaped. Measured: the first row's stdout reads ...assembly \u2014 descendant form ... openXdox \u2192 openYdox \u2192 openInk ... and its digest ends \u2026, and its assertion looks for declared pin chain openXdox, U+2192, openYdox, U+2192, openInk, U+2192. In the other five the note reads not used \u2014 each declared pin had a more specific source ... (or ... \u2014 the later ...) where the row expects not used, U+2014. The Latin-1 stdout cannot hold the character, so the tool prints it escaped. Per #1258's body that is #214's design for the digest's ellipsis in the lines tests/test_adopt_pins.py compares, and escape_unencodable_stdout (#391 and #454) is the function other tools call for it. Whether each of these six prints through that function was not checked.
tests/test_family.py::test_init_writes_the_holders_agent_files (:321). Measured: assert "Read AGENTS-shape.md first ..." == "Read AGENTS-shape.md first ...", where the left side holds three characters (the diff marks three columns) in the place of the U+2014 the right side holds. Read from the code: line 350 is agents = (root / "AGENTS.md").read_text() with no encoding=, so the file is read in the locale's encoding, and the three bytes of U+2014 in UTF-8 (E2 80 94) are read one by one as Latin-1. F1214's words: "it reads the UTF-8 file it checks in the locale's encoding". So this one looks like a test that reads wrongly, not a tool defect.
tests/test_family.py::test_commit_one_refuses_a_trailer_that_is_no_text_before_it_stages (:1328). Measured: Failed: DID NOT RAISE Refusal, at the pytest.raises(Refusal) around _commit_one, which is given a trailer made by argv_of of the bytes Co-Authored-By: Jos and 0xE9 (:1338 to :1341). Read from the code, not run: argv_of (tests/test_commit_trailers.py:120) is os.fsdecode on POSIX, which under UTF-8 reads that byte as the lone surrogate U+DCE9, a trailer that commit_trailers (scripts/shape_materialize.py :2927, the refusal at :2966; its docstring says family.py calls it ahead of the stage) refuses as trailer-not-utf8, and under Latin-1 reads it as U+00E9, text a commit can hold. F1214's words: "a byte Latin-1 reads as text". That is the premise #1258 guards with A_BYTE_READ_AS_A_SURROGATE in 11 other rows.
Candidate guards (F1214's kinds, read; none tried)
- The six pinned-copy rows: the tool is right for the bytes Latin-1 gives and the rows expect UTF-8's. Skip on that premise, as validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258 does for
PRINTED_AS_ITSELFintests/test_adopt_pins.py(5 rows) andtests/test_bootstrap_leg_moves.py(2 rows); or run the child with a UTF-8 stdout, which nobody tried. test_init_writes_the_holders_agent_files: read the file withencoding="utf-8". It would run under Latin-1 then.test_commit_one_refuses_a_trailer_that_is_no_text_before_it_stages: skip onA_BYTE_READ_AS_A_SURROGATE.
All three go on a branch after #1258 lands, since the helper and the premise sentences are in #1258 only. Whether any of the 8 hides a tool defect is not known: F1214 read failure messages only.
Done when
- Each of the 8 is named, by test id, as a test that cannot judge under Latin-1 (and skips there on its own premise, which the skip reason states), as a test that reads wrongly (and is corrected), or as a tool defect (with an issue of its own).
- On a tree with validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258 and tests/conftest.py and tests/test_adopt_plan_paths_spelled.py: under a one-byte locale such as Latin-1 the 0xff
--work-dirrow skips and the two U+00E9 rows read the child's UTF-8, so none of the three fails on a tool that is right, and the bytes helper starts its child asrun_scriptdoes (#1196) #1209, the Latin-1 run oftests/test_pinned_copy_text.pyandtests/test_family.py, in a locale built as adopt-project.py: under a one-byte locale such as Latin-1, a clonecheckmakes again for a plan's clone record that neither spelling names is compared with both, so it is kept and the next run reads it rather than cloning again (#1112) #1153's test builds one, gives 0 failed. - The UTF-8 run of the same two files keeps its counts: no row that ran there skips or fails. Their ASCII run (
LC_ALL=C PYTHONUTF8=0 PYTHONCOERCECLOCALE=0) is looked at too, since nothing measured it.
See #1214, #1258, #1209, #1196, #1224 and #1153.
Lane: openreposhape-4 (openRepoShape-4)
Activity
brettheap commentedon Nov 8, 2026
(lane openRepoShape-4, 2026-11-08T18:30:24Z) Five more rows of the same kind, found by F1258 in #1258's fix round: they fail under Latin-1 on main and on #1258, in a file #1214 does not list.
All five are in
tests/test_bootstrap_spelling.py:test_a_roots_own_directory_name_is_spelledtest_a_family_roots_own_directory_name_is_spelledtest_a_register_and_its_path_are_spelled_when_it_cannot_be_readtest_a_members_row_and_the_make_target_are_spelledtest_a_branch_name_is_spelled_in_every_line_that_names_itWhat was measured:
46fe6ac1, and on the scratch merge of validate-family.py: the holder's gate escapes what its stdout cannot encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) #1258's headcd9f3cfdwith main.Read from the messages only, not classified:
UnicodeEncodeErroron U+2028.test_a_branch_name_is_spelled_in_every_line_that_names_itfails an assertion.Whether each one cannot judge under Latin-1 or is a tool defect is open, as it is for the eight rows above. The logs are under lane 4's
tools/run/f1258/logs/.Lane: openreposhape-4 (openRepoShape-4)
brettheap commentedon Nov 9, 2026
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-11-09T13:30:52Z, for #1259
Logged in
lanes/log/openRepoShape-4.mdatcc415fee86d53d5836eb1599f731d8e3c2b036f4.The three reads (lane-collision-protocol Rule 1):