Skip to content

Commit ce73d21

Browse files
authored
Merge branch 'main' into feat/allow_override_user
2 parents 42134b4 + ab57bcc commit ce73d21

File tree

372 files changed

+9290
-11326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+9290
-11326
lines changed

.config/nextest.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
1-
[test-groups]
2-
database = { max-threads = 1 }
3-
41
[profile.default]
52
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'

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ crates/*/target
33
crates/*/node_modules
44
frontend/node_modules
55
frontend/dist
6-
tools/syn2mas/**
76
docs/
87
.devcontainer/
98
.github/

.github/dependabot.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,3 @@ updates:
106106
browser-logos:
107107
patterns:
108108
- "@browser-logos/*"
109-
110-
- package-ecosystem: "npm"
111-
directory: "/tools/syn2mas/"
112-
labels:
113-
- "A-Dependencies"
114-
- "Z-Deps-Syn2Mas"
115-
schedule:
116-
interval: "weekly"
117-
ignore:
118-
# Ignore @types/node until we can upgrade to Node 20
119-
- dependency-name: "@types/node"
120-
update-types: ["version-update:semver-major"]
121-
groups:
122-
production:
123-
dependency-type: "production"
124-
development:
125-
dependency-type: "development"

.github/scripts/commit-and-tag.cjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ module.exports = async ({ github, context }) => {
1313
const parent = context.sha;
1414
if (!version) throw new Error("VERSION is not defined");
1515

16-
const files = [
17-
"Cargo.toml",
18-
"Cargo.lock",
19-
"tools/syn2mas/package.json",
20-
"tools/syn2mas/package-lock.json",
21-
];
16+
const files = ["Cargo.toml", "Cargo.lock"];
2217

2318
/** @type {{path: string, mode: "100644", type: "blob", sha: string}[]} */
2419
const tree = [];

.github/workflows/build.yaml

Lines changed: 2 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ env:
2323
SCCACHE_GHA_ENABLED: "true"
2424
RUSTC_WRAPPER: "sccache"
2525
IMAGE: ghcr.io/element-hq/matrix-authentication-service
26-
IMAGE_SYN2MAS: ghcr.io/element-hq/matrix-authentication-service/syn2mas
2726
BUILDCACHE: ghcr.io/element-hq/matrix-authentication-service/buildcache
2827
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
2928

@@ -253,24 +252,8 @@ jobs:
253252
type=semver,pattern={{major}}
254253
type=sha
255254
256-
- name: Docker meta (syn2mas)
257-
id: meta-syn2mas
258-
uses: docker/[email protected]
259-
with:
260-
images: "${{ env.IMAGE_SYN2MAS }}"
261-
bake-target: docker-metadata-action-syn2mas
262-
flavor: |
263-
latest=auto
264-
tags: |
265-
type=ref,event=branch
266-
type=ref,event=pr
267-
type=semver,pattern={{version}}
268-
type=semver,pattern={{major}}.{{minor}}
269-
type=semver,pattern={{major}}
270-
type=sha
271-
272255
- name: Setup Cosign
273-
uses: sigstore/[email protected].1
256+
uses: sigstore/[email protected].2
274257

275258
- name: Set up Docker Buildx
276259
uses: docker/[email protected]
@@ -288,13 +271,12 @@ jobs:
288271

289272
- name: Build and push
290273
id: bake
291-
uses: docker/bake-action@v6.5.0
274+
uses: docker/bake-action@v6.6.0
292275
with:
293276
files: |
294277
./docker-bake.hcl
295278
cwd://${{ steps.meta.outputs.bake-file }}
296279
cwd://${{ steps.meta-debug.outputs.bake-file }}
297-
cwd://${{ steps.meta-syn2mas.outputs.bake-file }}
298280
set: |
299281
base.output=type=image,push=true
300282
base.cache-from=type=registry,ref=${{ env.BUILDCACHE }}:buildcache
@@ -318,43 +300,11 @@ jobs:
318300
env:
319301
REGULAR_DIGEST: ${{ steps.output.outputs.metadata && fromJSON(steps.output.outputs.metadata).regular.digest }}
320302
DEBUG_DIGEST: ${{ steps.output.outputs.metadata && fromJSON(steps.output.outputs.metadata).debug.digest }}
321-
SYN2MAS_DIGEST: ${{ steps.output.outputs.metadata && fromJSON(steps.output.outputs.metadata).syn2mas.digest }}
322303

323304
run: |-
324305
cosign sign --yes \
325306
"$IMAGE@$REGULAR_DIGEST" \
326307
"$IMAGE@$DEBUG_DIGEST" \
327-
"$IMAGE_SYN2MAS@$SYN2MAS_DIGEST"
328-
329-
syn2mas:
330-
name: Release syn2mas on NPM
331-
runs-on: ubuntu-24.04
332-
if: github.event_name != 'pull_request'
333-
334-
permissions:
335-
contents: read
336-
id-token: write
337-
338-
steps:
339-
- name: Checkout the code
340-
uses: actions/[email protected]
341-
342-
- name: Install Node
343-
uses: actions/[email protected]
344-
with:
345-
node-version-file: ./tools/syn2mas/.nvmrc
346-
347-
- name: Install Node dependencies
348-
working-directory: ./tools/syn2mas
349-
run: npm ci
350-
351-
- name: Publish
352-
uses: JS-DevTools/npm-publish@v3
353-
with:
354-
package: ./tools/syn2mas
355-
token: ${{ secrets.NPM_TOKEN }}
356-
provenance: true
357-
dry-run: ${{ !startsWith(github.ref, 'refs/tags/') }}
358308
359309
release:
360310
name: Release
@@ -363,7 +313,6 @@ jobs:
363313
needs:
364314
- assemble-archives
365315
- build-image
366-
- syn2mas
367316
steps:
368317
- name: Download the artifacts from the previous job
369318
uses: actions/download-artifact@v4
@@ -403,18 +352,6 @@ jobs:
403352
') }}
404353
```
405354
406-
`syn2mas` migration tool:
407-
408-
- Digest:
409-
```
410-
${{ env.IMAGE_SYN2MAS }}@${{ fromJSON(needs.build-image.outputs.metadata).syn2mas.digest }}
411-
```
412-
- Tags:
413-
```
414-
${{ join(fromJSON(needs.build-image.outputs.metadata).syn2mas.tags, '
415-
') }}
416-
```
417-
418355
files: |
419356
artifacts/mas-cli-aarch64-linux.tar.gz
420357
artifacts/mas-cli-x86_64-linux.tar.gz

.github/workflows/ci.yaml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/[email protected]
5959

6060
- name: Install Node
61-
uses: actions/setup-node@v4.3.0
61+
uses: actions/setup-node@v4.4.0
6262
with:
6363
node-version: 22
6464

@@ -82,7 +82,7 @@ jobs:
8282
uses: actions/[email protected]
8383

8484
- name: Install Node
85-
uses: actions/setup-node@v4.3.0
85+
uses: actions/setup-node@v4.4.0
8686
with:
8787
node-version: 22
8888

@@ -106,7 +106,7 @@ jobs:
106106
uses: actions/[email protected]
107107

108108
- name: Install Node
109-
uses: actions/setup-node@v4.3.0
109+
uses: actions/setup-node@v4.4.0
110110
with:
111111
node-version: 20
112112

@@ -311,34 +311,6 @@ jobs:
311311
--archive-file nextest-archive.tar.zst \
312312
--partition count:${{ matrix.partition }}/3
313313
314-
syn2mas:
315-
name: Check syn2mas
316-
runs-on: ubuntu-24.04
317-
318-
permissions:
319-
contents: read
320-
321-
steps:
322-
- name: Checkout the code
323-
uses: actions/[email protected]
324-
325-
- name: Install Node
326-
uses: actions/[email protected]
327-
with:
328-
node-version-file: ./tools/syn2mas/.nvmrc
329-
330-
- name: Install Node dependencies
331-
working-directory: ./tools/syn2mas
332-
run: npm ci
333-
334-
- name: Lint
335-
working-directory: ./tools/syn2mas
336-
run: npm run lint
337-
338-
- name: Build
339-
working-directory: ./tools/syn2mas
340-
run: npm run build
341-
342314
tests-done:
343315
name: Tests done
344316
if: ${{ always() }}
@@ -352,7 +324,6 @@ jobs:
352324
- clippy
353325
- check-schema
354326
- test
355-
- syn2mas
356327
runs-on: ubuntu-24.04
357328

358329
steps:

.github/workflows/coverage.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: make coverage
3434

3535
- name: Upload to codecov.io
36-
uses: codecov/[email protected].0
36+
uses: codecov/[email protected].2
3737
with:
3838
token: ${{ secrets.CODECOV_TOKEN }}
3939
files: policies/coverage.json
@@ -60,7 +60,7 @@ jobs:
6060
run: npm run coverage
6161

6262
- name: Upload to codecov.io
63-
uses: codecov/[email protected].0
63+
uses: codecov/[email protected].2
6464
with:
6565
token: ${{ secrets.CODECOV_TOKEN }}
6666
directory: frontend/coverage/
@@ -127,7 +127,7 @@ jobs:
127127
grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/tests.lcov
128128
129129
- name: Upload to codecov.io
130-
uses: codecov/[email protected].0
130+
uses: codecov/[email protected].2
131131
with:
132132
token: ${{ secrets.CODECOV_TOKEN }}
133133
files: target/coverage/*.lcov

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
tool: mdbook
3535

3636
- name: Install Node
37-
uses: actions/setup-node@v4.3.0
37+
uses: actions/setup-node@v4.4.0
3838
with:
3939
node-version: 22
4040

.github/workflows/release-branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: actions/[email protected]
4949

5050
- name: Install Node
51-
uses: actions/setup-node@v4.3.0
51+
uses: actions/setup-node@v4.4.0
5252
with:
5353
node-version: 22
5454

.github/workflows/tag.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ jobs:
4040
- name: Run `cargo metadata` to make sure the lockfile is up to date
4141
run: cargo metadata --format-version 1
4242

43-
- name: Set the tools/syn2mas version
44-
working-directory: tools/syn2mas
45-
run: npm version "${{ inputs.version }}" --no-git-tag-version
46-
4743
- name: Commit and tag using the GitHub API
4844
uses: actions/[email protected]
4945
id: commit

.github/workflows/translations-download.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/[email protected]
1818

1919
- name: Install Node
20-
uses: actions/setup-node@v4.3.0
20+
uses: actions/setup-node@v4.4.0
2121
with:
2222
node-version: 22
2323

.github/workflows/translations-upload.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/[email protected]
1717

1818
- name: Install Node
19-
uses: actions/setup-node@v4.3.0
19+
uses: actions/setup-node@v4.4.0
2020
with:
2121
node-version: 22
2222

0 commit comments

Comments
 (0)