Hey folks I've got a hermetically re-runnable spic...
# spicedb
l
Hey folks I've got a hermetically re-runnable spicedb test fixture (powered by Bazel and nix/docker) that runs this in sequence: 1. spins up a spanner db (via [emulator](https://cloud.google.com/sdk/gcloud/reference/emulators/spanner/start)) 2. runs
spicedb migrate HEAD
against the spanner db 3. starts up spicedb server 4. runs some simple go unit tests against the spicedb instance (create schema, write relationships, check relationships) It works for the most part except I sometimes get
rpc error: code = NotFound desc = unable to list namespaces: spanner: code = "NotFound", desc = "Table not found: namespace_config"
from the go client when I call
spicedbClient.CheckPermission
. I'm wondering if the
spicedb migrate HEAD
runs the migration asynchronously. The log file is kinda sparse. If I add a
<-time.NewTimer(5*time.Second).C
before calling
CheckPermission
in the UTs, I get a 100% pass rate. This could very well just be behavior from the spanner emulator but I thought I'd ask here first.