Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Scripts/StoreStress/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package.resolved
23 changes: 23 additions & 0 deletions Scripts/StoreStress/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// swift-tools-version: 6.2
import PackageDescription

let package = Package(
name: "StoreStress",
platforms: [
.macOS(.v14),
],
dependencies: [
.package(name: "CodexBar", path: "../.."),
],
targets: [
.executableTarget(
name: "StoreStress",
dependencies: [
.product(name: "CodexBarCore", package: "CodexBar"),
],
path: ".",
exclude: ["Package.swift", "README.md"],
swiftSettings: [
.swiftLanguageMode(.v5),
]),
])
15 changes: 15 additions & 0 deletions Scripts/StoreStress/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# StoreStress

Adversarial crash, contention, corpus-rebuild, WAL, and descriptor harness for the SQLite-backed
`CostUsageStore`. It is a separate package so its internal test access never enters normal CodexBar builds.

Build the optimized harness from this directory:

```sh
swift build -c release -Xswiftc -enable-testing
```

Run `swift run -c release -Xswiftc -enable-testing StoreStress --` without arguments to print the available
subcommands. Every store/cache argument should point at a disposable temporary directory. `rebuild` and
`incremental` accept an optional sessions root, which makes it possible to measure a read-only corpus snapshot
without writing to the real Codex session or CodexBar cache directories.
Loading