Skip to content

chore/ci: Add DiffTour link to PRs - #486

Merged
BolajiOlajide merged 2 commits into
mainfrom
add-diff-tour-workflow-217fef48-5ee3-4e0c-9374-9d6eb500736c
Sep 24, 2026
Merged

BolajiOlajide merged 2 commits into
mainfrom
add-diff-tour-workflow-217fef48-5ee3-4e0c-9374-9d6eb500736c

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Adding the shared sourcegraph/actions/diff-tour action to comment on PRs with the Diff Tour link. Please make any needed improvements to the shared action, so all of our repos using it benefit.

Created by a Sourcegraph agentic batch change.

Adding the shared sourcegraph/actions/diff-tour action to comment on PRs with
the Diff Tour link. Please make any needed improvements to the shared action,
so all of our repos using it benefit.

Co-authored-by: marcleblanc2 <marcleblanc2@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

@marcleblanc2
marcleblanc2 enabled auto-merge (squash) September 23, 2026 01:22
@marcleblanc2
marcleblanc2 requested a review from a team September 23, 2026 01:22
marcleblanc2 added a commit that referenced this pull request Sep 23, 2026
## Why

The SCIP workflow pinned
`actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e`, which is
**v1 from November 2019** (the old runner-plugin implementation). Its
`fetch-depth` defaults to *no limit*, so every push fetched every branch
and tag (~17.5k objects), and it fetches `refs/heads/*` rather than the
commit under test.

That caused [this
failure](https://github.com/sourcegraph/deploy-sourcegraph-k8s/actions/runs/35804998910/job/107003696130)
on #486: the branch was force-pushed one second after the first push,
the fetch picked up the new tip only, and checkout of the original
commit died with `fatal: unable to read tree`.

## What

Bump to `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1`, the current release.

- Defaults to `fetch-depth: 1`, so the job clones shallow.
- Fetches the exact `github.sha`, which GitHub still serves after a
force-push, so the race goes away.

`scip-go` and `src code-intel upload` only need the working tree and
`git rev-parse HEAD`; neither needs history.

## Test plan

The SCIP workflow runs on push to this branch; confirm the checkout step
logs `--depth=1` and the job passes.

Co-authored-by: Amp <amp@ampcode.com>
@BolajiOlajide
BolajiOlajide merged commit 30b7059 into main Sep 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants