Skip to content

Commit

Permalink
Bust Turborepo cache when the test validator version changes (#2911)
Browse files Browse the repository at this point in the history
Closes #2718.


# Test Plan

```
pnpm turbo test:unit:node --filter=@solana/rpc-spec
pnpm turbo test:unit:node --filter=@solana/rpc-spec
nano .agave/active_release/version.yml  # Change version
pnpm turbo test:unit:node --filter=@solana/rpc-spec
```

Observe that first call is uncached, second is cached, and third is uncached.
  • Loading branch information
steveluscher authored Jul 8, 2024
1 parent 3c67d8a commit 548ba65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@
},
"test:unit:browser": {
"dependsOn": ["^compile:js"],
"inputs": ["$TURBO_DEFAULT$", "src/**"]
"inputs": ["$TURBO_DEFAULT$", "../../.agave/**/version.yml", "src/**"]
},
"test:unit:node": {
"dependsOn": ["^compile:js"],
"inputs": ["$TURBO_DEFAULT$", "src/**"]
"inputs": ["$TURBO_DEFAULT$", "../../.agave/**/version.yml", "src/**"]
},
"test:treeshakability:browser": {
"dependsOn": ["compile:js"]
Expand Down Expand Up @@ -146,7 +146,7 @@
},
"@solana/web3.js#test:live-with-test-validator": {
"dependsOn": ["compile:js"],
"inputs": ["$TURBO_DEFAULT$", "src/**", "test/**"]
"inputs": ["$TURBO_DEFAULT$", "../../.agave/**/version.yml", "src/**", "test/**"]
},
"@solana/web3.js#test:typecheck": {
"dependsOn": ["compile:typedefs"],
Expand Down

0 comments on commit 548ba65

Please sign in to comment.