Skip to content

Tests: about a dozen fixtures still clone a just-pushed local bare remote by plain path (the #440-class macOS flake), with small test-only fixes alongside #544

Closed

Description

@brettheap

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

Rides along (backlog; tick it here if the same change covers it)

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.py and tests/test_family.py, and adopt and scaffold fixtures) and templates/family-root/scripts/siblings.py still 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-452 and tests/test_windows_paths.py:80-92 load templates/family-root/scripts/bootstrap.py and siblings.py with spec.loader.exec_module, which writes templates/family-root/scripts/__pycache__/*.pyc into the template tree (ignored, so git status is silent). Today nothing reads every file under templates/family-root after 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.py read a .pyc as UTF-8). Direction: sys.dont_write_bytecode around each exec_module, as #456's load() does, ideally one helper in tests/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 that read_pin refuses is INVALID, exit 1, and exit 3 (CANNOT ANSWER) is the regression #267 fixed. ROOT_PIN_FAULTS pins INVALID only for files: 5, true and 1.5, so a doctor that answered CANNOT ANSWER for files: abc, a quoted string or a mapping would still pass this file. Fix: assert returncode == 1 and 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: or legs: is not a _plan_key_findings finding.

— #461, comment

Activity

  1. added this to the v1.1.0 milestone on Oct 14, 2026
  2. brettheap commented on Oct 14, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-14T16:31:37Z, for #544

    Logged in lanes/log/openRepoShape-3.md at 505ec8e3587142fa65c3f7af972c0e65c3e78394.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#544:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#544"`, kept where the row or its body names `#544`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `544` 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