Skip to content

Seam upstream check: fetch unfiltered on CI (12 s / 35 MB), untested refusal and retry (from #689 reviews) #698

Closed

Description

@scuttletoby

Follow-ups from the two reviews of #689 (both SAFE): #689 (comment) and #689 (comment)

Major

  1. The upstream fetch is not filtered on CI. The script picks the filtered path from extensions.partialClone, which fork-checks' checkout never sets, so CI takes the unfiltered fetch: measured 12.5 s and +35 MB, not the ~1 s / 0.5 MB in the PR. It only runs on a PR that moves a "pending" file to "files". Fix: always fetch with --filter=tree:0 (or blob:none), and add a test that runs the filtered path.
  2. No test pins the "update the branch" refusal (branch does not contain upstream's merge-base); removing it leaves all tests green. The retry and the filter are also unpinned.

Minor

  • Two 120 s fetch attempts inside a 5-minute job: a slow upstream turns the check red instead of the promised warning (fails closed). Cap the total below the job limit.
  • Deleting main's .github/fork-upstream.json or pointing it at a wrong repository quietly turns the check into a note or skip; a skip shows only as a warning annotation on a green run.
  • file:// is accepted in main's file; only https:// is needed outside tests.
  • A shallow clone gets a misleading warning; a run by hand leaves the upstream ref behind.
  • The PR body of Seam check: hold a pending file moved to "files" to upstream's lines in CI (#552) #689 was out of date after its fix round.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions