Skip to content

fix(docs): hash the ui i18n files the docs tests read - #3563

Merged
yannickmonney merged 7 commits into
mainfrom
fix/docs-test-hashes-ui-i18n
Sep 28, 2026
Merged

yannickmonney merged 7 commits into
mainfrom
fix/docs-test-hashes-ui-i18n

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Docs translation tests read the shared UI catalogs and locale test framework outside their workspace. These files now participate in the docs test hash, so edits invalidate the cached result. The docs and CLI input lists also retain the inherited root inputs through $TURBO_EXTENDS$, alongside $TURBO_DEFAULT$.

The guards inspect actual Turbo dry-run input hashes and enforce those prefixes. Repository guidance names the platform, docs and CLI guards and records the remaining consumer-workspace gaps.

Validation at a8dd63e168fe45b93fe80f25608e6819905ca8ff: 171 docs tests, 8 CLI input guards and 12 platform input guards pass freshly under Bun 1.4.2. The only main-integration conflict was the repository guidance paragraph; it retains both the already merged platform guidance and this PR's docs/CLI details. Earlier controlled catalog/rule edits changed the docs task hash and restoring them restored the original hash. Current-head CI remains pending.

The platform test task still read files outside its workspace that its
Turbo hash did not cover: the shipped catalog (configs/platform/system),
the builtin catalog the provisioning test seeds from
(configs/platform/custom), the knowledge-db migrations ddl.test.ts
applies, compose.yml, compose.dev.yml, the sandbox spawner config and
the sandbox runtime build script. A PR that edited only one of them
replayed the platform suite from the cache.

The list comes from tracing every file the server and pii projects open
during a full run. The test:ui and test:browser suites read nothing
outside the workspace except workspace-package sources.

A new guard asks `turbo --dry=json` whether every tracked file under
each declared path is hashed, and that the workspace itself still is.
The repo contract now names the guard, and records that sources of a
workspace package the task depends on stay unhashed, because no test
task depends on `^...`.
The docs i18n suites run @tale/ui's i18n test framework (checks,
per-locale rule data, glossary) and resolve docs.* keys against the
packages/ui catalogs, none of which @tale/docs#test hashed: an edit
there alone replayed the cached docs verdict. List both as
$TURBO_ROOT$ inputs and extend the turbo-inputs guard to them.

Open every workspace input list in docs and cli with $TURBO_EXTENDS$
as services/platform does, so a root task that gains inputs keeps
them, and fold the two copies of the out-of-workspace input rule in
.agents/repo.md into one recipe. Both guards now assert that prefix
and fail clearly when turbo prints no JSON or cannot be spawned.
@yannickmonney
yannickmonney merged commit 44e0dcf into main Sep 28, 2026
56 checks passed
@yannickmonney
yannickmonney deleted the fix/docs-test-hashes-ui-i18n branch September 28, 2026 07:29
yannickmonney added a commit that referenced this pull request Sep 28, 2026
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.

1 participant