Commit Graph
689 Commits
Author SHA1 Message Date
Gaël Goinvic a459ae6f9e ci: skip matrix-rtc upgrade tests 2026-03-10 12:24:58 +01:00
Gaël Goinvic f2e2685ce8 Matrix RTC: Change the default ports to move them to the proper Kubernetes defaults 2026-03-10 12:01:53 +01:00
Gaël Goinvic 0f2f285693 Adjust nodePort 2026-03-10 10:34:44 +01:00
Gaël Goinvic d420a40e3c Fix port being tested 2026-03-10 10:28:28 +01:00
Gaël Goinvic 24da3cf4f0 Matrix RTC: Use dynamic node ports in tests
This should remove Port conflicts from CI Runs
2026-03-10 10:28:28 +01:00
Ben Banfield-Zanin 9d50d6bfb5 Remove legacy MSC2965 advertisment for Native-OIDC/MAS 2026-03-09 10:55:09 +00:00
Gaël Goinvic b587f729bb Enhance test assertions and docstrings in test_services.py
- Added comprehensive docstrings to all test functions focusing on Helm
chart behavior
- Enhanced assertion messages to provide clearer failure information
- Improved error messages with template IDs, expected vs actual values,
and context
2026-03-09 10:41:17 +01:00
Gael Gate b88441ad0c Improve chart cache error message 2026-03-05 10:59:06 +01:00
Gaël Goinvic 9050c1b484 Fix KeyError being raised when a volume could not be found in tests 2026-03-03 10:53:35 +01:00
Gaël Goinvic b401fb2144 pytest: log ingress_ready last exception if it still fails after 30s 2026-02-26 15:56:54 +01:00
Gaël Goinvic 06a250a05c Turn TLS tests: open socket against 127.0.0.1 2026-02-26 09:17:04 +01:00
Gaël Goinvic 8d412fcc26 Turn TLS: Retry on SSLEOFError 2026-02-25 17:18:03 +01:00
Gaël Goinvic 0ab5d12294 ci: retry setting up prometheus operator crds 2026-02-25 16:45:04 +01:00
Gaël Goinvic 8dbb6858ce integration tests do not need cert-manager 2026-02-25 15:07:28 +01:00
Gaël Goinvic 2089755880 Give 180s for traefik to become ready 2026-02-25 12:20:14 +01:00
Gaël Goinvic 93b72b787f ci: disable atomic deployment of helm dependencies to gather them in logs 2026-02-25 11:54:53 +01:00
Gaël Goinvic 8a2302f771 chart_from_ci_cache should not be a generator
- In case of exception, it yields twice, which is invalid contextmanager
behaviour
2026-02-25 11:07:05 +01:00
Gaël Goinvic bbb079b64b remove existing cached_ref if it exists 2026-02-25 11:07:05 +01:00
Gaël Goinvic c12e425895 k3d: enable debug logs
This should help diagnose whats going wrong in CI
2026-02-25 11:07:05 +01:00
Ben Banfield-Zanin d97aeae90e Allow specification of more options to k3d 2026-02-23 16:55:34 +00:00
Ben Banfield-Zanin b817e90f3f Test that references to Services do exist 2026-02-23 15:19:45 +00:00
Gaël Goinvic 0a4c76fa3e always pull remote chart, only fallback to cache if remote fails 2026-02-20 17:07:07 +01:00
Gaël Goinvic 08481a2739 pytest: cache the pyhelm oci files
- In CI, helm dependencies are going to be cached
- When running locally, the cache mechanism is not used
2026-02-20 17:07:07 +01:00
Ben Banfield-Zanin d4f59e2c67 Derive 'restartPolicy' from the controller's 'kind' 2026-02-20 09:45:38 +00:00
Gaël Goinvic 3a51a982a6 Matrix RTC: Make Turn TLS Termination on pod optional
- Adds a new `tlsTerminationOnPod` parameter to allow to terminate TLS
upstream
- This defaults to `true` for retro-compatibility with existing
behaviour
2026-02-19 14:04:16 +01:00
Gaël Goinvic 06e8e7de63 various fixes to oci helper 2026-02-10 08:44:33 +01:00
Gaël Goinvic bf334a9070 add support for authentication 2026-02-06 16:17:08 +01:00
Quentin Gliech 5e53de8d98 Only skip the test if we get a 404 from GitHub 2026-02-06 13:21:50 +01:00
Quentin Gliech ba6b5c2cd7 Add missing import 2026-02-06 13:17:30 +01:00
Quentin GliechandGaël Goinvic 9775f454f4 Use stricter checks to determine if the MAS tag is a semver version
Co-authored-by: Gaël Goinvic <[email protected]>
2026-02-06 13:15:55 +01:00
Quentin Gliech 926fdde608 Use a cache key similar to other cache keys 2026-02-06 13:10:33 +01:00
Quentin Gliech e838c46374 Add strict schema validation test for MAS config
This makes sure that all the MAS config we render with the test values
match the upstream JSON schema.

- Add jsonschema and types-jsonschema as dev dependencies
- Fetch the upstream MAS config JSON schema matching the chart's image tag
- Strictify the schema by recursively adding additionalProperties: false
  to all object sub-schemas (under both $defs and definitions)
- Merge config underrides and overrides per ConfigMap, then validate
- Parametrize over all CI values files, skipping when MAS is not enabled

Mostly done by Claude Opus
2026-02-06 13:05:00 +01:00
Gaël Goinvic dfce8316ad Support helmv4 --rollback-on-failure in pytest 2026-02-04 14:39:21 +01:00
Gaël Goinvic 0f7704aecf use oci repository to install cert-manager and prometheus-operator-crds 2026-02-04 08:50:04 +01:00
Gaël Goinvic 65adc24887 Merge pull request #1017 from element-hq/gaelg/setup-test-env-pytest
pytest: setup cluster using a dedicated test function
2026-02-02 10:12:35 +01:00
Gaël Goinvic b32651ebfa atomic is deprecated with helm 4 2026-02-02 09:08:30 +01:00
Gaël Goinvic 3a71989ac1 matrix-stack: drop autouse, pass to tests 2026-02-02 08:54:31 +01:00
Gaël Goinvic e1e2a3b73b pytest: setup cluster using a dedicated test function 2026-01-30 18:27:23 +01:00
Ben Banfield-Zanin 6175955fe2 Merge pull request #1010 from element-hq/gaelg/hookshot-widget
Hookshot widget : 404 under synapse ingress
2026-01-30 16:45:55 +00:00
Gaël Goinvic 40d47a9e1b reproduce hookshot widget 404 issue 2026-01-30 15:48:40 +00:00
Gaël Goinvic c0f2872156 Merge pull request #1016 from element-hq/gaelg/setup-test-env-pytest
Setup test env with pytest only
2026-01-30 16:45:32 +01:00
Gaël Goinvic 95a449fa9a Instanciate the cluster using pytest
- This removes code duplication between bash & pytest
- Pytest now exists early if `TEST_VALUES_FILE` is not set
2026-01-30 16:32:38 +01:00
Gaël Goinvic 98a30ce67a Setup cert-manager with pytest 2026-01-30 16:19:19 +01:00
Ben Banfield-Zanin 1cb6bab744 Support overwriting rather than merging some specific arrays in render-config 2026-01-30 14:03:01 +00:00
Gaël Goinvic 508a58c105 Ingress services: Add support for annotations
- This allows testing expected external IPs
- It can also help support LoadBalancer ingresses
2026-01-27 13:03:24 +01:00
Gaël Goinvic 732ad0e2f9 Add support for external IPs in services 2026-01-27 12:23:36 +01:00
Gaël Goinvic e7d8f734d3 Add support for external IPs in exposed services 2026-01-27 12:14:43 +01:00
Gaël Goinvic b6e542e79d allow not to set nodePort on exposed services 2026-01-26 14:33:54 +01:00
Gaël Goinvic f9478fc00b Add support for configuring traffic policy of exposed services
- This changes the default of the SFU exposed services to `Cluster` to
stay consistent with kubernetes defaults
2026-01-26 11:33:37 +01:00
Gaël Goinvic 981adc01fa refactor conditions to avoid negative logic 2026-01-26 11:13:33 +01:00