Skip to content

A handoff that misses one of its three mandatory writes always leaves the lane SWAPPING, so the #91 lifecycle case in tests/test_lane_helpers.sh stops failing now and then #253

Open

Description

@brettheap

Goal: a handoff that misses one of its three mandatory writes leaves the lane SWAPPING every time, and a later reconcile always reads it as an interrupted swap. Then case 6 of the #91 lifecycle section of tests/test_lane_helpers.sh stops failing now and then.

  • The case starts at tests/test_lane_helpers.sh:14279 on main babd9fe: "one mandatory write missing leaves the lane SWAPPING, honestly". Its asserts are at :14287 and :14290.

Where this comes from. Lane openRepoTools-3 owns the lane tooling, and filed this on Brett Heap's word, verbatim: "yes, file it in v1.2.0" (2026-10-18).

The failure: CI run 39142719296, job tests-no-submodule (117720256301), 2026-10-18T16:34Z.

  • That run was a workflow_dispatch of branch 006-pr1-ci at 755ff9d, a candidate tree for Releases: annotated tags, release/vX.Y branches, and openrepotools on TestPyPI and PyPI from v1.1.0 #228's PR 1.
  • tests/test_lane_helpers.sh failed (4627 passed, 2 failed, 0 skipped, 0 pending):
    FAIL …but the lane stays SWAPPING, because one of the three mandatory writes did not land
           expected [SWAPPING], got [RUNNING]
    FAIL …which a later session reads as an interrupted swap and not as a clean handoff
           expected [interrupted-swap], got [ungraceful-stop]
    
  • The case's two earlier asserts passed. The handoff whose handoff file cannot be found still exited 0, and still printed READY — restart with:. So lane-handoff ran to its end, and lane-state read the lane as RUNNING afterwards.

Why it is a flake, not that tree's doing:

  • The tests job of the same run (117720255930) passed the same suite on the same tree.
  • Main's own runs at 586dea2 (39136212758) and 87a5e9d (39122197298) passed it. So did the tests-no-submodule jobs of runs 39142632314, 39139000380 and 39138374823.
  • 755ff9d changes none of the lane tooling or its tests. It differs from 586dea2 only in openRepoTools, pyproject.toml, src/openrepotools/, the package tests, tests/test_repo_hygiene.py, tests/test_openrepotools_command.py, and specs.

Not yet known: the cause. Either the SWAPPING write did not land, or a later read of the lifecycle answered RUNNING.

Done when:

  • the cause is named;
  • the case passes in many repeated runs of section 6, with and without the submodule;
  • the case still fails against a lane-handoff that writes no SWAPPING when one of its three mandatory writes fails.

Lane: openRepoTools-3

Activity

  1. added this to the v1.2.0 milestone on Oct 18, 2026
  2. brettheap commented on Oct 20, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-10-20T23:03:16Z, for #253

    Logged in lanes/log/openRepoTools-5.md at 9f042baa13f24d0fd9e040dfd3fc82c6368f0842.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#253:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#253"`, kept where the row or its body names `#253`:
    262	openRepoTools becomes the openrepotools package: pipx installs the wheel with the whole payload, --install leaves pipx's link to pipx, --version names the release, and every count line says where the other commands come from (#228, PR 1 of 4)	006-release-pypi	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `253` as a whole token:
       none
    
  3. added a commit that references this issue on Oct 22, 2026
  4. modified the milestones: v1.2.0, v1.2.1 on Nov 8, 2026
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