Commit eb0a0ae
fix(ci): use merge base in quick pipelines to detect changed problems (#1994)
### Description
Fix the "Detect changed problems" step in the quick CI pipelines to diff
against the merge base rather than the tip of the target branch.
Previously, `git diff --name-only FETCH_HEAD HEAD` compared the PR's
HEAD to the current tip of `development`. Because most PRs branch off an
older commit, any problem files merged into `development` after the
branch point also appeared as "changed" — causing the quick pipeline to
build and test far more problems than the PR actually touched. The fix
fetches enough history (`--deepen=100`) and uses `git merge-base
FETCH_HEAD HEAD` to find the true common ancestor, then diffs only from
that point to HEAD.
### Related issues
N/A
### Checklist
_Before this pull request can be reviewed, all of these tasks should be
completed. Denote completed tasks with an `x` inside the square brackets
`[ ]` in the Markdown source below:_
- [x] I have added a description (see above).
- [x] I have added a link to any related issues (if applicable; see
above).
- [x] I have read the [Contributing
Guide](https://github.com/quokka-astro/quokka/blob/development/CONTRIBUTING.md).
- [x] I have added tests for any new physics that this PR adds to the
code.
- [x] *(For quokka-astro org members)* I have manually triggered the GPU
tests with the magic comment `/azp run`.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f4323d0 commit eb0a0ae
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments