mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 13:44:03 +00:00
The pin in this PR was `cc5534492`, the head of GreptimeTeam/datafusion#37's PR branch rather than a commit on `greptimedb-55.1-thin-fork`. Nothing enforced that, so bumping to the branch head silently dropped #37 and GT's `partition_pruning_cast` regression came back. Add `scripts/check-datafusion-pin.sh` and a job in `check-git-deps.yml` that fails when the pinned revision is not an ancestor of an allowed branch. The branch is configured per workflow through `DATAFUSION_ALLOWED_BRANCHES`, so a branch that has to pin somewhere else changes the value instead of the check. The job runs on `main` and `release/v*` whenever `Cargo.toml` or the script changes. It fails closed on ambiguity: several different pins, an unreachable API, or a commit that has diverged from the branch all fail. Signed-off-by: discord9 <discord9@163.com>