Skip to content

Commit 8ee091b

Browse files
Merge pull request #1199 from element-hq/gaelg/merge-k3d-ctx
Merge k3d context after setup
2 parents 887b6f3 + 5086bda commit 8ee091b

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

DEVELOPERS.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ run `pytest-ess -- --cache-clear`.
172172
You must delete it using `k3d cluster delete ess-helm` manually before running any other test run.
173173

174174
#### Usage
175-
Use `k3d kubeconfig merge ess-helm -ds` to get access to the cluster.
176-
177175
The tests will use the cluster constructed by `scripts/setup_test_cluster.sh` if that is
178176
running. If the tests use an existing cluster, they won't destroy the cluster afterwards.
179177

newsfragments/1199.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CI: Publish ESS tests as a python package for use in external projects and developers environments.

scripts/setup_test_cluster.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ ess_namespaces=${ESS_NAMESPACES:-ess}
1414

1515
uv run setup-ess-cluster
1616

17-
k3d kubeconfig merge ess-helm -ds
18-
1917
for namespace in $ess_namespaces; do
2018
echo "Constructing ESS dependencies in $namespace"
2119
server_version=$(kubectl --context $k3d_context_name version | grep Server | sed 's/.*v/v/' | awk -F. '{print $1"."$2}')

tests/README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,18 @@ You can also install it from the git repository :
3434
```sh
3535
# You can also use any ESS Community version
3636
VERSION=main
37-
uvx git+https://github.com/element-hq/ess-helm.git@$VERSION#subdirectory=tests
37+
uv tool install git+https://github.com/element-hq/ess-helm.git@$VERSION#subdirectory=tests
3838
```
3939

4040
Example:
4141

4242
```sh
4343
VERSION=main
44-
uvx git+https://github.com/element-hq/ess-helm.git@$VERSION#subdirectory=tests
44+
uv tool install git+https://github.com/element-hq/ess-helm.git@$VERSION#subdirectory=tests
4545
Updated https://github.com/element-hq/ess-helm.git (d6d33a7f7051a0b6bbdcc609a059ae328feee269)
4646
Built ess-community-integration-tests @ git+https://github.com/element-hq/ess-helm.git@d6d33a7f7051a0b6bbdcc609a059ae328feee269#subdirectory=tests
47-
Installed 60 packages in 5ms
48-
An executable named `ess-community-integration-tests` is not provided by package `ess-community-integration-tests`.
49-
The following executables are available:
50-
- collect-ess-logs
51-
- pytest-ess
52-
- setup-ess-cluster
47+
...
48+
Installed 3 executables: collect-ess-logs, pytest-ess, setup-ess-cluster
5349
```
5450

5551
## Usage

tests/integration/scripts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,6 @@ def setup_cluster():
197197

198198
os.environ["PYTEST_KEEP_CLUSTER"] = "1"
199199
errcode = pytest.main([str(HERE)] + ["--env-setup"])
200+
subprocess.run("k3d kubeconfig merge ess-helm -ds", shell=True, check=True)
201+
200202
sys.exit(errcode)

0 commit comments

Comments
 (0)