Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 24 additions & 22 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
# with:
# tck-directory: tck/e2e
#
# Job "validate" needs nothing but Python. Job "e2e" creates a kind cluster,
# deploys two connectors, two wallets (IdentityHub), a Digital Twin Registry,
# a BDRS and an IssuerService from the Tractus-X Umbrella chart, issues the
# participants' credentials, and then runs the compiled package against it.
# Job "validate" needs nothing but Python. Job "e2e" starts the Eclipse
# Tractus-X developer toolbox: a kind cluster in the runner with two
# connectors, two wallets (IdentityHub), a Digital Twin Registry, a BDRS and an
# IssuerService, deployed from the Tractus-X Umbrella chart with a small
# dataspace configuration. It issues the participants' credentials, and then
# runs the compiled package against it.
# No secrets and no external cluster are used.
#
# The dataspace bring-up (every step between "Reclaim runner disk space" and
Expand All @@ -54,16 +56,16 @@ on:
description: Version of tractusx-testlab on PyPI that validates, compiles and runs the project.
type: string
default: "1.0.0a24"
run-in-umbrella:
description: Run the tests against a Tractus-X Umbrella created in the runner. Set to false to only validate and compile.
run-in-toolbox:
description: Run the tests in the Eclipse Tractus-X developer toolbox, a dataspace created in the runner. Set to false to only validate and compile.
type: boolean
default: true
config:
description: Optional run configuration (a YAML file with "variables:") in the calling repository. It is merged over the Umbrella's values.
description: Optional run configuration (a YAML file with "variables:") in the calling repository. It is merged over the developer toolbox's values.
type: string
default: ""
umbrella-values:
description: Optional extra Helm values file in the calling repository, applied last. Use it to deploy the image built from this pull request.
toolbox-values:
description: Optional extra Helm values file for the developer toolbox in the calling repository, applied last. Use it to deploy the image built from this pull request.
type: string
default: ""
testlab-ci-ref:
Expand Down Expand Up @@ -134,9 +136,9 @@ jobs:
retention-days: 14

e2e:
name: Run in Tractus-X Umbrella
name: Run in Eclipse Tractus-X developer toolbox
needs: validate
if: ${{ inputs.run-in-umbrella }}
if: ${{ inputs.run-in-toolbox }}
runs-on: ubuntu-latest
timeout-minutes: 75
env:
Expand All @@ -160,7 +162,7 @@ jobs:
SUBMODEL_SERVER_URL: http://tck-submodel.local
PROBE_SCRIPT: .testlab-ci/tests/e2e/connector-dtr-smoke/ci/probe_from_pod.sh
WEDGE_SCRIPT: .testlab-ci/tests/e2e/connector-dtr-smoke/ci/restart_wedged_runtimes.py
UMBRELLA_EXTRA_VALUES: ${{ inputs.umbrella-values }}
UMBRELLA_EXTRA_VALUES: ${{ inputs.toolbox-values }}
CALLER_CONFIG: ${{ inputs.config }}
# Single source of truth for the dataspace hostnames, used for both the
# runner's /etc/hosts and the cluster's CoreDNS.
Expand Down Expand Up @@ -431,7 +433,7 @@ jobs:
PY
echo "UMBRELLA_VAULT_SECRETS=${secrets}" >> "${GITHUB_ENV}"

- name: Prepare and validate pinned Umbrella chart
- name: Prepare and validate the developer toolbox (pinned Umbrella chart)
run: |
set -euo pipefail
chart_dir="${RUNNER_TEMP}/umbrella"
Expand Down Expand Up @@ -567,7 +569,7 @@ jobs:
}
missing = sorted(expected_deployments - deployments)
if missing:
raise SystemExit(f"Umbrella manifest is missing deployments: {', '.join(missing)}")
raise SystemExit(f"Developer toolbox manifest is missing deployments: {', '.join(missing)}")

hooks = {
document["metadata"]["name"]
Expand All @@ -577,7 +579,7 @@ jobs:
missing_hooks = sorted(expected_hooks - hooks)
if missing_hooks:
raise SystemExit(
f"Umbrella manifest is missing install hooks: {', '.join(missing_hooks)}"
f"Developer toolbox manifest is missing install hooks: {', '.join(missing_hooks)}"
)

install_resources = [
Expand All @@ -593,7 +595,7 @@ jobs:
]
duplicates = sorted(key for key, count in Counter(install_resources).items() if count > 1)
if duplicates:
raise SystemExit(f"Umbrella manifest has duplicate resources: {duplicates}")
raise SystemExit(f"Developer toolbox manifest has duplicate resources: {duplicates}")

expected_routes = {
"provider-dsp.local": {"/api/v1/dsp"},
Expand All @@ -615,7 +617,7 @@ jobs:
if ingress_routes.get(host) != paths
}
if wrong_routes:
raise SystemExit(f"Umbrella manifest has incorrect connector routes: {wrong_routes}")
raise SystemExit(f"Developer toolbox manifest has incorrect connector routes: {wrong_routes}")
# Public EDR endpoint lives on <participant>.local via the control
# plane's metrics slot. DSP must NOT share that host — the chart
# still derives the callback from ingresses[0], but peers must only
Expand All @@ -633,7 +635,7 @@ jobs:
if path.startswith("/connector")
)
if prefixed_routes:
raise SystemExit(f"Umbrella manifest still has /connector routes: {prefixed_routes}")
raise SystemExit(f"Developer toolbox manifest still has /connector routes: {prefixed_routes}")

# The tractusx-connector chart derives EDC_DSP_CALLBACK_ADDRESS from
# controlplane.ingresses[0] unless the env is pinned. A wrong host
Expand Down Expand Up @@ -662,11 +664,11 @@ jobs:
}
if wrong_callbacks:
raise SystemExit(
"Umbrella control planes advertise the wrong DSP callback "
"Developer toolbox control planes advertise the wrong DSP callback "
f"address: {wrong_callbacks}"
)

print("Umbrella manifest contains both connectors, the shared DTR, the issuer,")
print("Developer toolbox manifest contains both connectors, the shared DTR, the issuer,")
print("the vault-setup hooks, isolated connector routes, and DSP callbacks.")
print("Ingress hosts:", ", ".join(sorted(h for h in ingress_routes if h)))
PY
Expand Down Expand Up @@ -721,7 +723,7 @@ jobs:
df -h /
docker exec tck-e2e-control-plane df -h /

- name: Deploy Tractus-X Umbrella (decentralized IdentityHub profile)
- name: Deploy the Eclipse Tractus-X developer toolbox (decentralized IdentityHub profile)
run: |
set -uo pipefail
# `--wait` is load-bearing, not just convenience: Helm waits for
Expand Down Expand Up @@ -1249,7 +1251,7 @@ jobs:
if: ${{ failure() || cancelled() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: umbrella-diagnostics-${{ needs.validate.outputs.slug }}
name: toolbox-diagnostics-${{ needs.validate.outputs.slug }}
path: ci-logs/
retention-days: 14

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-testing-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#################################################################################

# Keeps the worked example of the E2E testing tutorial honest: it is validated,
# compiled and run against a Tractus-X Umbrella whenever it, the template or
# compiled and run in the Eclipse Tractus-X developer toolbox whenever it, the template or
# the reusable workflow changes.

name: E2E testing tutorial - worked example
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/e2e-testing-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
# The whole history: the About panel shows when the tutorial was added.
fetch-depth: 0

- name: Set up Python 3.12
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
Expand All @@ -75,6 +78,9 @@ jobs:
run: python admin/handouts/build_handouts.py --inventory admin/handouts/inventory.sample.json --no-pdf --out "${RUNNER_TEMP}/handouts"

- name: Build the site
env:
# Read-only: the authors in the About panel come from the GitHub API.
GITHUB_TOKEN: ${{ github.token }}
run: mkdocs build --strict --site-dir "${RUNNER_TEMP}/site"

- name: Upload the site
Expand Down
2 changes: 1 addition & 1 deletion e2e-testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Made for the "AI and Test Management" session of the 7th Eclipse Tractus-X Commu
| Looking up a word | [Glossary](docs/reference/glossary.md) |
| Running the session | [For administrators](docs/admin/index.md) |

## The tutorial
## Getting Started

| | Chapter | Minutes |
| --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion e2e-testing/catalog/build_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def row(product: dict) -> str:

def table(products: list[dict]) -> list[str]:
return [
"| Product | Suggested E2E scenario | Needs | In the Umbrella | Difficulty |",
"| Product | Suggested E2E scenario | Needs | In the developer toolbox | Difficulty |",
"| --- | --- | --- | --- | --- |",
*[row(product) for product in products],
]
Expand Down
2 changes: 1 addition & 1 deletion e2e-testing/catalog/products.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"scenario": "A setup generated with the default answers starts, and its first data exchange succeeds.",
"difficulty": "advanced",
"fitsWorkshop": false,
"workshopNote": "Runs in Docker Compose, not in the Umbrella: the workflow needs its own bring-up step."
"workshopNote": "Runs in Docker Compose, not in the developer toolbox: the workflow needs its own bring-up step."
},
{
"id": "tractusx-testlab",
Expand Down
2 changes: 1 addition & 1 deletion e2e-testing/catalog/products.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"uniqueItems": true
},
"runsInUmbrella": {
"description": "True when the Tractus-X Umbrella chart deploys the product.",
"description": "True when the Tractus-X Umbrella chart, and so the Eclipse Tractus-X developer toolbox, deploys the product.",
"type": "boolean"
},
"umbrellaChart": {
Expand Down
2 changes: 1 addition & 1 deletion e2e-testing/docs/admin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ flowchart LR
IDE --> ENG["Engine"]
ENG --> PAIR["The team's connector pair<br/>+ registry, wallets, BDRS"]
B --> GH["GitHub<br/>fork and pull request"]
GH --> RUN["Runner<br/>its own Umbrella"]
GH --> RUN["Runner<br/>its own developer toolbox"]
```

The model is the team's own. Nothing about it is deployed or paid for by the event.
Expand Down
4 changes: 2 additions & 2 deletions e2e-testing/docs/admin/presentation-prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ FACTS YOU MAY STATE. Use them exactly. Do not add figures of your own.
- Eclipse Tractus-X TestLab is the open-source engine that validates,
compiles and runs TCKs.
- A test has three phases: setup, execution, teardown.
- The workflow creates a small dataspace inside the GitHub runner from the
Tractus-X Umbrella: two connectors, two wallets, a Digital Twin Registry,
- The workflow creates a small dataspace inside the GitHub runner, the
Eclipse Tractus-X developer toolbox: two connectors, two wallets, a Digital Twin Registry,
a BDRS and an IssuerService. It needs no secrets and no external cluster.
- The worked example (Digital Twin Registry) has 3 tests and 19 steps and
runs in GitHub Actions in about five and a half minutes.
Expand Down
Loading
Loading