feat(sandbox): add test counter and SQLite load actors#4500
feat(sandbox): add test counter and SQLite load actors#4500NathanFlurry merged 11 commits intomainfrom
Conversation
|
🚅 Deployed to the rivet-pr-4500 environment in rivet-frontend
|
PR Review: feat(sandbox): add test counter and SQLite load actorsSummaryThis PR adds benchmark tooling and three test/demo actors to the sandbox example. Overall the changes are clean and well-structured. One critical security issue needs to be addressed before merging. 🚨 Critical: API Key Committed to RepositoryFiles: Both benchmark output files contain a live API key embedded in the command output: The token IssuesPackage version pinning deviates from monorepo conventions
If this is intentionally testing against a specific published release rather than local workspace packages, a comment explaining the deviation would help. Nested A
// Migration 1: schema version tracking
await db.execute(`
CREATE TABLE IF NOT EXISTS schema_version (
id INTEGER PRIMARY KEY CHECK (id = 1),
version INTEGER NOT NULL DEFAULT 50
)
`);The Positive Observations
|
40a6733 to
d31814a
Compare
9441792 to
bded0ba
Compare
3377095 to
8ef05ba
Compare
8ef05ba to
f16e6f9
Compare
f16e6f9 to
fb0c6a1
Compare
PR Review: feat(sandbox): add test counter and SQLite load actorsCritical Issues1. Leaked Staging API Token in Committed FilesFiles: All three benchmark result files contain a staging API token embedded in the recorded command. The token Significant Issues2. Pinned RivetKit Versions in ExampleFile: Per CLAUDE.md: "When adding RivetKit dependencies to examples in
3. Standalone
|
Merge activity
|
625d388 to
12b3eef
Compare
… actors Add three new test actors to the sandbox example: - testCounter: simple in-memory state counter - testCounterSqlite: SQLite-backed counter using rivetkit/db - testSqliteLoad: 50 migrations with a runLoadTest action that executes 20 SQLite queries Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12b3eef to
f350b3d
Compare

Summary
testCounteractor: simple in-memory state counter with increment/getCount/resettestCounterSqliteactor: same counter interface backed by SQLite viarivetkit/dbtestSqliteLoadactor: 50 migrations inonMigrate,runLoadTestaction runs 20 diverse SQLite queries (inserts, selects, joins, aggregates, updates)Test plan
🤖 Generated with Claude Code