Skip to content

Commit 0abf937

Browse files
Copilotpeterkir
andauthored
[WIP] Fix CI job failure in GitHub Actions for E4Application (#38)
* Initial plan * fix: run UI tests under Xvfb and upload Eclipse runtime logs 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> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
1 parent c709ec1 commit 0abf937

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/10_build-validation.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ jobs:
4242
4343
export JAVA_HOME_21=$JAVA_HOME_21_X64
4444
export PATH=$JAVA_HOME/bin:$PATH
45-
./build.sh --jar-signing
45+
46+
sudo apt-get update
47+
sudo apt-get install -y xvfb
48+
49+
xvfb-run -a -s "-screen 0 1920x1080x24" ./build.sh --jar-signing
4650
4751
- name: validate-build-results
4852
shell: bash
@@ -198,6 +202,28 @@ jobs:
198202
echo "- Artifact: ci-reports-styled (includes index.html + stylesheet)" >> "$GITHUB_STEP_SUMMARY"
199203
echo "- Artifact: coverage-html (raw JaCoCo site, when available)" >> "$GITHUB_STEP_SUMMARY"
200204
205+
- name: Collect Eclipse runtime metadata
206+
if: always()
207+
shell: bash
208+
run: |
209+
set -euo pipefail
210+
mkdir -p .ci-eclipse-logs
211+
META_DIR="tests/example.rcp.tests.it/target/work/data/.metadata"
212+
if [[ -d "$META_DIR" ]]; then
213+
tar -czf .ci-eclipse-logs/example.rcp.tests.it.metadata.tar.gz -C "$(dirname "$META_DIR")" "$(basename "$META_DIR")"
214+
echo "Collected $META_DIR"
215+
else
216+
echo "No metadata directory found at $META_DIR"
217+
fi
218+
219+
- name: Upload Eclipse runtime logs
220+
if: always()
221+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
222+
with:
223+
name: eclipse-runtime-logs
224+
path: .ci-eclipse-logs/**
225+
if-no-files-found: warn
226+
201227
- name: upload styled test and coverage reports
202228
if: always()
203229
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7

0 commit comments

Comments
 (0)