Skip to content

Don't write the build stamp on CI builds - #3981

Merged
Mpdreamz merged 1 commit into
mainfrom
fix/timestamp-checks
Aug 31, 2026
Merged

Don't write the build stamp on CI builds#3981
Mpdreamz merged 1 commit into
mainfrom
fix/timestamp-checks

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

The assembler wrote .assembler-build-stamp.json into the output directory unconditionally after every successful build, including CI builds. The file was then deployed to staging, where docs-internal-workflows found it and failed.

Affects: Assembler builds, Deploys & previews

Why

The build stamp was introduced in #3964 purely to speed up local dev rebuilds — when inputs haven't changed, the next local run can skip the build. That optimisation has no value on CI, where effectiveAssumeBuild is already false and the stamp check is skipped entirely. Writing the file on CI serves no purpose, but it lands in the assembled output and reaches the deploy step, which does not expect it.

What

Stamp write gated on effectiveAssumeBuild

The write in AssemblerBuildService previously ran whenever the build succeeded and was not an Elasticsearch-only export. Adding && effectiveAssumeBuild to that condition makes the stamp a purely local artefact. On CI, effectiveAssumeBuild resolves to false (unless --assume-build is passed, which is already rejected on CI with an exception), so the stamp is never written and never appears in deployed output.

The read path is unaffected — it already handles a missing file gracefully by returning null and triggering a full rebuild.

The stamp existed only to speed up local dev rebuilds, but writing it
unconditionally meant it landed in the assembled output directory and
was deployed to staging. The docs-internal-workflows then found the
unexpected file and failed.

Gate the write behind `effectiveAssumeBuild`, which is already `false`
on CI, so the stamp is produced only for local runs where the skip
optimisation is actually used.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Mpdreamz
Mpdreamz requested a review from a team as a code owner August 31, 2026 15:01
@Mpdreamz Mpdreamz added the bug label Aug 31, 2026
@Mpdreamz
Mpdreamz requested a review from theletterf August 31, 2026 15:01
@Mpdreamz Mpdreamz added the bug label Aug 31, 2026
@github-actions

Copy link
Copy Markdown

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/3981/

@Mpdreamz
Mpdreamz merged commit 2d972e2 into main Aug 31, 2026
36 checks passed
@Mpdreamz
Mpdreamz deleted the fix/timestamp-checks branch August 31, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant