Skip to content

build: let cacheless Netlify deploys proceed - #483

Merged
kabiroberai merged 1 commit into
xtool-org:mainfrom
ZainnQureshii:netlify-cacheless-build
Nov 29, 2026
Merged

kabiroberai merged 1 commit into
xtool-org:mainfrom
ZainnQureshii:netlify-cacheless-build

Conversation

@ZainnQureshii

@ZainnQureshii ZainnQureshii commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

At netlify.toml:9, the old ignore command diffs the current commit against itself when the two refs match. It returns 0, so Netlify skips the docs build and can keep serving stale instructions. The updated command returns 1 for equal refs so Netlify builds. For different refs, the existing Git diff still checks Documentation and netlify.toml for changes. This is the repository's only ignore hook that uses the two refs. Netlify ignore commands

“When a build runs without cache, CACHED_COMMIT_REF will be the same as the COMMIT_REF.” Netlify build environment variables

Refs #170

The cache ref from the deploy reported in #170 is unknown, so the cause of that skip remains unconfirmed.

How was it tested?

  • A temporary Bats file (not committed) on macOS. It read and ran the configured hook from Documentation/. On main, the equal-ref case returned 0 instead of 1. With the patch, all six cases passed, including the skip for distinct refs with identical docs and config.
  • make lint SWIFTLINT_FLAGS='--no-cache --strict' passed with SwiftLint 0.65.1 and zero violations.
  • git diff --check origin/main -- netlify.toml passed. The TOML parsed, and Bash accepted the hook syntax.

No live Netlify build was run.

AI tool usage

How much of the code in this PR was AI-assisted? (check one)

  • 0 - No AI was used to write code
  • 1 - I was assisted by AI in writing code. I reviewed the finished result.
  • 2 - I set the AI going and left it to it; nobody has read the result - no review, or AI review only

Draft PR.

Prepared with AI assistance (Codex and Claude Code) and reviewed with GitHub Copilot.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated build checks so changes to documentation or build configuration can trigger a Netlify build, even when other commit conditions would otherwise skip it. This helps ensure published documentation and deployment settings stay in sync with the latest changes.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Netlify build ignore condition now checks whether commit refs differ and whether Documentation or netlify.toml has changes.

Changes: Netlify build condition

Layer / File(s) Summary
Build ignore condition
netlify.toml
The ignore condition now requires different commit refs and no changes in Documentation or netlify.toml.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Merge Risk: Minimal · up to ae546

This change lets Netlify deploys that have no cache proceed instead of being skipped. Documentation builds are still skipped when nothing relevant changed. The risk is low and the change is easy to revert.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "build: let cacheless Netlify deploys proceed" matches the single change in the changeset. The Netlify ignore condition in netlify.toml is changed so that cacheless deploys, where the cached…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "build: let cacheless Netlify deploys proceed" matches the single change in the changeset. The Netlify ignore condition in netlify.toml is changed so that cacheless deploys, where the cached and current commit refs match, no longer skip the docs build. The title names the main change and the component (build) in a short, specific sentence.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e62688fc-6c66-4ff2-826d-f5a8a4c43b62
Commits

Reviewing files that changed from the base of the PR and between 9f76637 and ae546f3.

Files selected for processing: 1

  • netlify.toml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@kabiroberai kabiroberai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

@kabiroberai
kabiroberai marked this pull request as ready for review November 29, 2026 13:59
@kabiroberai
kabiroberai enabled auto-merge (squash) November 29, 2026 14:04
@kabiroberai
kabiroberai merged commit a637309 into xtool-org:main Nov 29, 2026
11 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.

2 participants