Skip to content

test_the_per_tool_call_path_is_not_touched silently self-skips on every pull_request run, so the byte-pin guard has never run during review #442

Closed

Description

@fdaviddpt

Found by lane 440 and independently by its audit spawn, both confirmed against real CI job logs. Not fixed there: closing it needs a CI checkout decision, not a test change.

Symptom

tests/test_case_divergence_298.py::test_the_per_tool_call_path_is_not_touched prints origin/main not available (tests/test_case_divergence_298.py:684) and skips on every pull_request-triggered run. It executes only on push runs against main.

So the guard that exists to catch an unsanctioned change to the per-tool-call path has never once run while a change was reviewable. It runs after the merge, when the only remedy left is another pull request.

Location

tests/test_case_divergence_298.py:684, the origin/main not available self-skip, and whatever fetch-depth / ref configuration .github/workflows/tests.yml gives actions/checkout.

Mechanism

actions/checkout fetches differently for push and pull_request events. On a pull request it checks out a merge ref without an origin/main branch ref, so the guard cannot resolve its comparison base and skips itself rather than failing.

The skip is honest in isolation -- it says it could not compare. The defect is what that produces in aggregate: a green pull request whose most consequential guard was never exercised, indistinguishable from one where it passed.

Observed, not reasoned -- two instances read directly from job logs:

That asymmetry is exactly how #429's sanctioned-divergence allowance (PR #436) reached main and turned it red: the guard that would have caught it was skipping in the only place it could still have been caught cheaply.

What would settle it

Either give the workflow enough history for origin/main to resolve on pull_request runs -- a fetch-depth change, or an explicit git fetch origin main step -- or make the unavailable-base case fail rather than skip, so a guard that cannot do its job says so loudly.

The second is closer to this repository's own convention (a check that cannot run must not render as one that passed), but it will break every pull request until the first is done, so the order matters: fetch first, then tighten.

Worth checking at the same time whether any other guard in the suite resolves origin/main and shares this exposure -- a grep for the ref name across tests/ answers it.

Activity

  1. added
    priority:high
    on Aug 29, 2026
  2. self-assigned this
    on Aug 29, 2026
  3. added 2 commits that reference this issue on Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:high

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions