Skip to content

docs(e2e-testing): add the E2E test tutorial, catalog and reusable workflow - #777

Merged
matbmoser merged 10 commits into
eclipse-tractusx:mainfrom
matbmoser:docs/e2e-test-workshop
Nov 25, 2026
Merged

matbmoser merged 10 commits into
eclipse-tractusx:mainfrom
matbmoser:docs/e2e-test-workshop

Conversation

@matbmoser

@matbmoser matbmoser commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Description

Adds e2e-testing/: hands-on material for the "AI and Test Management" session of the 7th Eclipse Tractus-X Community Days (3–4 December 2026). A team builds an end-to-end test (a TCK project for Eclipse Tractus-X TestLab) for one Tractus-X product, commits it to the product's repository, links it in .tractusx and sees it run in GitHub Actions. The long-term goal is an E2E test in every product repository; the matching draft TRG is linked below.

What Where
Tutorial, eight chapters, about an hour of work, with a story, a glossary and troubleshooting e2e-testing/docs/ (plain Markdown; mkdocs.yml turns it into a site in the Tractus-X look)
Product catalog: 29 products from the real repositories and their .tractusx metafiles, with schema and a generated page e2e-testing/catalog/
Template E2E test project and a worked example for the Digital Twin Registry e2e-testing/template/, e2e-testing/examples/digital-twin-registry/
Reusable workflow: validate, compile, then run in the Eclipse Tractus-X developer toolbox (a dataspace created in the runner from the pinned Umbrella chart) .github/workflows/e2e-test.yml
Administrator kit: deploy, configure, assign, handout generator, run of show, presentation prompt e2e-testing/docs/admin/, e2e-testing/admin/handouts/
Route and agent kit for teams that build with their own AI coding tool e2e-testing/agent-kit/, docs/tutorial/03-alternative-your-own-ai-tool.md

Also: a line in the root README.md, a CODEOWNERS entry, and two workflows that keep the example and the site honest (e2e-testing-example.yml, e2e-testing-site.yml).

GitHub Pages. pages.yml publishes the whole Pages site with GitHub Actions: a home page at the root (pages/index.html) that lists all the tutorials, the E2E tutorial at /e2e-testing/ and the EDC Policy Playground at /policy-playground/. It replaces the gh-pages branch publishing (publish-playground.yaml is removed; e2e-testing-site.yml is a pull request check only). On the tutorial site, diagrams get zoom and full-screen controls (taken from the Tractus-X EDC docs), and the line at the end of each page becomes Previous and Next buttons.

Related draft TRG: eclipse-tractusx/eclipse-tractusx.github.io#1654

How it was checked

Check Result
Reusable workflow, real run on a fork of this repository Green: worked example 3/3 tests, template 2/2 tests. https://github.com/matbmoser/tutorial-resources/actions/runs/45396201888
Reusable workflow called from a product repository (fork of sldt-digital-twin-registry), with the project exported from the IDE Green, 5 min 25 s. https://github.com/matbmoser/sldt-digital-twin-registry/actions/runs/45396698112
testlab validate / compile / inspect on template and example (tractusx-testlab 1.0.0a24) Pass
IDE steps (open the template, compile, run dialog up to Run, export) Done in a running IDE; the screenshots are from it
Commands of chapters 6 and 7 Run on a fork, with the fork's addresses in place of eclipse-tractusx/...@main
actionlint on the three workflows Pass (four shellcheck style notes come from the steps taken over from TestLab)
Site: mkdocs build --strict; catalog page and template archive --check Pass
Pages site assembled locally as pages.yml builds it, served under /tutorial-resources/ Home, tutorial and playground load; no failed requests in the playground; diagram zoom, full screen and Escape work
Licence header check of this repository (verify-license-headers) Pass on the fork
Tutorial followed by a fresh reader with no other context Done; findings fixed

Not verified

  • A run to green in a hosted IDE. No connectors were available next to the IDE. The run dialog was followed to its last step; the same project is green in GitHub Actions. docs/admin/configure.md lists what must be settled in the dry run.
  • The assistant's answers. A local model (Ollama, qwen2.5:7b) was connected through Local / self-hosted LLM: the connection, CORS and the streaming request worked, and the IDE sent about 26,000 tokens of instructions with the template open. On the heavily loaded laptop used, the model did not answer within seven minutes, so no answer, plan or agent edit was observed. The starter prompts and the assistant steps of chapter 4 follow the IDE's labels and are untested against a model.
  • One connector pair per team in one cluster, the config and toolbox-values inputs of the workflow with a caller's own file, and the Pages deployment itself (it runs only on this repository's main).
  • The presentation prompt was not run through a presentation tool.
  • The agent kit for other AI tools was added by a parallel working session; see its own notes.

Open decisions

  1. Address of the IDE at ARENA2036. Placeholder https://ide.example.org.
  2. Team list. catalog/assignments.json holds five invented teams ("sample": true).
  3. .tractusx field. e2eTests with name, path, workflow is a proposal of the draft TRG and extends TRG 2.05.
  4. Home of the reusable workflow. Here for now; sig-infra or tractusx-testlab may be the better place. Until this is merged, ...e2e-test.yml@main does not exist, so it must be merged (or the reference changed) before the session.
  5. Folder name in product repositories. tck/e2e is the default; the metafile carries the real path.
  6. GitHub Pages source. pages.yml deploys with GitHub Actions, so Settings → Pages → Source must be switched from "Deploy from a branch" to "GitHub Actions" before or right after merging. The playground keeps its address.
  7. Pinning. Callers reference @main; a tag or commit should replace it once published.

Pre-review checks

  • DEPENDENCIES are up-to-date: no dependency of a shipped product is added. The site and handout tools are listed in e2e-testing/requirements.txt.
  • Copyright and license header are present on all affected files (Apache-2.0 on code and YAML, CC-BY-4.0 notices on pages, .license files next to images).

AI assistance: this contribution was written with Claude Code and reviewed by the contributor.

🤖 Generated with Claude Code

Adds .github/workflows/e2e-test.yml, a reusable workflow that validates,
compiles and runs an E2E test project (a TCK project) against a Tractus-X
Umbrella created inside the runner, and a first worked example for the
Digital Twin Registry that the workflow runs.

Assisted-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
Assisted-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
Two calls of the reusable workflow in one run shared the artifact name, so
the second job ran the first one's package.

Assisted-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
…out generator

Assisted-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
…w and the README

Includes the route for teams that build with their own AI tool, and the
agent kit it uses.

Assisted-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
…utorial section

Assisted-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
…creenshot

Assisted-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
Chapter 3 becomes a choice between three routes: an API key in the IDE,
a local model in the IDE (with model sizes, hardware needs and limits),
or the reader's own AI tool with upload to the IDE. A reference page
compares the options.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
Small model mode now hands changes to IDE actions and reads the project
before answering a question. In the last trial qwen2.5:3b and 7b each
did all nine tutorial tasks, so the 3B-over-7B advice, the 64k-context
requirement and the troubleshooting rows are updated to match.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
MkDocs slugs "B · A local model in the IDE" as b-a-local-model-in-the-ide;
the GitHub-style double hyphen failed the strict build.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant