Commit Graph
374 Commits
Author SHA1 Message Date
Paul Chobert a0fd98d8b6 Add newsfragment and update copyright year 2026-11-27 15:18:29 +01:00
Paul Chobert c2b8158f34 CI: authenticate the MAS GraphQL integration test with a Bearer token 2026-11-27 11:16:32 +01:00
Ben Banfield-Zanin ad85337bd3 Merge pull request #1788 from mvanhorn/fix/1417-syn2mas-warning-exit-code
Allow syn2mas preflight warnings to proceed
2026-11-13 16:21:21 +00:00
Matt Van Horn 7e5f570af7 Drop BUILD_MATRIX_TOOLS from the syn2mas integration env
It was only there so CI built matrix-tools on the fork and is no
longer needed.
2026-11-13 08:05:40 -08:00
Ben Banfield-Zanin 808e5aa386 Return a Matrix formatted JSON error when using the wrong method against well-known Matrix endpoints. 2026-11-13 13:33:09 +00:00
Ben Banfield-Zanin 894b2baa3b CI: retry more status codes 2026-11-13 10:48:38 +00:00
Ben Banfield-Zanin 54ac44b2f8 CI: retry user registration on HTTP 400s 2026-11-13 10:29:12 +00:00
Matt Van Horn 4f68a0ff2e Retry syn2mas guest registration on 429s
Synapse restarts to apply the guest access config change, but its
ingress was already ready, so wrap the guest registration in
async_retry_with_timeout and retry on 429s.
2026-11-12 09:31:07 -08:00
Matt Van Horn afd6249462 Fix changelog and copyright checks, build matrix-tools in CI
Rename the news fragment to the PR number, extend the Element
Creations copyright year on syn2mas_test.go to 2026, and set
BUILD_MATRIX_TOOLS=1 for the syn2mas integration suite so CI builds
matrix-tools on this fork. BUILD_MATRIX_TOOLS is temporary and comes
out before merge.
2026-11-12 07:25:13 -08:00
Matt Van Horn 1732f028a5 Make accepting syn2mas check warnings opt-in
syn2mas check warnings, such as guest accounts, now stay fatal unless
matrixAuthenticationService.syn2mas.acceptWarnings is set. The chart
passes --accept-warnings to the syn2mas job only when it is enabled,
and a check that only reported warnings without it prints how to opt in.
The upgrade integration test sets acceptWarnings when it enables MAS.
2026-11-12 01:27:49 -08:00
Matt Van Horn b9933ae6f4 Register the syn2mas guest before enabling MAS
The upgrade test turned MAS off to register a guest account, even though
MAS was only running syn2mas in dry run. Register the guest before MAS is
first enabled, then enable MAS with guest access off in one upgrade, so
the first dry run sees the guest warning and MAS is never toggled off.
2026-11-12 00:59:28 -08:00
Matt Van Horn 56610ce153 Allow syn2mas preflight warnings to proceed
DryRunSyn2MAS now accepts status 11 from syn2mas check and continues
into syn2mas migrate --dry-run. Any other non-zero check status still
ends the process, and the dry-run migrate step ends the process when its
status is not zero. The upgrade integration test registers a guest and
expects the guest warning and status 11 in the syn2mas-migrate logs, the
dry run to finish, and the MATRIX_STACK_MSC3861 marker to remain
legacy_auth. The changelog records that these preflight warnings can
proceed for a dry run and for a real migration.

Fixes #1417
2026-11-11 08:13:45 -08:00
Gael Goinvic 959f8ccead Pin matrix-tools using a digest when using it in pytest 2026-10-21 07:08:30 +00:00
Gael Goinvic 49d9756dbb Build matrix-tools image on every pytest CI run 2026-10-20 13:15:49 +00:00
Gaël Goinvic 8c358a4b99 Merge pull request #1695 from element-hq/gaelg/flakes-service-monitors
Retry using curl retries instead of kubernetes container restarts
2026-10-20 11:12:58 +02:00
Gael Goinvic 465b00dc4d Adjust _terminated_state for clarity 2026-10-20 08:26:32 +00:00
Gael Goinvic b2354f88b9 Use async_retry_with_timeout and drop restart_policy argument
run_pod_with_args now hardcodes RestartPolicy="Never"
2026-10-19 15:19:15 +00:00
Gael Goinvic 0b7115bf03 Wait 5 min for CRD/Deployments/Statefulsets 2026-10-19 14:26:05 +00:00
Gael Goinvic f3de1349c8 Retry using curl retries instead of kubernetes container restarts 2026-10-19 13:59:27 +00:00
Gael Goinvic 31a8d17bdd Replace pytest-kubernetes Kubectl with lightkube AsyncClient 2026-10-16 14:45:22 +00:00
Gael Goinvic c3da912d69 Replace pytest-kubernetes Kubeclient.exec with lightkube AsyncClient.exec 2026-10-16 14:32:59 +00:00
Gael Goinvic 15dc4ba6d8 Add a helper to wait for charts used in tests 2026-10-16 13:57:35 +00:00
Gael Goinvic 00c5be78b6 Update k3d to version 5.9.0 and integration tests k8s to 1.35+ 2026-10-16 08:33:00 +00:00
Gael Goinvic 60883ad502 Add retries in playwright on initial setup 2026-10-15 13:30:47 +00:00
Gael Goinvic 201e1a263e Only expect 5xx errors when installing or upgrading from a chart version without preStop support 2026-10-15 13:30:46 +00:00
Gael Goinvic 0448e6ed87 Improve cluster setup to avoid helm v4 flake
See https://github.com/helm/helm/issues/31824 &
https://github.com/helm/helm/issues/32615
2026-10-15 09:49:59 +00:00
Johannes Marbach 2c73728420 Ensure the user is joined before hitting /sfu/get in tests 2026-10-13 10:56:58 +02:00
Ben Banfield-Zanin 7f967f798e Merge pull request #1645 from Johennes/fix-proxied-matrix-rtc-tests
Fix lk-jwt-service test for C-S route
2026-10-09 15:37:40 +01:00
Gael Goinvic 7afe226860 Add an asyncio lock on element admin playwright tests 2026-10-09 12:25:28 +00:00
Gael Goinvic fb204c0e0a Collect playwright traces and make them available to CI logs 2026-10-09 08:51:54 +00:00
Gael Goinvic a0350ea6e7 Pass playwright container config files through env vars 2026-10-09 08:23:35 +00:00
Gaël Goinvic 0a23c78284 Merge pull request #1646 from element-hq/gaelg/export-logs
Add docker logs export
2026-10-09 09:24:31 +02:00
Gael Goinvic 6ecb134ee1 Export logs only for containers attached to the k3d network 2026-10-09 07:15:30 +00:00
Gael Goinvic 81a68d93ec Apply hack to skip regular fixture logic before fixtures could throw
This is hidding errors happening during setups, and makes CI difficult
to debug.
2026-10-09 07:02:32 +00:00
Gael Goinvic 291542a67c Add docker logs export 2026-10-08 15:41:50 +00:00
Johannes Marbach 28172a2a50 Fix lk-jwt-service test for C-S route 2026-10-08 16:38:23 +02:00
Gaël Goinvic 38a2aeb65e Merge pull request #1636 from element-hq/gaelg/playwright-remote
Run playwright using a local controller -> remote browser model (running in docker)
2026-10-08 14:14:55 +02:00
Gael Goinvic 7054e51f49 fix top failing when test executes too fast 2026-10-08 12:05:03 +00:00
Ben Banfield-Zanin 3892b7cd58 Merge pull request #1626 from barodeur/msc4140-rtc-appservice-mode
Run the MatrixRTC Authorisation Service as an application service
2026-10-08 11:50:13 +01:00
Paul Chobert 7701332526 Keep 26.9.4 as the last release without the Matrix RTC proxy 2026-10-08 12:28:11 +02:00
Gael Goinvic 4003091423 Use explicit quoted types instead of disabling PEP 649 through future statement 2026-10-08 09:58:05 +00:00
Gael Goinvic e021ec9992 Add top pods to export logs 2026-10-08 09:42:08 +00:00
Gael Goinvic 0c26946ff4 Attach the browser container to the k3d network 2026-10-08 09:32:01 +00:00
Gael Goinvic 96911d886b Allow to install playwright when setting up ess-community-integration-tests externally 2026-10-08 07:07:12 +00:00
Gael Goinvic e4a7d342fe Add back --no-project, dont run playwright tests in external tool call 2026-10-08 07:07:12 +00:00
Gael Goinvic aabe6694c8 Actively wait for the ws connection to succeed 2026-10-07 12:59:49 +00:00
Gael Goinvic 369696b7b5 Simplify the setup playwright controller script by using system node 2026-10-07 12:59:49 +00:00
Gael Goinvic 38efa9d582 Use the setup_playwright_controller.sh script on every hosts 2026-10-07 12:59:49 +00:00
Gael Goinvic 7ca5eab331 Fix container logs 2026-10-07 12:59:48 +00:00
Gael Goinvic 031b850c15 Use docker-bake 2026-10-07 12:59:48 +00:00