[WIP] Fix CI job failure in GitHub Actions for E4Application#38
Merged
[WIP] Fix CI job failure in GitHub Actions for E4Application#38
Conversation
Agent-Logs-Url: https://github.com/klibio/example.pde.rcp/sessions/b5f749ef-8fe3-4d40-a8f5-03d998ab39ab Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Copilot stopped work on behalf of
peterkir due to an error
April 3, 2026 14:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
./build.sh --jar-signingwithxvfb-run -a -s "-screen 0 1920x1080x24"in the build stepCollect Eclipse runtime metadatastep (if: always()) to tar.metadatadirUpload Eclipse runtime logsartifact step (if: always()) using pinned SHA action versionOriginal prompt
Create a PR to fix CI job failure in GitHub Actions run https://github.com/klibio/example.pde.rcp/actions/runs/23947290471/job/69846604690?pr=37.
Failure context:
Required changes:
xvfb-run -a -s "-screen 0 1920x1080x24".tests/example.rcp.tests.it/target/work/data/.metadataas a build artifact (e.g., tar.gz) withif: always()so the.metadata/.logis available even on failure.Acceptance criteria:
eclipse-runtime-logsis uploaded (warn if missing).Reference file versions previously inspected (for context only): .github/workflows/10_build-validation.yml at commit a20d4c7.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failing job is dying while Tycho tries to launch the UI test runtime for
tests/example.rcp.tests.it:org.eclipse.e4.ui.workbench.swt.E4ApplicationAn error has occurred. See the log file .../.metadata/.logunexpected error ... (process returned error code 13)forexample.rcp.tests.it(Tycho Surefire 5.0.2)That pattern almost always means: the SWT/Eclipse UI cannot start on the Linux CI runner because there is no display server (X11/Wayland) (or required GTK libs), so the application exits very early and Tycho just sees a non-zero exit code.
Solution (recommended): run UI tests under Xvfb on Linux CI
Wrap the build/test execution in a virtual X server so SWT can create a display.
Change
.github/workflows/10_build-validation.yml(refa20d4c7b6d4db84cfbbcde524e8ee45cbb1a4b1f)Update the
buildstep to runbuild.shunderxvfb-run:Why this fixes it:
tests/example.rcp.tests.it/pom.xmlsets<useUIHarness>true</useUIHarness>and launchesE4Application.ubuntu-latestthere’s no GUI session, so SWT will fail unless you provide a display (Xvfb).Optional hardening (helps stability on CI)
If UI startup is still flaky, add these JVM args to the Tycho surefire configuration in
tests/example.rcp.tests.it/pom.xml(refa20d4c7b6d4db84cfbbcde524e8ee45cbb1a4b1f):But in most cases, Xvfb alone is the key missing piece.
Quick note on the log hint
The job output points to the real Eclipse error details in:
tests/example.rcp.tests.it/target/work/data/.metadata/.logIf you also upload that
.metadata/.logfile as an artifact when tests fail, future debugging becomes much faster—but the primary fix here is to provide an X display via Xvfb so the UI runtime can start at all.User: do both uploading and xvfb fix
Assistant: I’m currently waiting for ...
This pull request was created from Copilot chat.