Skip to content

Instantly share code, notes, and snippets.

View DMRobertson's full-sized avatar

David Robertson DMRobertson

View GitHub Profile
@DMRobertson
DMRobertson / compare-builds.sh
Last active April 4, 2022 17:30
Compare synapse wheels and sdists, before an after poetry
#! /usr/bin/env bash
# This script compares the wheels and sdists for Synapse built using poetry and using existing tooling.
# See https://github.com/matrix-org/synapse/pull/12337 and https://github.com/matrix-org/synapse/issues/11537.
set -xeuo pipefail
git switch dmr/pyproject-poetry
POETRY_BRANCH_VERSION=$(poetry version -s)
python -m build --outdir dist-poetry
2022-08-31T12:10:34.5346008Z Requested labels: ubuntu-latest
2022-08-31T12:10:34.5346053Z Job defined at: matrix-org/backend-meta/.github/workflows/python-poetry-ci.yml@refs/tags/v1
2022-08-31T12:10:34.5346101Z Waiting for a runner to pick up this job...
2022-08-31T12:10:36.7247093Z Job is waiting for a hosted runner to come online.
2022-08-31T12:10:39.8616101Z Job is about to start running on the hosted runner: GitHub Actions 18 (hosted)
2022-08-31T12:10:43.5238682Z Current runner version: '2.296.0'
2022-08-31T12:10:43.5276721Z ##[group]Operating System
2022-08-31T12:10:43.5277671Z Ubuntu
2022-08-31T12:10:43.5277978Z 20.04.4
2022-08-31T12:10:43.5278309Z LTS
2022-09-01T11:49:14.2849952Z Requested labels: ubuntu-latest
2022-09-01T11:49:14.2850001Z Job defined at: matrix-org/backend-meta/.github/workflows/python-poetry-ci.yml@refs/tags/v1
2022-09-01T11:49:14.2850026Z Waiting for a runner to pick up this job...
2022-09-01T11:51:36.0897292Z Job is waiting for a hosted runner to come online.
2022-09-01T11:51:42.1548707Z Job is about to start running on the hosted runner: GitHub Actions 32 (hosted)
2022-09-01T11:51:45.8973087Z Current runner version: '2.296.0'
2022-09-01T11:51:45.9004998Z ##[group]Operating System
2022-09-01T11:51:45.9005612Z Ubuntu
2022-09-01T11:51:45.9006242Z 20.04.4
2022-09-01T11:51:45.9006643Z LTS
@DMRobertson
DMRobertson / dmr_test.go
Created January 25, 2023 12:20
Complement test for join-leave-join sync response
package csapi_tests
import (
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/internal/client"
"testing"
)
func TestRejoinBehaviour(t *testing.T) {
deployment := Deploy(t, b.BlueprintFederationOneToOneRoom)
\echo nuke table\\
DROP TABLE IF EXISTS e2e_one_time_keys_json;
\echo Make table\\
CREATE TABLE e2e_one_time_keys_json (
user_id text NOT NULL,
device_id text NOT NULL,
algorithm text NOT NULL,
key_id text NOT NULL,
ts_added_ms bigint NOT NULL,