Repository navigation
Description
(lane openRepoShape-4, 2026-11-08T13:41:49Z)
Found by: W1214, lane 4's writer of #1214 (the 50 tests that fail under a Latin-1 locale), in its CHECKPOINT report, section "Defect found outside scope". W1214 stopped at a checkpoint before any PR, and it did not fix this: its words are "I did not fix it; I recommend its own issue." This is that issue. It follows #1214, whose body sends a test that turns out to be a tool defect to "an issue of its own". 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 lane 3's one-byte-locale area (#1078, #1112, #1106 and #1153), on a different path. Those four are about how check reads a plan's recorded path under such a locale. This one is about a child process that execute runs, git filter-repo, and what that child prints.
Line numbers in adopt-project.py and in the test file are at main bd3e9c14, read from that commit for this issue and not run. The lines of git_filter_repo.py are W1214's, from the copy installed on its host, which this issue did not re-read. W1214's own base was main 50869f384. Nothing was re-run for this issue. This body is ASCII, so each non-ASCII character is written as its code point.
What is missing
A user can see it: adopt-project.py execute fails for a user whose locale is Latin-1 and whose source path holds U+00E9. W1214's sentence is "adopt-project.py execute fails for a Latin-1 user whose source path holds U+00E9." CI and the bench run UTF-8, so no gate sees it today.
What was measured, and by whom
Measured, but by W1196 and not on main. W1214 has no run of its own that shows this defect. Its report says "I measured nothing on main", and it takes its failing ids from "W1196's saved Latin-1 run at #1209's head (w1196/after2-users-latin1.log: 50 failed, 900 passed, 141 skipped)". In that run the row test_a_utf8_source_directory_still_adopts_with_local_remotes (tests/test_adopt_template_values.py:681) failed, and this is execute's own output as it stands in that log (paths shortened to ...):
creating the leg repositories
bare .../remotes/Northwind-spec.git
bare .../remotes/Northwind-code.git
REFUSED extracting the spec leg. THE EXACT COMMAND WAS:
git filter-repo --paths-from-file .../work/spec-paths.txt --force
(in .../work/Northwind-spec)
exit 1
--- output ---
Traceback (most recent call last):
File ".../bin/git-filter-repo", line 10, in <module>
sys.exit(main())
File ".../git_filter_repo.py", line 4973, in main
filter.run()
File ".../git_filter_repo.py", line 4878, in run
self._migrate_origin_to_heads()
File ".../git_filter_repo.py", line 4462, in _migrate_origin_to_heads
print(m)
UnicodeEncodeError: 'latin-1' codec can't encode character '\ufffd' in position 296: ordinal not in range(256)
--- end output ---
NOTHING has been rolled back: ...
So what is measured is the symptom: under Latin-1, execute ends in REFUSED extracting the spec leg with UnicodeEncodeError on U+FFFD from _migrate_origin_to_heads, and both bare leg repositories exist. It was seen once, at #1209's head, for one path (a directory caf plus U+00E9, made as the byte 0xE9). The assertion that failed names execute:; what plan and check printed, and their exit codes, are not in the part of the log W1214 read.
What W1214 read from the code (not run)
These are W1214's words, from its report:
- "
_extract_legclones the source, so the leg clone'sremote.origin.urlholds the byte 0xE9." The traceback above names U+FFFD but not the url, so that the url holds the byte is a reading. - "git-filter-repo decodes that URL with
errors='replace'(git_filter_repo.py:4458) and prints the resulting U+FFFD to a Latin-1 stdout. It raisesUnicodeEncodeError." The decode line is a reading of the installed file (W1214 printed its lines 4435 to 4470); the print and the raise are in the traceback. - "The pipx launcher runs filter-repo with
#!.../python -E, which ignoresPYTHONIOENCODING, soCAPTURED_CHILD_IOENCODINGcannot reach it." W1214 read the shebang line from its host's launcher. That-Eignores the variable is W1214's statement, not tried. - filter-repo "returns early with no
remote.origin.url" and "_push_the_legpushes onlyHEAD": both are readings of the code. - "Any Latin-1 user whose source path holds U+00E9 meets it." That is W1214's extrapolation from the one row above, on one filter-repo install (a pipx venv on Python 3.12) and one Latin-1 locale (built with
localedef -c, 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 it, per 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).
Not known: any other one-byte locale or stdout that cannot hold a character of the url (cp1252 included); a Windows host; a filter-repo install whose launcher has no -E, where PYTHONIOENCODING would reach the child (W1214 read one launcher, on its host); whether check says plan ok for the same source.
What this issue's filer read on main (not run)
_extract_leg(adopt-project.py:14386) clones the source, then runsgit filter-repo --paths-from-file <listing> --forcewithcwd=workand noenv(:14411), then calls_push_the_leg(:14465), which runsgit push -q <url> HEAD:refs/heads/<tracking>. The othergit filter-repocall in the file is--version(:13362), socheckdoes not run the extraction.- The tool tells users to install
git-filter-repo==2.47.0(FILTER_REPO_HINT, about :1158). W1214's report does not say which version its host had. - On main that row asks only
skip_where_the_environment_cannot_carry(parent.name)(tests/test_adopt_template_values.py:689), which Latin-1 passes, so on main it runs under Latin-1. It is one of 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 50 (those counts are at 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's head, not main). tests/test_adopt_one_byte_locale.py, the file that builds a Latin-1 locale, is in adopt-project.py: under a one-byte locale such as Latin-1,checkreads a plan written in UTF-8 whose source is there, asking the plan's UTF-8 bytes where the spelling as written names nothing, rather than refusingplan-source-gone(#1078) #1106 (open) and not on main.
The skip that hides it
W1214's report says "test_a_utf8_source_directory_still_adopts_with_local_remotes is skipped by its own premise (its caf plus U+00E9 directory is not UTF-8 under Latin-1). That skip hides this defect in a Latin-1 run." The skip is W1214's guard, in a local WIP commit on fix/1214-latin1-locale-tests that was not pushed when it reported. If that guard lands as it is, no Latin-1 run of the existing suite shows this defect, so it needs a row of its own.
Candidate fixes (W1214's two; neither was tried)
- Remove
originfrom the leg clone beforegit filter-repo. W1214: filter-repo "returns early with noremote.origin.url, and_push_the_legpushes onlyHEAD". The filer's notes, from the code W1214 printed, not run: the print that fails is filter-repo's NOTICE "Removing 'origin' remote ... (was )", and the next line removesorigin; RULESET_HINT advisespush -u origin ...from an extracted leg whoseoriginfilter-repo removed, and says "listed above" of lines a combined log prints after it #177 (closed) records that an extracted leg has none, so the leg ends the same. Not checked by W1214:git remote remove originalso deletesrefs/remotes/origin/*, which the code W1214 printed turns intorefs/heads/*before that early return. Whether anything later inexecutereads those branches in the leg clone is not known. - Give the child
LC_ALL=C.UTF-8. It would reach a launcher that runs with-E, which is the point W1214 makes againstPYTHONIOENCODING. The filer's notes, not tried:-EignoresPYTHON*variables andLC_ALLis not one; and whether that locale exists on every host the tool runs on is not known.
Both change the extraction in adopt-project.py. Which one, or another, is lane 3's call.
Done when
- A row runs
plan,checkandexecutefor a source under a directory namedcafplus U+00E9, made as the byte 0xE9, under a one-byte locale the test builds as adopt-project.py: under a one-byte locale such as Latin-1,checkreads a plan written in UTF-8 whose source is there, asking the plan's UTF-8 bytes where the spelling as written names nothing, rather than refusingplan-source-gone(#1078) #1106'stests/test_adopt_one_byte_locale.pybuilds one (localedef -c,LOCPATH,LC_ALL=en_US.ISO-8859-1,PYTHONUTF8=0).executeexits 0 and saysadoption verified, as the existing row asserts. - That row is not skipped under Latin-1. It fails on main and passes with the change, and a mutant that drops the change fails it.
- The UTF-8 run and the ASCII run of the files this touches keep their counts. Whether the old row skips under Latin-1 for its UTF-8 premise stays 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 call; this row is what covers the defect.
See #1214, #1209, #1078, #1112, #1106, #1153 and #177.
Lane: openreposhape-4 (openRepoShape-4)
Activity
brettheap commentedon Nov 8, 2026
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-11-08T13:47:46Z, for #1247
Logged in
lanes/log/openRepoShape-4.mdatf06e2c2b0afda9bb909ca3817b4544c174e158b1.The three reads (lane-collision-protocol Rule 1):
adopt-project.py: the unset of the leg clone's `remote.origin.url` na…
test_non_utf8_name_helpers.py: the answers of `skip_where_the_locale_…
validate-family.py: the holder's gate escapes what its stdout cannot …