Skip to content

Add chaos testing scripts and verification scenarios for SQLite and SQL Server#83

Merged
isdaniel merged 2 commits into
mainfrom
chore/add-sqlserver-sqlite-integration-test
Apr 28, 2026
Merged

Add chaos testing scripts and verification scenarios for SQLite and SQL Server#83
isdaniel merged 2 commits into
mainfrom
chore/add-sqlserver-sqlite-integration-test

Conversation

@isdaniel
Copy link
Copy Markdown
Owner

  • Introduced scenario5_verify.sql to verify high-volume data replication (3M rows) in SQL Server.
  • Created run_chaos_tests_sqlite.sh for executing chaos tests with SQLite as the destination.
  • Developed run_chaos_tests_sqlserver.sh for executing chaos tests with SQL Server as the destination.
  • Implemented run_pgbench_chaos_test_sqlite.sh for performance testing with pgbench on SQLite.
  • Implemented run_pgbench_chaos_test_sqlserver.sh for performance testing with pgbench on SQL Server.
  • Added logging and cleanup functionalities to all scripts for better traceability and resource management.

…QL Server

- Introduced `scenario5_verify.sql` to verify high-volume data replication (3M rows) in SQL Server.
- Created `run_chaos_tests_sqlite.sh` for executing chaos tests with SQLite as the destination.
- Developed `run_chaos_tests_sqlserver.sh` for executing chaos tests with SQL Server as the destination.
- Implemented `run_pgbench_chaos_test_sqlite.sh` for performance testing with pgbench on SQLite.
- Implemented `run_pgbench_chaos_test_sqlserver.sh` for performance testing with pgbench on SQL Server.
- Added logging and cleanup functionalities to all scripts for better traceability and resource management.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request expands the chaos and performance testing suite to include SQL Server and SQLite destinations. It introduces new Docker Compose environments, initialization scripts, and bash-based test runners for these targets. The build process is updated to support conditional feature compilation, and testing now utilizes persistent volumes for metadata. Review feedback identifies a critical bug where unlogged tables in pgbench prevent CDC replication, suggests refactoring duplicated environment loading logic, and recommends increasing the Docker stop timeout to match the application's grace period.

Comment thread tests/chaos/scripts/run_pgbench_chaos_test_sqlite.sh
Comment thread tests/chaos/scripts/run_pgbench_chaos_test_sqlserver.sh
Comment thread tests/chaos/scripts/run_chaos_tests_sqlite.sh
Comment thread tests/chaos/scripts/chaos_script.sh
@isdaniel isdaniel merged commit 12cf6ac into main Apr 28, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant