Skip to content

ci: e2e job overlaying fresh example build on nightly image#11

Open
juliusknorr wants to merge 3 commits into
mainfrom
ci/e2e-overlay-nightly
Open

ci: e2e job overlaying fresh example build on nightly image#11
juliusknorr wants to merge 3 commits into
mainfrom
ci/e2e-overlay-nightly

Conversation

@juliusknorr

@juliusknorr juliusknorr commented Jun 12, 2026

Copy link
Copy Markdown
Member

Adds an e2e workflow that builds the Node.js example app (pkg), overlays it onto ghcr.io/euro-office/documentserver:nightly, and runs the DocumentServer Playwright e2e suite against it. The suite drives /example/, so a change here is directly exercised without rebuilding the rest of the stack.

How it works

  • Initialises the nodejs example asset submodules (document-formats, document-templates, plugin-aiautofill) so pkg can embed them via public/** — without them the binary crashes at startup (Cannot find module onlyoffice-docs-formats.json) and /example/ never comes up.
  • pkg-builds the example, overlays the binary onto the image (documentserver-example/example; path discovered via the sdkjs dir), and runs the e2e suite from Euro-Office/DocumentServer (matching branch, fallback main).
  • On failure, a diagnostic step boots the overlay image and dumps the example process logs, so a startup error is visible in CI (the e2e harness removes its own container on teardown).

All involved repos and the documentserver package are public (no PAT).

Verified green against the current nightly.

Builds the pkg example binary and overlays it onto
ghcr.io/euro-office/documentserver:nightly, then runs the DocumentServer
Playwright e2e suite for fast full-stack feedback.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Julius Knorr <jus@bitgrid.net>
@juliusknorr juliusknorr force-pushed the ci/e2e-overlay-nightly branch from 331edca to 312bfff Compare June 12, 2026 19:12
Surface the real example-app startup error in CI (the e2e harness removes
its container on teardown), to diagnose why /example/ does not come up.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Julius Knorr <jus@bitgrid.net>
The example crashed at startup (Cannot find module
onlyoffice-docs-formats.json) because document-formats/document-templates
are submodules that pkg embeds via public/**; the checkout skipped them.
Init just the nodejs example's asset submodules so /example/ comes up.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Julius Knorr <jus@bitgrid.net>
@juliusknorr juliusknorr marked this pull request as ready for review June 13, 2026 19:14
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