Skip to content
Merged
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
19 changes: 18 additions & 1 deletion .github/workflows/e2e-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ jobs:
set -eo pipefail
BRANCH="$1"

# Start virtual display for headless Obsidian
export DISPLAY=:99
Xvfb :99 -screen 0 1920x1080x24 >/dev/null 2>&1 &
XVFB_PID=$!
sleep 1

# Clean stale test reports from previous runs
rm -rf /tmp/test-reports

# Activate GCP service account for gcloud/GCS uploads
gcloud auth activate-service-account --key-file="$HOME/ci-sa-key.json" 2>/dev/null

Expand Down Expand Up @@ -136,6 +145,9 @@ jobs:
fi
cd ~/relay-harness && git checkout main && git pull

# Install playwright test dependencies
cd ~/relay-harness/playwright && npm install --ignore-scripts 2>/dev/null

# Run tests using the harness test-branch.sh orchestrator
export RELAY_PLUGIN_DIR=~/relay-plugin
cd ~/relay-harness
Expand All @@ -157,6 +169,9 @@ jobs:
echo '{"reportUrl":"","commit":"","execId":""}' > ~/test-metadata.json
fi

# Clean up virtual display
kill $XVFB_PID 2>/dev/null || true

exit $TEST_EXIT
REMOTE_SCRIPT

Expand Down Expand Up @@ -253,6 +268,8 @@ jobs:
await core.summary.write();

// Set job status
if ((s.fail || 0) > 0) {
if ((s.total || 0) === 0 || summary.state === 'error') {
core.setFailed('No tests were executed');
} else if ((s.fail || 0) > 0) {
core.setFailed(`${s.fail} test(s) failed`);
}