Skip to content

fix(ci): stop caching hand-written docs as build outputs j:KIT-6381 - #8708

Merged
jfcere-coveo merged 1 commit into
mainfrom
KIT-6381-turbo-docs-outputs
Oct 16, 2026
Merged

jfcere-coveo merged 1 commit into
mainfrom
KIT-6381-turbo-docs-outputs

Conversation

@jfcere-coveo

@jfcere-coveo jfcere-coveo commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

https://coveord.atlassian.net/browse/KIT-6381

Motivation

On a docs-only PR, CI reverted the edited docs and committed the revert as "Add generated files". Seen on #8706 for packages/thermidor/docs/architecture.md.

Root Cause

The root build task excludes **/*.md from its inputs but listed docs/** in its outputs. A docs-only change keeps the build hash equal to main's, so CI gets a cache hit, Turbo restores main's cached docs/ over the edited files, and the build-missing job (git add .) commits the result. The same restore also overwrites uncommitted docs edits locally.

Changes

  • Remove docs/** from the root build outputs.

No package's build task writes to docs/, which only holds hand-written docs (ADRs, thermidor docs). Generated docs come from tasks that declare their own outputs and are unaffected: build:typedoc (docs/**, !docs/adr/**, used by the CD typedoc sites), quantic build:doc (docs/out/**), and relay's typedoc JSON (lib/docs/, under lib/**).

Outputs should only cover files a task generates; a glob that overlaps tracked sources lets a cache restore overwrite them.

Validation

  • turbo run build build:typedoc build:doc --dry=json on thermidor, headless, auth, relay, atomic and quantic: build outputs no longer include docs/**; the docs-generating tasks keep theirs.
  • Local repro on @coveo/thermidor (--cache=local:rw): build, append a line to docs/architecture.md, build again. With main's turbo.json the cache hit wipes the line; with this change the cache hit keeps it.
  • oxfmt --check passes; generate:turbo-lint-inputs produces no diff.

Expect a one-time miss on build caches, since the task's outputs are part of its hash.

Checklist

The root build task excluded **/*.md from its inputs but listed docs/**
in its outputs. A docs-only change kept the build hash, so a cache hit
restored main's docs/ over the edited files, and the build-missing job
committed the revert as "Add generated files".

No package's build task writes to docs/; generated docs come from
build:typedoc, quantic's build:doc and relay's lib/docs, which declare
their own outputs. Remove docs/** from the root build outputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jfcere-coveo
jfcere-coveo requested review from a team, fbeaudoincoveo, louis-bompart and y-lakhdar and a balanced review from Copilot and removed request for Copilot October 16, 2026 15:42
@changeset-bot

changeset-bot Bot commented Oct 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: abaa61c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@svcsnykcoveo

svcsnykcoveo commented Oct 16, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@pkg-pr-new

pkg-pr-new Bot commented Oct 16, 2026

Copy link
Copy Markdown
@coveo/atomic

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic@8708

@coveo/atomic-hosted-page

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic-hosted-page@8708

@coveo/atomic-legacy

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic-legacy@8708

@coveo/atomic-react

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic-react@8708

@coveo/auth

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/auth@8708

@coveo/bueno

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/bueno@8708

coveo.analytics

npm i https://pkg.pr.new/coveo/ui-kit/coveo.analytics@8708

@coveo/create-atomic

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/create-atomic@8708

@coveo/create-atomic-component

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/create-atomic-component@8708

@coveo/create-atomic-component-project

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/create-atomic-component-project@8708

@coveo/create-atomic-result-component

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/create-atomic-result-component@8708

@coveo/create-atomic-rollup-plugin

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/create-atomic-rollup-plugin@8708

@coveo/create-ui

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/create-ui@8708

@coveo/headless

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/headless@8708

@coveo/headless-react

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/headless-react@8708

@coveo/quantic

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/quantic@8708

@coveo/relay

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/relay@8708

@coveo/shopify

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/shopify@8708

@coveo/thermidor

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/thermidor@8708

@coveo/atomic-angular

npm i https://pkg.pr.new/coveo/ui-kit/@coveo/atomic-angular@8708

commit: abaa61c

@chromatic-com

chromatic-com Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Tip

All tests passed and all changes approved!

🟢 UI Tests: 439 tests unchanged
🟢 UI Review: 471 stories published -- no changes
Storybook icon Storybook Publish: 471 stories published

@github-actions

Copy link
Copy Markdown
Contributor

🔗 Scratch Orgs ready to test this PR:

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow configuration change addresses documentation overwrites while preserving dedicated documentation-task caching.

0 open findings

What changed in this PR

Prevents build-cache restores from overwriting hand-written documentation, addressing the CI revert reported in #8706.

Changes:

  • Removes docs/** from root build outputs.
  • Leaves dedicated documentation-generation task outputs unchanged.
File Description
turbo.json Stops caching hand-written docs as build outputs.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@jfcere-coveo
jfcere-coveo added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit f779536 Oct 16, 2026
100 checks passed
@jfcere-coveo
jfcere-coveo deleted the KIT-6381-turbo-docs-outputs branch October 16, 2026 16:12

This branch was successfully deployed

2 active deployments
PR Artifacts — abaa61cf Deployed Oct 16, 2026 by jfcere-coveo via Run Quantic E2E tests / Merge Playwright reports #20093
pr-workflows — abaa61cf Deployed Oct 16, 2026 by jfcere-coveo via label #9729
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants