Repository navigation
Description
One tests-only change. The fixtures move onto clone_just_pushed (tests/conftest.py), and the riding lines can join it.
From the v1.1.0 triage of the v1.0.0 known limits on #461. One pull request covers the lines below.
Lines
- About a dozen fixtures and siblings.py still clone a just-pushed local bare remote by plain path (the test fixtures; its siblings.py:455 half goes with
make siblingsandfamily.py siblings: clone each member on its tracking branch, warn before cloning outside a<Family>folder, and run the holder's pinned siblings.py #543). Where: tests/test_update_shape.py:114; tests/test_doctor_validator_rows.py:416; tests/test_family.py:1373, :1405; adopt/scaffold fixtures; templates/family-root/scripts/siblings.py:455. Effort M; macOS. On main3121945: Flakiness costs real time: setup-project.py: the root clone of--local-remote-diris--no-localand its two leg clones are rewritten tofile://, and the two session fixtures that clone a scaffold do the same, so a maintenance run packing the just-pushed objects mid-walk no longer diesfailed to copy file to ... No such file or directory(#440) #467 (994be39) addedclone_just_pushed(tests/conftest.py:67), but only conftest.py:399, test_shape_doctor, test_scaffold_pin_and_reuse and test_update_shape_merged_away call it; the named fixtures still run plaingit cloneof the path. (source)
Rides along (backlog; tick it here if the same change covers it)
- Doctor and Windows-path tests'
exec_modulewrites.pycinto templates/family-root/scripts (source) - L2-2: the not-a-list test accepts doctor exit 3 for a refused root pin, and its docstring predates shape-doctor.py: a root's own
contracts/shape-pin.yamlthat does not read as a pin (a merge conflict, a non-UTF-8 byte, acommit:that is not 40 hex, a deleted file) isINVALID, exit 1, with the git command that puts back the last pin a tool wrote as its NEXT, instead ofCANNOT ANSWER, exit 3, sending the reader togit fetch --allin the standard (#237) #267 (source) - L2-13: no GOOD_KEYS row holds that a bare or absent
source:or barelegs:raises noplan-bad-*(source) - tests/test_doctor_legs_members_next.py (#276, PR #354) never runs the PowerShell form of the git line a Windows reader is handed, and its test that the explanation holds "none of
;,', a backtick or a parenthesis" passes only because pytest's temporary roots need no quoting: under a root with a space the same sentence's keep line isgit -C '<root>/spec' branch NAME, as the file's own spelling test expects #415
Each line above is marked → this issue on its tracking issue. Tick it there too when this closes.
The lines as written on the tracking issues
About a dozen fixtures (in
tests/test_update_shape.py,tests/test_doctor_validator_rows.pyandtests/test_family.py, and adopt and scaffold fixtures) andtemplates/family-root/scripts/siblings.pystill clone a just-pushed local remote by plain path. None has failed in CI. Move them to the helper #467 adds once it lands. From #467.
— #461, body
tests/test_shape_doctor.py:438-452andtests/test_windows_paths.py:80-92loadtemplates/family-root/scripts/bootstrap.pyandsiblings.pywithspec.loader.exec_module, which writestemplates/family-root/scripts/__pycache__/*.pycinto the template tree (ignored, sogit statusis silent). Today nothing reads every file undertemplates/family-rootafter them, so the suite is green by order. #456's CI failed this way for the assembly root (run 38297896001:tests/test_scaffold_leg_path_collisions.pyread a.pycas UTF-8). Direction:sys.dont_write_bytecodearound eachexec_module, as #456'sload()does, ideally one helper intests/conftest.py.
— #461, comment
L2-2:
tests/test_shape_pin_files_not_a_list.py:152(#343) accepts the doctor's exit 3 (returncode in (1, 3)), and the module docstring (:22-25) still says the doctor's verdict is #267's to move. #267 is on main (decff87): a root pin thatread_pinrefuses is INVALID, exit 1, and exit 3 (CANNOT ANSWER) is the regression #267 fixed.ROOT_PIN_FAULTSpins INVALID only forfiles: 5,trueand1.5, so a doctor that answered CANNOT ANSWER forfiles: abc, a quoted string or a mapping would still pass this file. Fix: assertreturncode == 1and the INVALID verdict, and update the docstring. Seen at #343's head 91a4a4f.
— #461, comment
L2-13 (nit, tests): no test holds that a bare or absent
source:orlegs:is not a_plan_key_findingsfinding.
adopt-project.py:4374and:4379(as adopt-project.py:checknames, andexecuterefuses before the work directory is made, a plan whosesource:orlegs:is not a mapping or whoseallow_empty_legs:orpaths:is not a list of whatplanwrites, and asks the same first of apins:that is not a list, so a number or a boolean in any of the four no longer ends both in a traceback andallow_empty_legs: codeis no longer read as four legs (#386) #435 landed them, main f391e58) exemptsource is Noneandlegs is None. That follows the function's docstring: a key that is absent or bare is read as it always was,plan-no-sourceforsource:and the names' own refusal forlegs:.GOOD_KEYS(tests/test_adopt_execute_refusals.py:1020) holds that rule forpins:,allow_empty_legs:andpaths:only.- Two mutants survive all 150 tests in that file. Each drops one
is Nonearm, so a bare key becomesplan-bad-sourceorplan-bad-legs. The behaviour is right today.- Fix: add
source-bare,source-absentandlegs-barerows to the control table. Each asserts noplan-bad-finding and the code main gives.
Activity
brettheap commentedon Oct 14, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-14T16:31:37Z, for #544
Logged in
lanes/log/openRepoShape-3.mdat505ec8e3587142fa65c3f7af972c0e65c3e78394.The three reads (lane-collision-protocol Rule 1):
tests: a branch the remote lacks fails `cloned_just_pushed`, so `-b` …
docs/release-notes/v1.0.0.md: brought up to main b8b7062, so section …
tests: the clone `test_adopt_plan_yaml_quoting.py` makes of the sourc…