opencode/turbo.json
Filip Hejmowski 77b8f1dfc7 fix(ci): hash every test task's workspace closure and cache Turbo on Windows
A test task's hash only covered its direct dependencies' build tasks. tui
and script have no build task, so core, codemode, plugin-browser and ui
never reached cli#test's hash, and Linux replayed cached cli test passes
from the runner's remote cache for commits that changed core. Every test
task now also depends on a transit task, which runs nothing but folds the
whole workspace closure into its hash. The root package.json is a global
dependency, so a Bun upgrade through packageManager invalidates results.

Windows unit jobs had no Turbo cache at all. Restore one keyed by week on
Windows, save it from pushes to dev, and skip it on manual runs.
2026-10-15 14:57:16 +02:00

100 lines
2.4 KiB
JSON

{
"$schema": "https://v2-8-13.turborepo.dev/schema.json",
"globalDependencies": [
"patches/**",
"bunfig.toml",
".npmrc",
".github/actions/setup-bun/**",
".github/workflows/test.yml",
"package.json"
],
"globalEnv": ["CI", "OPENCODE_DISABLE_SHARE"],
"globalPassThroughEnv": ["CI", "OPENCODE_DISABLE_SHARE"],
"tasks": {
"typecheck": {},
"@opencode/cli#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"test:components": {
"outputs": [],
"cache": false
},
"@opencode/enterprise#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"@opencode/sdk#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"@opencode/server#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"@opencode/simulation#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"@opencode/tui#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"build": {
"dependsOn": [],
"outputs": ["dist/**"]
},
"transit": {
"dependsOn": ["^transit"]
},
"@opencode/ai#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/codemode#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/core#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/function#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/desktop#test": {
"outputs": [],
"cache": false
},
"@opencode/httpapi-codegen#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/server#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/cli#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/tui#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/latex#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/app#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/ui#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/session-ui#test": {
"dependsOn": ["^build", "transit"],
"outputs": []
},
"@opencode/sdk#verify:package": {
"outputs": []
}
}
}