Aurélien Pupier created CAMEL-24876:
---------------------------------------
Summary: Sometimes the merge base is not found on Pull requests
Key: CAMEL-24876
URL: https://issues.apache.org/jira/browse/CAMEL-24876
Project: Camel
Issue Type: Task
Components: build system
Affects Versions: 4.23.0
Reporter: Aurélien Pupier
> One observation while checking this, not caused by the PR but worth a
> follow-up: on a current fork PR to `main` (#26628, run 35526400154, `build
> (25)`), the existing step takes ~7 minutes (4:48 for the first `--deepen=50`
> alone), goes through 50 → 200 → 1000 → full history, never finds a merge
> base, and Scalpel silently does not run. So for fork PRs - most contributor
> PRs - this step is currently pure cost. This change makes that path much
> cheaper but does not fix it; my guess is that the PR head commits
> (`refs/pull/N/head`) are never fetched, so `merge-base` on the merge commit
> cannot resolve. Fetching `refs/pull/${{ github.event.pull_request.number
> }}/head` at the same depth next to the base fetch would likely make Scalpel
> work for fork PRs too.
effectively something to look more closely.
Sounds when it is both on a fork and not upt to date with main branch because
the next build of it also on same fork found it in 50 iteration
https://github.com/apache/camel/actions/runs/35579824514/job/106270040485#step:3:23
--
This message was sent by Atlassian Jira
(v8.20.10#820010)