Repository navigation
fix(docs): hash the ui i18n files the docs tests read - #3563
Merged
Merged
Conversation
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 `^...`.
…urbo-inputs-20260927
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.