Repository navigation
Commit a0d03a0
[Chore] Correct Turbo cache inputs and add a build cache input contract (Zoo-Code-Org#2324)
* fix(ci): correct Turbo cache inputs for webview and extension builds
- Restore default ($TURBO_DEFAULT$) build inputs; the restrictive src/**
list omitted package-root entry files such as the webview index.html.
- Hash shared extension source and src/package.json into the webview
build, and shared source into webview typechecking, via $TURBO_ROOT$
inputs (plain ../.. globs are silently dropped by Turbo).
- Declare PKG_RELEASE_CHANNEL and VSCODE_TEXTMATE_DEBUG as webview build
env inputs, and PKG_RELEASE_CHANNEL and POSTHOG_API_KEY for the
extension bundle; both are embedded in build output by esbuild/vite.
- Hash repo-root README, CHANGELOG, LICENSE, .env, and webview audio
assets into the extension bundle; vsce packages copies of these that
the old dist-only vsix inputs never invalidated.
- Couple check-types to @roo-code/types#build; consumers typecheck
against the types package source, so its changes must invalidate.
* test(ci): add deterministic build cache input contract
Add src/scripts/verify-build-cache-inputs.mjs, following the existing
coverage cache-input contract pattern: a detached git worktree plus
turbo --dry=json probes assert that shared source, the webview entry
HTML, package version, repo-root packaging files, webview audio assets,
and release/debug env inputs invalidate the right tasks; identical
inputs stay reusable; unrelated env stays out of every hash.
Wire the contract into code-qa on both OS lanes so a stale webview or
extension bundle is never restored as a cache hit.
* fix: address Turbo cache input review findings
* fix: address Turbo cache input review findings
* fix(build): strengthen cache contract and exclude .env from cached outputs
* fix(build): assert Turbo scheduling dependencies in cache contract
---------
Co-authored-by: Roomote <[email protected]>
Co-authored-by: Elliott de Launay <[email protected]>1 parent 1b9cb7d commit a0d03a0
9 files changed
Lines changed: 491 additions & 123 deletions
File tree
- .github/workflows
- src
- scripts
- webview-ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
250 | 255 | | |
251 | 256 | | |
252 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
0 commit comments