Skip to content

fix(ci): compare check-plugins' stale-version step against the merge base #8507

Closed

Description

@kyle-sexton

Problem

check-plugins' STALE VERSION step fails a PR that is only behind main. It counts main's newer shared-file syncs (lib/prerequisites.mjs, lib/session-bridge/* and their plugin copies) as the PR's own changes. Examples: #8467 changed 4 files, none of them shared, and was 27 commits behind main; it failed with dozens of "changed vs origin/main but , in fragment mode, has no fragment" lines (run 39299393562). #8497 and #8489 failed the same way. Updating each PR from main clears the failure, but every update reruns full CI and both AI review lanes, which spends hosted-job concurrency and delays the merge.

Fix

Compare against the merge base (origin/main...HEAD, three dots), not the tip of main, wherever the step decides what "changed vs origin/main".

Acceptance

  • A test where a branch behind main that changes no shared file passes the step, when main has since changed a shared file and its copies.
  • A test that a branch which itself changes a shared file with no fragment still fails.

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Oct 19, 2026
  2. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Understood: check-plugins' STALE VERSION step diffs against the tip of origin/main, so a PR that is only behind main gets main's newer shared-file syncs counted as its own changes. It then fails with "no fragment" lines. You propose diffing against the merge base (origin/main...HEAD) and have given two acceptance tests: a behind-main branch that touches no shared file passes, and a branch that changes a shared file without a fragment still fails. The report is clear enough to act on. I found no duplicates. A maintainer will confirm the classification.

    Automated triage. A maintainer reviews it.

  3. added and removed
    needs-triage
    on Oct 19, 2026
  4. added
    status: confirmed
    agent-ready
    on Oct 20, 2026
  5. added
    needs-human
    and removed
    agent-ready
    on Oct 20, 2026
  6. melodic-automation-lanes commented on Oct 20, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped partway through this issue and needs a person.

    Why, in the run's own words:

    Could not locate the check-plugins STALE VERSION step. This run has no Grep or Glob tool, Bash denied grep, and a delegated Explore agent was denied the same way. Guessed paths (scripts/check-plugins.sh, scripts/check-plugins.mjs, scripts/check-plugins, .github/workflows/ci.yml) do not exist. Nothing was edited.

    What the run says it did not do:

    • Change the stale-version step to diff against the merge base (origin/main...HEAD) and add the two tests the issue asks for; the step's source file could not be found with the available tools.
    • /home/runner/work/_temp/lane-checks/bin/check-changelog-fragments and check-affected were not run: Read was refused on them and Bash allows only the named verify wrappers.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/39461500839

    To retry, remove needs-human and add agent-ready again.

  7. added
    agent-ready
    and removed
    needs-human
    on Oct 20, 2026
  8. removed
    agent-ready
    on Oct 21, 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

    status: confirmed

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions