Commit Graph
593 Commits
Author SHA1 Message Date
Ben Banfield-Zanin bca3d88799 Set timeouts on curl requests in CI 2025-12-15 11:07:24 +00:00
Gaël Goinvic 6c5b2ada63 Workloads: maxUnavailble cannot be 0 if maxSurge is 0 2025-12-03 11:42:22 +01:00
Gaël Goinvic 1863da30db Tests: Add requires_one_by_one_rollout
If a deployment has `requires_one_by_one` rollout set to True, it means
its `maxSurge`should be 1 to avoid race conditions.
2025-12-03 10:28:34 +01:00
Bardi Harborow eb7d3b3bfd Expose services as dual-stack where possible
This commit directs Kubernetes to assign both IPv4 and IPv6 ClusterIPs to all services where possible.
2025-12-02 23:06:47 +11:00
Ben Banfield-Zanin 1c529b9187 Use k3d instead of kind 2025-11-28 13:31:24 +00:00
Ben Banfield-Zanin ac77363672 Stop test_pods_monitored flaking 2025-11-26 15:47:13 +00:00
Ben Banfield-Zanin 33cb68c3a1 Remove imagePullSecrets 2025-11-26 15:30:17 +00:00
Gaël Goinvic 78f676fa43 make cached manifests immutable and enhance caching 2025-11-26 15:54:22 +01:00
Ben Banfield-Zanin 630ad34160 Ensure Postgres is fully setup before marking as available or live.
When the Postgres container initialises itself it does so without binding any TCP ports, only allowing
connections on the Unix socket. Only after it restarts after running the entrypoint scripts/SQL does it
bind TCP ports. Make the liveness/readiness/startup probes only use the TCP port so that we don't mark
Postgres as being ready and available too early.

```
...
2025-11-25 16:56:15.588 UTC [32] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-11-25 16:56:15.597 UTC [35] LOG:  database system was shut down at 2025-11-25 16:56:15 UTC
2025-11-25 16:56:15.606 UTC [32] LOG:  database system is ready to accept connections
 done
server started

/usr/local/bin/docker-entrypoint.sh: sourcing /docker-entrypoint-initdb.d/init-ess-dbs.sh
Password:
Password:
CREATE ROLE
Password:
Password:
Password:
CREATE ROLE
Password:

2025-11-25 16:56:15.934 UTC [32] LOG:  received fast shutdown request
waiting for server to shut down....2025-11-25 16:56:15.938 UTC [32] LOG:  aborting any active transactions
2025-11-25 16:56:15.946 UTC [32] LOG:  background worker "logical replication launcher" (PID 38) exited with exit code 1
2025-11-25 16:56:15.954 UTC [33] LOG:  shutting down
2025-11-25 16:56:15.958 UTC [33] LOG:  checkpoint starting: shutdown immediate
2025-11-25 16:56:16.042 UTC [33] LOG:  checkpoint complete: wrote 1853 buffers (1.4%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.071 s, sync=0.008 s, total=0.088 s; sync files=604, longest=0.003 s, average=0.001 s; distance=8515 kB, estimate=8515 kB; lsn=0/1D3DDC0, redo lsn=0/1D3DDC0
2025-11-25 16:56:16.070 UTC [32] LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

2025-11-25 16:56:16.189 UTC [1] LOG:  starting PostgreSQL 17.7 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
2025-11-25 16:56:16.189 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2025-11-25 16:56:16.189 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2025-11-25 16:56:16.194 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-11-25 16:56:16.202 UTC [87] LOG:  database system was shut down at 2025-11-25 16:56:16 UTC
2025-11-25 16:56:16.257 UTC [1] LOG:  database system is ready to accept connections
/usr/local/bin/docker-entrypoint.sh: sourcing /docker-entrypoint-initdb.d/init-ess-dbs.sh
Password:
Password:
CREATE ROLE
Password:
Password:
Password:
CREATE ROLE
Password:

2025-11-25 16:56:15.934 UTC [32] LOG:  received fast shutdown request
...
2025-11-25 16:56:30.082 UTC [129] ERROR:  deadlock detected
2025-11-25 16:56:30.082 UTC [129] DETAIL:  Process 129 waits for ShareLock on virtual transaction 22/5; blocked by process 130.
	Process 130 waits for ExclusiveLock on advisory lock [16385,438033630,3765090638,1]; blocked by process 129.
	Process 129: -- no-transaction
	-- Copyright 2025 New Vector Ltd.
	--
	-- SPDX-License-Identifier: AGPL-3.0-only
	-- Please see LICENSE in the repository root for full details.

	CREATE INDEX CONCURRENTLY
	  compat_access_tokens_session_fk
	  ON compat_access_tokens (compat_session_id);

	Process 130: SELECT pg_advisory_lock($1)
...
```
2025-11-26 10:41:21 +00:00
Gaël Goinvic e21b26b62f Merge pull request #896 from element-hq/gaelg/assert-no-initsecret
make sure no secret is generated when unneeded
2025-11-25 17:02:05 +01:00
Gaël Goinvic 89aaec97db make sure no secret is generated when unneeded 2025-11-25 16:39:04 +01:00
Ben Banfield-Zanin f1b8853e3d Test emptyDirs are memory backed 2025-11-25 09:03:06 +00:00
Ben Banfield-Zanin 9f371c4a78 Improve the hook tests by asserting presence/absence of Hook annotations based on DeployableDetails 2025-11-21 14:13:47 +00:00
Ben Banfield-Zanin 270b694855 Merge pull request #880 from element-hq/bbz/hook-weight-consolidation
Hook Weight consolidation
2025-11-20 16:47:36 +00:00
Ben Banfield-Zanin 0a5502a0ff Harmonise the hook weights 2025-11-20 16:38:32 +00:00
Ben Banfield-Zanin 4dbfd71fa2 Add basic hook tests 2025-11-20 14:52:06 +00:00
Ben Banfield-Zanin df11e7301d Add some initial basic hook tests 2025-11-20 14:37:05 +00:00
Gaël Goinvic 8752274184 fix element-web and matrix-rtc sfu ingresses not targetting port names 2025-11-20 11:08:57 +01:00
Ben Banfield-Zanin d10346e171 Rename test to reflect its new reality 2025-11-19 16:23:13 +00:00
Ben Banfield-Zanin 939decc7c1 Remove the need to track shared_component_names 2025-11-19 16:23:13 +00:00
Ben Banfield-Zanin 0c869176e7 Remove active_component_names from ComponentDetails, it is unused 2025-11-19 16:23:13 +00:00
Ben Banfield-Zanin 3a2c564e6f Remove podAntiAffinity 2025-11-14 10:21:09 +00:00
Ben Banfield-Zanin 7b38093ba0 Set a sensible, soft, default topologySpreadConstraint for everything 2025-11-14 10:21:09 +00:00
Ben Banfield-Zanin 02713d12be Clarify that topologySpreadConstraints[].whenUnsatisfiable can be omitted too 2025-11-14 10:21:09 +00:00
Ben Banfield-Zanin 24a3102357 Support topologySpreadConstraints everywhere 2025-11-14 10:21:09 +00:00
Ben Banfield-Zanin 7f0be9cf72 CI: debug the syn2mas test 2025-11-13 15:02:03 +00:00
Ben Banfield-Zanin 95f868eaec Merge replica tests for Deployments and StatefulSets 2025-11-12 16:39:02 +00:00
Ben Banfield-Zanin 8fba8fab19 Update bug reporting endpoint 2025-11-06 10:05:40 +00:00
Ben Banfield-Zanin aaffdf794e Use released version of pytest-kubernetes 2025-10-28 12:21:53 +00:00
Ben Banfield-Zanin 50f65012f7 git ls-files | xargs sed -i '/^# Copyright .* New Vector Ltd/a # Copyright 2025 Element Creations Ltd' 2025-10-27 09:36:54 +00:00
Ben Banfield-Zanin 75c884dc74 git ls-files | xargs sed -i '/^Copyright .* New Vector Ltd/a Copyright 2025 Element Creations Ltd' 2025-10-27 08:43:19 +00:00
Gaël Goinvic a8d5bbfda7 deployable details: lets not consider the None case, it should never be 2025-10-23 18:03:23 +02:00
Gaël Goinvic aac91f5a5c config tests: deployable details is Optional 2025-10-23 16:58:06 +02:00
Gaël Goinvic a7c2b43ce2 add typing 2025-10-23 16:28:52 +02:00
Gaël Goinvic 97ab73e9e2 use all container content helper 2025-10-23 15:38:18 +02:00
Gaël Goinvic 4241ee0fcd deployable_details can be None 2025-10-23 15:24:48 +02:00
Gaël Goinvic 39853c57a9 fix haproxy placeholder must be ignored 2025-10-23 14:50:40 +02:00
Gaël Goinvic 9703738161 rename find_key_mounts to find_path_in_content 2025-10-23 14:19:59 +02:00
Gaël Goinvic 6abe6e8d04 use a MountPath class instead of node_path func 2025-10-23 14:19:59 +02:00
Gaël Goinvic f7e122fb5b fix typo in comment 2025-10-23 14:19:59 +02:00
Gaël Goinvic 932ddf3152 comment the /secrets exception 2025-10-23 14:19:59 +02:00
Gaël Goinvic 218b7ee497 inspect lifecycle prestop commands and fix postgres-ess-updater 2025-10-23 14:19:59 +02:00
Gaël Goinvic 97b911cdec use a generator to traverse containers 2025-10-23 14:19:58 +02:00
Gaël Goinvic 8a1a34c4e0 pass depoyable_details through tests 2025-10-23 14:19:58 +02:00
Gaël Goinvic a11d5c94d4 pass full container_spec to get_all_mounted_files 2025-10-23 14:19:58 +02:00
Gaël Goinvic 9382a0e67e enhance error message 2025-10-23 14:19:58 +02:00
Gaël Goinvic 81eaf668fc replace noqa with per-container & per-test skip logic 2025-10-23 14:19:58 +02:00
Gaël Goinvic 1b5eb0e6c4 add ignores files 2025-10-23 14:19:58 +02:00
Gaël Goinvic d5af707679 drop lookalike tests 2025-10-23 14:19:58 +02:00
Gaël Goinvic 955e41b6e3 fix comments around ConfigMapConsumer 2025-10-23 14:19:58 +02:00