Skip to content

fix(paths-gate): fall back to full CI when the diff can't be computed - #331

Merged
Shinrai merged 1 commit into
nextfrom
fix/paths-gate-no-common-ancestor
Sep 28, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/paths-gate-no-common-ancestor

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(paths-gate): fall back to full CI when the diff can't be computed (63d87e6)

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

The paths gate failed the whole CI run when GET /compare/{before}...{after}
returned `404 No common ancestor`, which happens on every push that rewrites
a ref's history (e.g. dev-trunk repos force-pushing a new root commit over
master/next/hotfixes).

The gate now emits docs_only=false plus a ::notice:: naming the reason, and
never fails the run because of the comparison, when:
- the push has a zero or missing `before` SHA;
- the compare API errors (no common ancestor, `before` not found after a
  force-push, or any other status);
- the compare succeeds but `before` is not an ancestor of `after`
  (status diverged/behind), where a three-dot diff describes the wrong change
  set — a force-push back to an older commit diffed as empty and was
  treated as docs-only;
- listing a pull request's files fails.

Behaviour is unchanged when the comparison works. Adds action.test.mjs
(subprocess + mocked fetch) covering these cases and wires it into npm test.

Fixes #330
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: config Changes to repository or project configuration files labels Sep 28, 2026
@Shinrai

Shinrai commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Resolves #330 — closed when this ships to the default branch.

@Shinrai
Shinrai merged commit d97b163 into next Sep 28, 2026
17 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/paths-gate-no-common-ancestor branch September 28, 2026 13:25
cldmv-bot Bot added a commit that referenced this pull request Sep 28, 2026
…mpty…

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- #331
  - fix(paths-gate): fall back to full CI when the diff can't be computed (63d87e6)

- #328
  - fix(bundle-size): normalize ./ dist_paths and prune the measure walk (5e6e1c1)

- #326
  - fix(bundle-size): treat bundle-size.yml as standard v4 and warn on empty dist_paths (085f941)

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- #326
  - test(bundle-size): cover exact-path, glob and zero-match dist_paths (4db8fec)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: config Changes to repository or project configuration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant