Repository navigation
Description
(lane openRepoShape-4, 2026-11-09T21:25:00Z)
Found by: RV1278, lane 4's reviewer of PR #1278 (the draft for #1259), in its final report, finding NIT-2: "no open issue tracks the 16 ASCII failures. They are in the two files #1259 names, and #1259 is settled by this PR. 15 of them are row 7's kind (a UTF-8 file read with read_text() and no encoding). I searched the 75 open issues for the row names and found none. Lane 4 should file one." This is that issue. The report is a lane 4 reviewer's message and is not posted on GitHub; its review comment is #1278 (comment).
Lane 3 places this issue, and it has no milestone here. It was filed after v1.2.1's scope froze (2026-11-08T20:00Z); lane 3 puts such issues on v1.2.2. It is in the one-byte-locale test area of #1214, #1259 and #1283, but the locale is ASCII (LC_ALL=C, PYTHONUTF8=0, PYTHONCOERCECLOCALE=0), not Latin-1.
What is missing
Nothing a user can see is known: these are tests. CI and the bench run UTF-8, so no gate sees it. Under an ASCII locale 16 rows of tests/test_family.py and tests/test_pinned_copy_text.py fail on the merge of #1278 with main; under UTF-8 none fails.
How this differs from #1259 and #1278
- tests: 8 tests in test_pinned_copy_text.py and test_family.py, files #1214 does not list, fail under a Latin-1 locale on main and on #1258, and whether each cannot judge there or is a tool defect is not classified (F1214's leftovers; follows #1214) #1259 and tests: under a Latin-1 locale 12 of the 13 rows of #1259 skip on their own premise or read their UTF-8 file as UTF-8, and the 13th, the assembly root bootstrap.py saying it could not create a branch it made, is left failing for its own issue (#1259) #1278 are about Latin-1. tests: 8 tests in test_pinned_copy_text.py and test_family.py, files #1214 does not list, fail under a Latin-1 locale on main and on #1258, and whether each cannot judge there or is a tool defect is not classified (F1214's leftovers; follows #1214) #1259 counts 8 rows of these two files (and 5 of
tests/test_bootstrap_spelling.py) that fail under a Latin-1 locale and pass under UTF-8. tests: under a Latin-1 locale 12 of the 13 rows of #1259 skip on their own premise or read their UTF-8 file as UTF-8, and the 13th, the assembly root bootstrap.py saying it could not create a branch it made, is left failing for its own issue (#1259) #1278 settles 12 of the 13 rows and leaves row 13 to assembly-root bootstrap.py: under Latin-1,tracking_branchtb\udcffxis made with HEAD on it at the pin, but_head_ofreads the ref as another text, so it sayscould not create branch, thengit refused to check it out, both false (#1259 row 13) #1283. Their "Measured under Latin-1" column and their guards (skip_where_the_locale_does_not_spell_it_as_utf_8,skip_where_the_environment_cannot_carry) are Latin-1's. - None of the 16 is one of tests: 8 tests in test_pinned_copy_text.py and test_family.py, files #1214 does not list, fail under a Latin-1 locale on main and on #1258, and whether each cannot judge there or is a tool defect is not classified (F1214's leftovers; follows #1214) #1259's 13 rows. tests: under a Latin-1 locale 12 of the 13 rows of #1259 skip on their own premise or read their UTF-8 file as UTF-8, and the 13th, the assembly root bootstrap.py saying it could not create a branch it made, is left failing for its own issue (#1259) #1278 changes row 7 (
test_family.py::test_init_writes_the_holders_agent_files) to read withencoding="utf-8", which is the fix 15 of these need too, and row 7 passes under ASCII on the merge. tests: 8 tests in test_pinned_copy_text.py and test_family.py, files #1214 does not list, fail under a Latin-1 locale on main and on #1258, and whether each cannot judge there or is a tool defect is not classified (F1214's leftovers; follows #1214) #1259 is settled by tests: under a Latin-1 locale 12 of the 13 rows of #1259 skip on their own premise or read their UTF-8 file as UTF-8, and the 13th, the assembly root bootstrap.py saying it could not create a branch it made, is left failing for its own issue (#1259) #1278, so no open issue covers the 16 below. - Latin-1 reads these files without error. A Latin-1 codec decodes every byte, so
read_text()returns wrong text and the rows that compare it pass or fail on content. ASCII decodes only 0x00-0x7F, so the sameread_text()raisesUnicodeDecodeErroron the first byte 0xe2 (the first byte of U+2014 and U+2192, which the shape copy,family.yamland the README hold as UTF-8).
What was measured, and by whom
Measured by RV1278 (ASCII means LC_ALL=C PYTHONUTF8=0 PYTHONCOERCECLOCALE=0; Python 3.12.3; git-filter-repo first on PATH; a stub gh). Run on the scratch merge f0db5bc2d of #1278's head and main 674077657, 20 files: ASCII 41 failed, 1124 passed, 81 skipped. The three files of the 13 rows on the merge, ASCII: 16 failed, 381 passed, 10 skipped. On main itself (674077657) the same file set gave 52 failed, and the two files held 23 of them; #1278 removes 7 of those 23 (row 7 and six more) and leaves the 16 below. RV1278 did not run these 16 on current origin/main (5c662f75e, which does not hold #1278).
I read the saved ASCII run for this issue and did not re-run it: tools/run/rv1278/logs/gate-merge-ascii.log and gate-merge-ascii.xml in lane 4's scratch (/workspace/projects/openRepoShape-worktrees/_lane4-scratch/). The log lists the 16 ids as FAILED lines. Read from the code, not run: which read_text() call raises in each row. The log's own tracebacks name test-file lines (merge tree), and the origin/main file at 5c662f75e has bare read_text() calls at, for example, tests/test_family.py lines 314, 317, 318, 331, 337, 350, 357, 377, 714, 747, 756, 768, 863, 1081, 1151, 1214, 1538, 1578, 1612, 1674 and 2199; I did not match each failing row to its call.
The 16 ids (ASCII, on the merge)
15 in tests/test_family.py, each failing with UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 (positions 133, 135, 916, 1118 or 1860 of the file read):
test_init_copies_the_siblings_utility_and_the_makefile_targettest_the_holder_says_what_its_bytes_aretest_validate_finds_a_pin_that_disagrees_with_the_gitlinktest_validate_accepts_a_member_bump_that_is_staged_but_not_committedtest_validate_finds_a_digest_that_does_not_recomputetest_validate_finds_an_id_that_is_not_the_project_mounted_theretest_validate_finds_an_edited_shape_copytest_bump_to_the_commit_already_pinned_leaves_an_uncommitted_edit_alonetest_bump_finishes_a_bump_an_earlier_run_staged_and_did_not_committest_bump_to_the_pinned_commit_repairs_a_digest_that_does_not_recomputetest_update_shape_reads_a_family_root_and_mirrors_into_family_yamltest_update_shape_moves_the_holder_readmes_shape_line_with_the_pintest_update_shape_with_no_shape_block_names_the_family_validatortest_no_members_still_finds_an_edited_copytest_siblings_skips_a_clone_whose_project_id_is_not_the_rows
And one in tests/test_pinned_copy_text.py, which is not row 7's kind:
test_a_printable_pin_source_that_is_not_a_repository_is_named_as_typed[caf\xe9]:UnicodeEncodeError: 'ascii' codec can't encode character '\xe9'atsource.mkdir()(test line 673 on the merge;tests/test_pinned_copy_text.py:656-673on origin/main). The test cannot make a folder namedcafplus U+00E9 under ASCII, before any tool runs.
The 15 are, from the failure text, a test reading a UTF-8 file without an encoding (the same kind as row 7); that no tool defect is involved is RV1278's reading and mine, not a separate check.
Done when
- Each of the 15
test_family.pyrows reads its files withencoding="utf-8"(or the file helper is changed once), and passes under ASCII, UTF-8 and Latin-1 with the counts it has now. - Row 16 skips under a locale that cannot make the name, as tests: 8 tests in test_pinned_copy_text.py and test_family.py, files #1214 does not list, fail under a Latin-1 locale on main and on #1258, and whether each cannot judge there or is a tool defect is not classified (F1214's leftovers; follows #1214) #1259's rows 9 to 12 do (
skip_where_the_environment_cannot_carry("caf\u00e9")), or is otherwise made to judge. - A mutant that reads one of the files as Latin-1 fails the row, as RV1278's MX1 did for row 7.
- Other files that fail under ASCII on main (RV1278 counted 52 on main; the 16 here are only the two files tests: 8 tests in test_pinned_copy_text.py and test_family.py, files #1214 does not list, fail under a Latin-1 locale on main and on #1258, and whether each cannot judge there or is a tool defect is not classified (F1214's leftovers; follows #1214) #1259 names) stay for their own issues; this one does not widen.
See #1259, #1278, #1283, #1214 and #1258.
Lane: openreposhape-4 (openRepoShape-4)
Activity
brettheap commentedon Nov 10, 2026
CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-11-10T08:16:27Z, for #1285
Logged in
lanes/log/openRepoShape-1.mdat2722cea88593d86278f8e588ddad07cbae199cf7.The three reads (lane-collision-protocol Rule 1):
tests: test_family.py rows 1, 3 and 11 assert a character or the byte…
tests: test_family.py row 11 holds its bytes compare in a name, so a …