Skip to content
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

Dendrite: Show sytest compliance report after sytest runs #864

Merged
merged 2 commits into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions scripts/dendrite_sytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ if [ $TEST_STATUS -ne 0 ]; then
cat /work/show_expected_fail_tests_output.txt >> /logs/annotate.md
fi

echo >&2 "--- Sytest compliance report"
(cd /src && ./are-we-synapse-yet.py /logs/results.tap) || true

exit $TEST_STATUS
30 changes: 30 additions & 0 deletions scripts/prep_sytest_for_sqlite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
#
# Configure sytest to use postgres databases, per the env vars. This is used
# by both the sytest builds and the synapse ones.
#

set -e

cd "/work"

export SQLITE_DB_1=sqlite1
export SQLITE_DB_2=sqlite2

mkdir -p "server-0"
mkdir -p "server-1"

# Write out the configuration for a PostgreSQL Dendrite
# Note: Dendrite can run entirely within a single database as all of the tables have
# component prefixes
cat > "server-0/database.yaml" << EOF
name: sqlite3
args:
database: $SQLITE_DB_1
EOF

cat > "server-1/database.yaml" << EOF
name: sqlite3
args:
database: $SQLITE_DB_2
EOF