Skip to content

Commit 3ac872e

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feature/no-member-events-flood
2 parents 590238c + 96549b1 commit 3ac872e

1,366 files changed

Lines changed: 54394 additions & 25938 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@
2121

2222

2323
/apps/web/src/models/Call.ts @element-hq/element-call-reviewers
24+
/apps/web/test/unit-tests/models/Call-test.ts @element-hq/element-call-reviewers
25+
/apps/web/src/stores/CallStore.ts @element-hq/element-call-reviewers
26+
/apps/web/test/unit-tests/stores/CallStore-test.ts @element-hq/element-call-reviewers
2427
/apps/web/src/call-types.ts @element-hq/element-call-reviewers
2528
/apps/web/src/components/views/voip @element-hq/element-call-reviewers
26-
/apps/web/playwright/e2e/voip/element-call.spec.ts @element-hq/element-call-reviewers
29+
/apps/web/res/css/views/voip @element-hq/element-call-reviewers
30+
/apps/web/playwright/e2e/voip @element-hq/element-call-reviewers
31+
/apps/web/playwright/snapshots/voip @element-hq/element-call-reviewers
32+
/apps/web/test/test-utils/call.ts @element-hq/element-call-reviewers
2733

2834
# Ignore translations as those will be updated by GHA for Localazy download
2935
/apps/web/src/i18n/strings

.github/actions/download-verify-element-tarball/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
using: composite
1212
steps:
1313
- name: Download release tarball
14-
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1
14+
uses: robinraju/release-downloader@28fc21f50d76778e7023361aa1f863e717d3d56f # v1
1515
with:
1616
tag: ${{ inputs.tag }}
1717
fileName: element-*.tar.gz*

.github/labels.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@
9191
- name: "A-Modules"
9292
description: "Module system related"
9393
color: "bfd4f2"
94-
- name: "A-New-Search-Experience"
95-
description: "The new search dialog available in Labs"
96-
color: "bfd4f2"
9794
- name: "A-Packaging"
9895
description: "Packaging, signing, releasing"
9996
color: "bfd4f2"

.github/renovate.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,43 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": ["github>matrix-org/renovate-config-element-web"],
44
"postUpdateOptions": ["pnpmDedupe"],
5+
"stopUpdatingLabel": "X-Blocked",
56
"packageRules": [
67
{
8+
"description": "Group all testcontainers docker digests",
79
"groupName": "testcontainers docker digests",
810
"groupSlug": "testcontainers-docker",
911
"matchDepTypes": ["testcontainers-docker"],
1012
"matchPackageNames": ["*"]
13+
},
14+
{
15+
"description": "Separate updates to overrides from other groups",
16+
"matchManagers": ["npm"],
17+
"matchFileNames": ["pnpm-workspace.yaml"],
18+
"matchDepTypes": ["pnpm-workspace.overrides"],
19+
"groupSlug": null
20+
},
21+
{
22+
"description": "Disable any major updates to overrides as this almost always is wrong",
23+
"matchUpdateTypes": ["major"],
24+
"matchManagers": ["npm"],
25+
"matchFileNames": ["pnpm-workspace.yaml"],
26+
"matchDepTypes": ["pnpm-workspace.overrides"],
27+
"enabled": false
1128
}
1229
],
1330
"customManagers": [
1431
{
32+
"description": "Update testcontainers docker digests",
1533
"customType": "regex",
1634
"datasourceTemplate": "docker",
1735
"versioningTemplate": "loose",
18-
"description": "Update testcontainers docker digests",
1936
"managerFilePatterns": ["**/testcontainers/*.ts"],
2037
"matchStrings": ["\\s+\"(?<depName>[^@]+):(?<currentValue>[^@]+)@(?<currentDigest>sha256:[a-f0-9]+)\""],
2138
"depTypeTemplate": "testcontainers-docker"
2239
},
2340
{
41+
"description": "Update element-desktop hakDependencies",
2442
"customType": "jsonata",
2543
"managerFilePatterns": ["/(^|/)package\\.json$/"],
2644
"fileFormat": "json",

.github/workflows/build-and-test.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
repository: element-hq/element-web
6464
persist-credentials: false
6565

66-
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
67-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
66+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
67+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
6868
with:
6969
cache: "pnpm"
7070
node-version: "lts/*"
@@ -145,8 +145,8 @@ jobs:
145145
name: webapp
146146
path: apps/web/webapp
147147

148-
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
149-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
148+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
149+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
150150
with:
151151
cache: "pnpm"
152152
cache-dependency-path: pnpm-lock.yaml
@@ -206,6 +206,8 @@ jobs:
206206
needs: prepare_ed
207207
name: "Desktop Windows"
208208
uses: ./.github/workflows/build_desktop_windows.yaml
209+
# Skip Windows builds on PRs, as the Linux amd64 build is enough of a smoke test and includes the screenshot tests
210+
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'X-Run-All-Tests')
209211
strategy:
210212
matrix:
211213
arch: [x64, ia32, arm64]
@@ -223,10 +225,13 @@ jobs:
223225
arch: [amd64, arm64]
224226
runAllTests:
225227
- ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'X-Run-All-Tests') }}
226-
# We ship static sqlcipher builds, so delegate testing the system builds to the merge queue
227228
exclude:
229+
# We ship static sqlcipher builds, so delegate testing the system builds to the merge queue
228230
- runAllTests: false
229231
sqlcipher: system
232+
# Additionally skip arm64 system builds on PRs, as the amd64 test is enough for a smoke test and includes the screenshot tests
233+
- runAllTests: false
234+
arch: arm64
230235
with:
231236
sqlcipher: ${{ matrix.sqlcipher }}
232237
arch: ${{ matrix.arch }}
@@ -236,6 +241,9 @@ jobs:
236241
needs: prepare_ed
237242
name: "Desktop macOS"
238243
uses: ./.github/workflows/build_desktop_macos.yaml
244+
# Skip macOS builds on PRs, as the Linux amd64 build is enough of a smoke test and includes the screenshot tests
245+
# and we have a very low limit of concurrent macos runners (5) across the Github org.
246+
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'X-Run-All-Tests')
239247
with:
240248
blob_report: true
241249

@@ -258,9 +266,9 @@ jobs:
258266
persist-credentials: false
259267
repository: element-hq/element-web
260268

261-
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
269+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
262270
if: needs.build_ew.outputs.skip == 'false'
263-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
271+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
264272
if: needs.build_ew.outputs.skip == 'false'
265273
with:
266274
cache: "pnpm"

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
with:
4848
persist-credentials: false
4949

50-
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
51-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
50+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
51+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
5252
with:
5353
# Disable cache on Windows as it is slower than not caching
5454
# https://github.com/actions/setup-node/issues/975

.github/workflows/build_desktop_and_deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ jobs:
289289
id-token: write # This is required for requesting the JWT
290290
steps:
291291
- name: Configure AWS credentials
292-
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6
292+
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6
293293
with:
294294
role-to-assume: arn:aws:iam::264135176173:role/Push-ElementDesktop-MSI
295295
role-session-name: githubaction-run-${{ github.run_id }}

.github/workflows/build_desktop_linux.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ jobs:
110110
path: |
111111
apps/desktop/.hak
112112
113-
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
114-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
113+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
114+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
115115
with:
116116
node-version-file: apps/desktop/.node-version
117117
cache: "pnpm"
@@ -126,14 +126,14 @@ jobs:
126126
- name: "Get modified files"
127127
id: changed_files
128128
if: steps.cache.outputs.cache-hit != 'true' && github.event_name == 'pull_request' && github.repository == 'element-hq/element-web'
129-
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46
129+
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47
130130
with:
131131
files: |
132132
apps/desktop/dockerbuild/**
133133
134134
# This allows contributors to test changes to the dockerbuild image within a pull request
135135
- name: Build docker image
136-
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7
136+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7
137137
if: steps.changed_files.outputs.any_modified == 'true'
138138
with:
139139
file: apps/desktop/dockerbuild/Dockerfile
@@ -154,10 +154,12 @@ jobs:
154154
155155
- name: Fix permissions
156156
run: |
157+
shopt -s globstar
158+
157159
# For .hak
158160
sudo chown -R $USER:$USER apps/desktop/.hak
159-
# For node_modules pnpm strict security
160-
sudo chmod +x node_modules/7zip-bin/linux/*/7za
161+
# For node_modules
162+
sudo chown -R $USER:$USER **/node_modules
161163
162164
- name: Check native libraries in hak dependencies
163165
working-directory: apps/desktop

.github/workflows/build_desktop_macos.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ permissions: {} # No permissions required
7070
jobs:
7171
build:
7272
name: Build macOS Universal
73-
runs-on: macos-15 # M1
73+
runs-on: macos-26 # M1
7474
environment: ${{ inputs.sign && 'Desktop Apple' || '' }}
7575
steps:
7676
- uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1
@@ -113,8 +113,8 @@ jobs:
113113
# https://github.com/electron-userland/electron-builder/issues/9511#issuecomment-3774092888
114114
- run: sudo pip3 install pyobjc-framework-Quartz
115115

116-
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
117-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
116+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
117+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
118118
with:
119119
node-version-file: apps/desktop/.node-version
120120
cache: "pnpm"

.github/workflows/build_desktop_prepare.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
persist-credentials: false
5959
repository: element-hq/element-web
6060

61-
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
62-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
61+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
62+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
6363
with:
6464
node-version-file: apps/desktop/.node-version
6565
cache: "pnpm"
@@ -143,7 +143,7 @@ jobs:
143143
- name: "[Release] Fetch release"
144144
id: release
145145
if: ${{ !inputs.nightly && inputs.version != 'develop' }}
146-
uses: cardinalby/git-get-release-action@5172c3a026600b1d459b117738c605fabc9e4e44 # 1.2.5
146+
uses: cardinalby/git-get-release-action@2ab178299eecb253f820dcf2cce11f62be1178f7 # 1.2.6
147147
env:
148148
GITHUB_TOKEN: ${{ github.token }}
149149
with:
@@ -170,7 +170,7 @@ jobs:
170170
run: |
171171
set -e
172172
173-
BUNDLE_HASH=$(npx asar l webapp.asar | grep /bundles/ | head -n 1 | sed 's|.*/||')
173+
BUNDLE_HASH=$(pnpm exec asar l webapp.asar | grep /bundles/ | head -n 1 | sed 's|.*/||')
174174
WEBAPP_VERSION=$(./scripts/get-version.ts)
175175
WEB_VERSION=${WEBAPP_VERSION:0:12}
176176
JS_VERSION=${WEBAPP_VERSION:16:12}

0 commit comments

Comments
 (0)