Skip to content

Remove Database Round Trip Testing #1377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2022
Merged
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
18 changes: 0 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,21 +200,3 @@ jobs:

- name: Export empty SQLite DB to Postgres
run: ./target/debug/sqlite-to-postgres "$(mktemp)" 'postgresql://postgres:postgres@localhost:5432/postgres'

- name: Roundtrip export
run: |
sudo apt-get update
sudo apt-get install -y wget python3-snappy sqlite3

wget -q 'http://perf-data.rust-lang.org/export.db.sz'
python3 -m snappy -d export.db.sz > before.db

./target/debug/sqlite-to-postgres before.db 'postgresql://postgres:postgres@localhost:5432/postgres'
sqlite3 before.db .dump > before.dump

rm before.db

./target/debug/postgres-to-sqlite 'postgresql://postgres:postgres@localhost:5432/postgres' after.db
sqlite3 after.db .dump > after.dump

diff -w before.dump after.dump