Commit 8630b41
authored
fix: update testnet compatibility test and bust cache on pinned artifact changes (#22429)
## Summary
Two changes to fix the testnet compatibility test breakage on v4-next:
**1. Fix test to match actual testnet deployment**
- Testnet was deployed without SponsoredFPC — remove it from genesis
computation
- Update expected genesis archive root to `0x15684c8c...` (verified
against on-chain testnet L1 rollup at `0xf6d0...c1` on Sepolia)
- All 3 values verified on-chain: VK tree root, protocol contracts hash,
genesis archive root
**2. Bust test cache when pinned artifacts change**
- Mix hashes of `pinned-protocol-contracts.tar.gz`,
`pinned-build.tar.gz` (VKs), and
`mock-protocol-circuits/pinned-build.tar.gz` into the compatibility test
cache prefix
- This ensures the test re-runs whenever pinned artifacts are updated,
preventing the CI cache from masking mismatches
## On-chain verification
```
$ cast call 0xf6d0...c1 "archiveAt(uint256)(bytes32)" 0 --rpc-url sepolia
0x15684c8c3d2106918d3860f777e50555b7166adff47df13cc652e2e5a50bf5c7 # genesis archive root
$ cast storage 0xf6d0...c1 <config.vkTreeRoot slot> --rpc-url sepolia
0x1dd2644a17d1ddd8831287a78c5a1033b7ae35cdf2a3db833608856c062fc2ba # VK tree root
$ cast storage 0xf6d0...c1 <config.protocolContractsHash slot> --rpc-url sepolia
0x2672340d9a0107a7b81e6d10d25b854debe613f3272e8738e8df0ca2ff297141 # protocol contracts hash
```2 files changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
| |||
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 21 | + | |
| 22 | + | |
27 | 23 | | |
28 | 24 | | |
29 | | - | |
| 25 | + | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
230 | 238 | | |
231 | 239 | | |
232 | 240 | | |
| |||
0 commit comments