Skip to content

Commit 6092efe

Browse files
authored
Merge branch 'main' into quenting/optional-email
2 parents ef74d47 + ab23d1a commit 6092efe

File tree

25 files changed

+76
-96
lines changed

25 files changed

+76
-96
lines changed

.config/nextest.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[test-groups]
2+
database = { max-threads = 1 }
3+
4+
[profile.default]
5+
retries = 1
6+
7+
# sqlx has a problem with nextest, as it uses a process-local semaphore to have
8+
# tests use different databases. This doesn't work with nextest, as it has a
9+
# process-per-test model, which is why we need to make sure only one test uses
10+
# the database at a time.
11+
# See https://github.com/launchbadge/sqlx/pull/3334
12+
[[profile.default.overrides]]
13+
filter = 'package(mas-handlers) or package(mas-storage-pg)'
14+
test-group = 'database'

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
version: 0.13.0
6262

6363
- name: Install cargo-zigbuild
64-
run: curl -L https://github.com/rust-cross/cargo-zigbuild/releases/download/v0.19.1/cargo-zigbuild-v0.19.1.x86_64-unknown-linux-musl.tar.gz | tar -z -x -C /usr/local/bin
64+
uses: taiki-e/install-action@v2
65+
with:
66+
tool: cargo-zigbuild
6567

6668
- name: Install frontend Node
6769
uses: actions/[email protected]

.github/workflows/ci.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ jobs:
263263
rustup default stable
264264
265265
- name: Install nextest
266-
uses: taiki-e/install-action@nextest
266+
uses: taiki-e/install-action@v2
267+
with:
268+
tool: cargo-nextest
267269

268270
- name: Setup sccache
269271
uses: mozilla-actions/[email protected]
@@ -290,7 +292,7 @@ jobs:
290292

291293
strategy:
292294
matrix:
293-
partition: [1, 2]
295+
partition: [1, 2, 3]
294296

295297
services:
296298
postgres:
@@ -313,7 +315,9 @@ jobs:
313315

314316
- run: mkdir -p ~/.cargo/bin
315317
- name: Install nextest
316-
uses: taiki-e/install-action@nextest
318+
uses: taiki-e/install-action@v2
319+
with:
320+
tool: cargo-nextest
317321

318322
- name: Install Node
319323
uses: actions/[email protected]
@@ -346,11 +350,9 @@ jobs:
346350
env:
347351
DATABASE_URL: postgresql://postgres:postgres@localhost/postgres
348352
run: |
349-
~/.cargo/bin/cargo-nextest nextest run --archive-file nextest-archive.tar.zst \
350-
--partition count:${{ matrix.partition }}/2 \
351-
--retries 1
352-
# --retries is a workaround for sqlx not playing nice with nextest
353-
# Waiting for https://github.com/launchbadge/sqlx/pull/3334
353+
~/.cargo/bin/cargo-nextest nextest run \
354+
--archive-file nextest-archive.tar.zst \
355+
--partition count:${{ matrix.partition }}/3
354356
355357
syn2mas:
356358
name: Check syn2mas

.github/workflows/coverage.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@ jobs:
141141
- name: Setup sccache
142142
uses: mozilla-actions/[email protected]
143143

144-
- name: Download grcov
145-
run: |
146-
mkdir -p "${HOME}/.local/bin"
147-
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.19/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin"
148-
echo "$HOME/.local/bin" >> $GITHUB_PATH
144+
- name: Install grcov
145+
uses: taiki-e/install-action@v2
146+
with:
147+
tool: grcov
149148

150149
- name: Run test suite with profiling enabled
151150
run: |

.github/workflows/docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
- name: Setup sccache
3131
uses: mozilla-actions/[email protected]
3232

33-
- name: Setup mdBook
34-
uses: peaceiris/actions-mdbook@v2.0.0
33+
- name: Install mdbook
34+
uses: taiki-e/install-action@v2
3535
with:
36-
mdbook-version: '0.4.37'
36+
tool: mdbook
3737

3838
- name: Install Node
3939
uses: actions/[email protected]

Cargo.lock

Lines changed: 1 addition & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ version = "0.7.9"
8282
version = "0.9.6"
8383
features = ["cookie-private", "cookie-key-expansion", "typed-header"]
8484

85+
# Constant-time base64
86+
[workspace.dependencies.base64ct]
87+
version = "1.6.0"
88+
8589
# Bytes
8690
[workspace.dependencies.bytes]
8791
version = "1.9.0"

crates/axum-utils/Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,20 @@ workspace = true
1515
async-trait.workspace = true
1616
axum.workspace = true
1717
axum-extra.workspace = true
18-
bytes.workspace = true
1918
chrono.workspace = true
2019
data-encoding = "2.6.0"
21-
futures-util.workspace = true
2220
headers.workspace = true
2321
http.workspace = true
24-
http-body.workspace = true
25-
http-body-util.workspace = true
26-
hyper-util.workspace = true
2722
icu_locid = "1.4.0"
2823
mime = "0.3.17"
2924
rand.workspace = true
3025
reqwest.workspace = true
3126
sentry.workspace = true
3227
serde.workspace = true
3328
serde_with = "3.12.0"
34-
serde_urlencoded = "0.7.1"
3529
serde_json.workspace = true
3630
thiserror.workspace = true
3731
tokio.workspace = true
38-
tower.workspace = true
3932
tracing.workspace = true
4033
url.workspace = true
4134
ulid.workspace = true

crates/cli/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ console = "0.15.10"
2323
dialoguer = { version = "0.11.0", features = ["fuzzy-select"] }
2424
dotenvy = "0.15.7"
2525
figment.workspace = true
26-
httpdate = "1.0.3"
27-
http.workspace = true
28-
http-body.workspace = true
2926
http-body-util.workspace = true
3027
hyper.workspace = true
3128
ipnetwork = "0.20.0"
@@ -69,20 +66,17 @@ mas-email.workspace = true
6966
mas-handlers.workspace = true
7067
mas-http.workspace = true
7168
mas-i18n.workspace = true
72-
mas-iana.workspace = true
7369
mas-keystore.workspace = true
7470
mas-listener.workspace = true
7571
mas-matrix.workspace = true
7672
mas-matrix-synapse.workspace = true
7773
mas-policy.workspace = true
7874
mas-router.workspace = true
79-
mas-spa.workspace = true
8075
mas-storage.workspace = true
8176
mas-storage-pg.workspace = true
8277
mas-tasks.workspace = true
8378
mas-templates.workspace = true
8479
mas-tower.workspace = true
85-
oauth2-types.workspace = true
8680

8781
[build-dependencies]
8882
anyhow.workspace = true

0 commit comments

Comments
 (0)