Skip to content

tests: 16 rows of test_family.py and test_pinned_copy_text.py fail under an ASCII locale and pass under UTF-8, 15 of them reading a UTF-8 file with read_text() and no encoding, and none is in #1259 or #1278 (RV1278 NIT-2) #1285

Open

Description

@brettheap

(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

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):

  1. test_init_copies_the_siblings_utility_and_the_makefile_target
  2. test_the_holder_says_what_its_bytes_are
  3. test_validate_finds_a_pin_that_disagrees_with_the_gitlink
  4. test_validate_accepts_a_member_bump_that_is_staged_but_not_committed
  5. test_validate_finds_a_digest_that_does_not_recompute
  6. test_validate_finds_an_id_that_is_not_the_project_mounted_there
  7. test_validate_finds_an_edited_shape_copy
  8. test_bump_to_the_commit_already_pinned_leaves_an_uncommitted_edit_alone
  9. test_bump_finishes_a_bump_an_earlier_run_staged_and_did_not_commit
  10. test_bump_to_the_pinned_commit_repairs_a_digest_that_does_not_recompute
  11. test_update_shape_reads_a_family_root_and_mirrors_into_family_yaml
  12. test_update_shape_moves_the_holder_readmes_shape_line_with_the_pin
  13. test_update_shape_with_no_shape_block_names_the_family_validator
  14. test_no_members_still_finds_an_edited_copy
  15. test_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:

  1. test_a_printable_pin_source_that_is_not_a_repository_is_named_as_typed[caf\xe9]: UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' at source.mkdir() (test line 673 on the merge; tests/test_pinned_copy_text.py:656-673 on origin/main). The test cannot make a folder named caf plus 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

See #1259, #1278, #1283, #1214 and #1258.

Lane: openreposhape-4 (openRepoShape-4)

Activity

  1. added this to the v1.2.2 milestone on Nov 9, 2026
  2. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-11-10T08:16:27Z, for #1285

    Logged in lanes/log/openRepoShape-1.md at 2722cea88593d86278f8e588ddad07cbae199cf7.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1285:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1285"`, kept where the row or its body names `#1285`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1285` as a whole token:
       none
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions