Skip to content

Buildkite: Skip PR builds when there are no doc file changes - #3352

Merged
reakaleek merged 1 commit into
masterfrom
cursor/a8b7c368
Aug 7, 2026
Merged

Buildkite: Skip PR builds when there are no doc file changes#3352
reakaleek merged 1 commit into
masterfrom
cursor/a8b7c368

Conversation

@reakaleek

@reakaleek reakaleek commented Aug 7, 2026

Copy link
Copy Markdown
Member

What

  • Add a conf.yaml-based path check so docs-build-pr can exit early when a product PR has no doc-related file changes
  • Apply this to all repos on the default build path (including Kibana, search-ui, integration-docs, and elastic-serverless-forwarder)
  • Add tests for path collection and Kibana legacy branch coverage (8.x only, no 9.x)

Why

  • Some product PRs to legacy branches change only application code but still trigger a full docs build
  • Legacy AsciiDoc docs are only built through 8.x, so builds for 9.x and main should skip; this change also skips when there are no doc file changes on legacy branches

Notes

  • Repos with specialized path rules in build_pr.sh are unchanged
  • If docs_paths.pl cannot read conf.yaml, the build still runs (fail open)

Co-authored-by: Cursor <cursoragent@cursor.com>
@reakaleek
reakaleek requested a review from a team as a code owner August 7, 2026 12:00
@reakaleek
reakaleek requested a review from cotti August 7, 2026 12:00
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@reakaleek
reakaleek requested a review from theletterf August 7, 2026 12:00
@reakaleek reakaleek changed the title Buildkite: Skip Kibana PR builds with no doc changes Buildkite: Skip PR builds when there are no doc file changes Aug 7, 2026
@reakaleek
reakaleek enabled auto-merge (squash) August 7, 2026 12:10
@reakaleek
reakaleek merged commit 8e4b36e into master Aug 7, 2026
4 of 5 checks passed
@reakaleek
reakaleek deleted the cursor/a8b7c368 branch August 7, 2026 12:17
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