Add new BENCHMARK_KIND variants (sequentialflow, scriptlogs, concurrencylimit, concurrencykey, mixed, mixed_no_cc) for targeted performance testing. Fix shared iteration counting across workers using a global atomic counter. Add job_perms inserts and queue diagnostics for benchmark mode. Move db connection setup to dedicated module and drop the initial connection pool before creating the main one, preventing connection starvation when PostgreSQL max_connections is low. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
935 B
Bash
Executable File
21 lines
935 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# Check if running on macOS
|
|
if [[ "$(uname)" == "Darwin" ]]; then
|
|
echo "Running on macOS - substituting samael..."
|
|
# Comment out the version-based samael dependency
|
|
sed -i '' 's/^samael = { version="0.0.14", features = \["xmlsec"\] }/#samael = { version="0.0.14", features = ["xmlsec"] }/' Cargo.toml
|
|
# Uncomment the git-based samael dependency
|
|
sed -i '' 's/^# \(samael = { git="https:\/\/github.com\/njaremko\/samael", rev="464d015e3ae393e4b5dd00b4d6baa1b617de0dd6", features = \["xmlsec"\] }\)/\1/' Cargo.toml
|
|
|
|
# Run cargo sqlx prepare with deno_core_mac
|
|
echo "Running cargo sqlx prepare with deno_core_mac..."
|
|
cargo sqlx prepare --workspace -- --all-targets --features all_sqlx_features,private,deno_core_mac
|
|
else
|
|
# Run cargo sqlx prepare
|
|
echo "Running cargo sqlx prepare..."
|
|
cargo sqlx prepare --workspace -- --all-targets --features all_sqlx_features,ee
|
|
fi
|