Skip to content

Commit 3806149

Browse files
committed
refactor(e2e): keep the gateway scripts in scripts/
They are ordinary repository scripts, so they live next to fetch-core.sh instead of under hack/automation. Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent 54e43c8 commit 3806149

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎.github/workflows/e2e.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
# Runs the E2E suite against the published gateway of a core version, started
4-
# from core's deploy/docker files (hack/automation/start-gateway.sh). Sandboxes
4+
# from core's deploy/docker files (scripts/start-gateway.sh). Sandboxes
55
# run the image from tests/e2e/Dockerfile.workload, which has the same Python
66
# as the client, so exec_python can unpickle what the client pickled.
77
name: e2e
@@ -45,7 +45,7 @@ jobs:
4545
set -euo pipefail
4646
version=${CORE_VERSION:-$(mise run -q core:version)}
4747
echo "Core version: $version" >>"$GITHUB_STEP_SUMMARY"
48-
hack/automation/start-gateway.sh "$version" --default-image openshell/e2e-python:dev
48+
scripts/start-gateway.sh "$version" --default-image openshell/e2e-python:dev
4949
5050
- name: Run the E2E suite
5151
env:
@@ -54,7 +54,7 @@ jobs:
5454

5555
- name: Stop the gateway
5656
if: always()
57-
run: hack/automation/stop-gateway.sh
57+
run: scripts/stop-gateway.sh
5858

5959
- name: Upload the gateway log
6060
if: failure()

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ compute driver. To run it locally, you need Docker with the compose plugin:
4848

4949
```shell
5050
mise run e2e:image
51-
hack/automation/start-gateway.sh "$(mise run -q core:version)" --default-image openshell/e2e-python:dev
51+
scripts/start-gateway.sh "$(mise run -q core:version)" --default-image openshell/e2e-python:dev
5252
OPENSHELL_GATEWAY=e2e mise run e2e
53-
hack/automation/stop-gateway.sh
53+
scripts/stop-gateway.sh
5454
```
5555

5656
`e2e:image` builds the sandbox image from `tests/e2e/Dockerfile.workload`, a

‎mise.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ docker build --file tests/e2e/Dockerfile.workload --build-arg "PYTHON_VERSION=
110110
"""
111111

112112
[tasks.e2e]
113-
description = "Run the E2E suite against the gateway named in OPENSHELL_GATEWAY (see hack/automation/start-gateway.sh)"
113+
description = "Run the E2E suite against the gateway named in OPENSHELL_GATEWAY (see scripts/start-gateway.sh)"
114114
depends = ["sync"]
115115
run = "uv run --frozen pytest tests/e2e -n ${E2E_PARALLEL:-5}"
116116

‎tests/e2e/conftest.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""Fixtures for the E2E suite.
55
66
The suite runs against the gateway named in ``OPENSHELL_GATEWAY``, for example
7-
the one ``hack/automation/start-gateway.sh`` registers as ``e2e``. Without it,
7+
the one ``scripts/start-gateway.sh`` registers as ``e2e``. Without it,
88
every test is skipped. See ``mise run e2e``.
99
"""
1010

0 commit comments

Comments
 (0)