Wire persistent chunk plan caching into the CLI

This commit is contained in:
2026-07-18 00:31:53 +00:00
parent 51a36efb6b
commit 8ba5228c01
5 changed files with 601 additions and 27 deletions

View File

@@ -0,0 +1,21 @@
package cli
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
const name = "NOTARIUS_WORKSPACE_CHUNK_CACHE_MODE"
previous, existed := os.LookupEnv(name)
if err := os.Setenv(name, "bypass"); err != nil {
panic(err)
}
code := m.Run()
if existed {
_ = os.Setenv(name, previous)
} else {
_ = os.Unsetenv(name)
}
os.Exit(code)
}