426e9eeabd
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Waiting to run
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Waiting to run
Build Agent Image / build-and-push (push) Waiting to run
Chat shell gestures / Chat shell gesture + parity e2e (push) Waiting to run
ci / test (push) Waiting to run
ci / lint-and-format (push) Waiting to run
ci / build (push) Waiting to run
ci / dev-startup (push) Waiting to run
Cloud Gateway Discord / Test (push) Waiting to run
Cloud Gateway Webhook / Test (push) Waiting to run
Cloud Tests / lint-and-types (push) Waiting to run
Cloud Tests / unit-tests (push) Waiting to run
Cloud Tests / integration-tests (push) Waiting to run
Cloud Tests / e2e-tests (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Apps Worker (Product 2) / Determine environment (push) Waiting to run
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Blocked by required conditions
Deploy Eliza Provisioning Worker / Determine environment (push) Waiting to run
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Blocked by required conditions
Dev Smoke / Classify changed paths (push) Waiting to run
Dev Smoke / bun run dev onboarding chat (push) Blocked by required conditions
Dev Smoke / Vite HMR dependency-level smoke (push) Blocked by required conditions
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Waiting to run
gitleaks / gitleaks (push) Waiting to run
Markdown Links / Relative Markdown Links (push) Waiting to run
Publish @elizaos/example-code / check_npm (push) Waiting to run
Publish @elizaos/example-code / publish_npm (push) Blocked by required conditions
Publish @elizaos/plugin-elizacloud / verify_version (push) Waiting to run
Publish @elizaos/plugin-elizacloud / publish_npm (push) Blocked by required conditions
Quality (Extended) / Homepage Build (PR smoke) (push) Waiting to run
Quality (Extended) / Comment-only diff guard (push) Waiting to run
Quality (Extended) / Format + Type Safety Ratchet (push) Waiting to run
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Waiting to run
Quality (Extended) / Develop Gate (lint) (push) Waiting to run
Sandbox Live Smoke / Sandbox live smoke (push) Waiting to run
Snap Build & Test / Build Snap (amd64) (push) Waiting to run
Snap Build & Test / Build Snap (arm64) (push) Waiting to run
supply-chain / sbom (push) Waiting to run
supply-chain / vulnerability-scan (push) Waiting to run
Build, Push & Deploy to Phala Cloud / build-and-push (push) Waiting to run
Test Packaging / Validate Packaging Configs (push) Waiting to run
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Waiting to run
Test Packaging / Pack & Test JS Tarballs (push) Waiting to run
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Waiting to run
UI Fixture E2E / ui-fixture-e2e (push) Waiting to run
UI Fixture E2E / fixture-e2e (push) Waiting to run
UI Story Gate / story-gate (push) Waiting to run
vault-ci / test (macos-latest) (push) Waiting to run
vault-ci / test (ubuntu-latest) (push) Waiting to run
vault-ci / test (windows-latest) (push) Waiting to run
vault-ci / app-core wiring tests (push) Waiting to run
verify-patches / verify patches/CHECKSUMS.sha256 (push) Waiting to run
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Waiting to run
Voice Benchmark Smoke / voice bench smoke summary (push) Blocked by required conditions
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
Test Packaging / Build & Test PyPI Package (push) Waiting to run
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
446 lines
20 KiB
YAML
446 lines
20 KiB
YAML
name: App Live E2E
|
|
|
|
# Gated, NON-blocking live lane for the packages/app e2e suite — the home for
|
|
# REAL (not stub/mock) coverage of the dimensions the keyless PR lanes can only
|
|
# fixture-test.
|
|
#
|
|
# Why the keyless lanes can't do this: every PR-gating lane (scenario-pr, ci,
|
|
# test) forces the deterministic stub API (CI=true => FORCE_STUB_STACK, see the
|
|
# tested shouldForceStubStack helper) and blanks all provider/cloud keys, because
|
|
# secrets cannot be exposed to fork PRs and real model/cloud turns cost money and
|
|
# add network flake. So real coverage MUST live in a secret-gated, non-PR lane.
|
|
#
|
|
# The keystone that makes this possible: ELIZA_UI_SMOKE_LIVE_STACK=1 overrides the
|
|
# CI stub-force, so the live stack boots the real @elizaos/app-core runtime and
|
|
# the live-only specs (test.skip'd in keyless CI) un-skip.
|
|
#
|
|
# Runs nightly + on-demand; never on pull_request.
|
|
|
|
on:
|
|
schedule:
|
|
# 07:00 UTC daily — after the nightly build lanes settle.
|
|
- cron: "0 7 * * *"
|
|
workflow_dispatch:
|
|
inputs:
|
|
run_android_local_chat:
|
|
description: "Also run the on-device Android local-chat smoke (boots an emulator + builds/installs the APK + stages a GGUF)."
|
|
type: boolean
|
|
default: false
|
|
|
|
concurrency:
|
|
group: app-live-e2e-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CI: "true"
|
|
# The keystone: opt the live stack out of the CI-based stub force so the real
|
|
# app-core runtime boots. Without this, CI=true re-forces the stub even with a
|
|
# provider key present and every "live" test self-skips.
|
|
ELIZA_UI_SMOKE_LIVE_STACK: "1"
|
|
BUN_VERSION: "canary"
|
|
NODE_VERSION: "24.15.0"
|
|
NODE_NO_WARNINGS: "1"
|
|
CEREBRAS_API_KEY: ${{ secrets.CEREBRAS_API_KEY }}
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
|
|
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
|
|
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
|
|
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
|
|
|
|
jobs:
|
|
# Real LOCAL chat turn through the live stack: a real app-core runtime + a real
|
|
# provider model, asserting an exact model-produced marker (APP_LIVE_AGENT_OK).
|
|
# UI-driven counterpart to dev-smoke; proves chat send/stream reaches a real
|
|
# agent from the UI.
|
|
app-live-chat:
|
|
name: app live chat (real local runtime)
|
|
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
|
|
timeout-minutes: 45
|
|
env:
|
|
PGLITE_WASM_MODE: node
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Free disk space for browser smoke
|
|
run: |
|
|
set -euxo pipefail
|
|
df -h /
|
|
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android /opt/hostedtoolcache/CodeQL || true
|
|
docker system prune -af || true
|
|
df -h /
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Setup workspace dependencies
|
|
uses: ./.github/actions/setup-bun-workspace
|
|
with:
|
|
bun-version: ${{ env.BUN_VERSION }}
|
|
install-command: bun install
|
|
install-native-deps: "false"
|
|
skip-avatar-clone: "true"
|
|
no-vision-deps: "true"
|
|
|
|
- name: Install Playwright Chromium
|
|
run: bunx playwright install --with-deps chromium
|
|
|
|
- name: Generate shared i18n assets
|
|
run: bun run --cwd packages/shared build:i18n
|
|
|
|
# Vite loads package exports before renderer aliases apply; fresh CI
|
|
# checkouts need these dist bundles before packages/app can resolve
|
|
# @elizaos/core and @elizaos/shared subpaths.
|
|
- name: Build @elizaos/core + @elizaos/shared browser bundles
|
|
run: bunx turbo run build --filter=@elizaos/core --filter=@elizaos/shared
|
|
|
|
# Prebuild the renderer dist so the live stack reuses a fresh bundle
|
|
# instead of a cold in-harness vite build (viteRendererBuildNeeded check).
|
|
- name: Build app renderer bundle
|
|
run: bun run --cwd packages/app build:web
|
|
|
|
- name: Run live agent chat (real model turn)
|
|
run: bun run --cwd packages/app test:e2e test/ui-smoke/live-agent-chat.spec.ts --project=chromium -g "live agent"
|
|
|
|
# Deep settings/vault round-trips that the keyless stub structurally
|
|
# cannot serve (write→reload→read-back against the real on-disk vault +
|
|
# runtime). LIVE_STACK=1 is set job-wide, so the test.skip(!LIVE_STACK)
|
|
# guards in these specs open. The two *-interactions specs also run keyless
|
|
# in scenario-pr.yml (skipping their deep blocks); here they run them.
|
|
- name: Run settings + vault live-stack deep e2e
|
|
run: bun run --cwd packages/app test:e2e test/ui-smoke/vault-routing.spec.ts test/ui-smoke/wallet-keys.spec.ts test/ui-smoke/provider-config.spec.ts test/ui-smoke/vault-modal-interactions.spec.ts test/ui-smoke/settings-sections-interactions.spec.ts --project=chromium
|
|
|
|
- name: Upload live-chat artifacts
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
|
|
with:
|
|
name: app-live-e2e-chat
|
|
path: |
|
|
packages/app/playwright-report/
|
|
packages/app/test-results/
|
|
if-no-files-found: ignore
|
|
retention-days: 7
|
|
|
|
# Full continuous walkthrough against the REAL backend agent + model: cold
|
|
# launch → in-chat onboarding (greeting → runtime CHOICE → provider → one real
|
|
# POST /api/first-run) → all 8 tutorial frames → help/settings/wallet → a real
|
|
# chat round-trip (trajectory captured) → view switching → settings edit. Runs
|
|
# WITHOUT --skip-review so the AI vision reviewer scores every NN-step.png and
|
|
# writes WALKTHROUGH_VERDICTS.md (the PR mock lane is keyless and can't).
|
|
walkthrough-live:
|
|
name: full walkthrough (real backend + model + vision verdicts)
|
|
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
|
|
timeout-minutes: 60
|
|
env:
|
|
PGLITE_WASM_MODE: node
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Free disk space for browser smoke
|
|
run: |
|
|
set -euxo pipefail
|
|
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android /opt/hostedtoolcache/CodeQL || true
|
|
docker system prune -af || true
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Setup workspace dependencies
|
|
uses: ./.github/actions/setup-bun-workspace
|
|
with:
|
|
bun-version: ${{ env.BUN_VERSION }}
|
|
install-command: bun install
|
|
install-native-deps: "false"
|
|
skip-avatar-clone: "true"
|
|
no-vision-deps: "true"
|
|
|
|
- name: Install Playwright Chromium
|
|
run: bunx playwright install --with-deps chromium
|
|
|
|
- name: Install ffmpeg (recording stitch)
|
|
run: sudo apt-get update && sudo apt-get install -y ffmpeg
|
|
|
|
- name: Generate shared i18n assets
|
|
run: bun run --cwd packages/shared build:i18n
|
|
|
|
# Vite resolves linked workspace package exports while loading the app
|
|
# config, before renderer aliases can redirect to source files.
|
|
- name: Build @elizaos/core + @elizaos/shared browser bundles
|
|
run: bunx turbo run build --filter=@elizaos/core --filter=@elizaos/shared
|
|
|
|
# Prebuild the renderer dist so the live stack reuses a fresh bundle
|
|
# instead of a cold in-harness vite build.
|
|
- name: Build app renderer bundle
|
|
run: bun run --cwd packages/app build:web
|
|
|
|
- name: Drive + record + vision-review the full walkthrough (live)
|
|
run: bun run --cwd packages/app test:e2e:walkthrough:live
|
|
|
|
- name: Upload walkthrough screenshots + recording + verdicts
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
|
|
with:
|
|
name: app-live-e2e-walkthrough
|
|
path: |
|
|
reports/walkthrough/
|
|
e2e-recordings/app/walkthrough/
|
|
packages/app/test/ui-smoke/walkthrough/WALKTHROUGH_VERDICTS.md
|
|
if-no-files-found: ignore
|
|
retention-days: 7
|
|
|
|
# Real CLOUD login + provisioning + chat through the app UI against real Eliza
|
|
# Cloud. cloud-live.spec.ts mocks nothing; ELIZA_UI_SMOKE_CLOUD_LIVE=1 leaves
|
|
# first-run open so the spec drives cloud onboarding, and ELIZAOS_CLOUD_API_KEY
|
|
# authenticates. The secret-gated job fails before setup when neither accepted
|
|
# repository secret is configured; the spec remains safely skippable outside
|
|
# this workflow so keyless PR lanes cannot spend Cloud credits.
|
|
cloud-live:
|
|
name: cloud login + provision + chat (real Eliza Cloud)
|
|
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
|
|
timeout-minutes: 45
|
|
env:
|
|
ELIZA_UI_SMOKE_CLOUD_LIVE: "1"
|
|
# Prefer the variable named for the runtime contract, but retain the
|
|
# repository's established ELIZACLOUD_API_KEY as the canonical fallback.
|
|
ELIZAOS_CLOUD_API_KEY: ${{ secrets.ELIZAOS_CLOUD_API_KEY || secrets.ELIZACLOUD_API_KEY }}
|
|
PGLITE_WASM_MODE: node
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Require real Cloud credential
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
cloud_key_without_whitespace="${ELIZAOS_CLOUD_API_KEY:-}"
|
|
cloud_key_without_whitespace="${cloud_key_without_whitespace//[[:space:]]/}"
|
|
if [[ -z "$cloud_key_without_whitespace" ]]; then
|
|
echo "::error::App Live E2E requires ELIZAOS_CLOUD_API_KEY or ELIZACLOUD_API_KEY; refusing a green-by-skip Cloud job."
|
|
exit 1
|
|
fi
|
|
unset cloud_key_without_whitespace
|
|
|
|
- name: Free disk space for browser smoke
|
|
run: |
|
|
set -euxo pipefail
|
|
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android /opt/hostedtoolcache/CodeQL || true
|
|
docker system prune -af || true
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Setup workspace dependencies
|
|
uses: ./.github/actions/setup-bun-workspace
|
|
with:
|
|
bun-version: ${{ env.BUN_VERSION }}
|
|
install-command: bun install
|
|
install-native-deps: "false"
|
|
skip-avatar-clone: "true"
|
|
no-vision-deps: "true"
|
|
|
|
- name: Install Playwright Chromium
|
|
run: bunx playwright install --with-deps chromium
|
|
|
|
- name: Generate shared i18n assets
|
|
run: bun run --cwd packages/shared build:i18n
|
|
|
|
# Cloud-live still builds the same renderer bundle, so it needs the same
|
|
# workspace dists before Vite can load packages/app/vite.config.ts.
|
|
- name: Build @elizaos/core + @elizaos/shared browser bundles
|
|
run: bunx turbo run build --filter=@elizaos/core --filter=@elizaos/shared
|
|
|
|
- name: Build app renderer bundle
|
|
run: bun run --cwd packages/app build:web
|
|
|
|
- name: Run real cloud login + provision + chat
|
|
run: bun run --cwd packages/app test:e2e test/ui-smoke/cloud-live.spec.ts --project=chromium
|
|
|
|
- name: Upload cloud-live artifacts
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
|
|
with:
|
|
name: app-live-e2e-cloud
|
|
path: |
|
|
packages/app/playwright-report/
|
|
packages/app/test-results/
|
|
if-no-files-found: ignore
|
|
retention-days: 7
|
|
|
|
# Real on-device LOCAL provisioning + chat on Android: boots an emulator, builds
|
|
# + installs the debuggable APK, stages the smoke GGUF, starts the native
|
|
# ElizaAgentService local runtime, and asserts a real streamed on-device model
|
|
# reply (test:sim:local-chat:android:live). The ONLY lane that exercises Android
|
|
# local provisioning for real. Opt-in (workflow_dispatch input) because it is
|
|
# heavy. android-emulator-runner is the de-facto standard emulator action.
|
|
android-local-chat:
|
|
name: android local chat (on-device GGUF)
|
|
if: ${{ github.event_name == 'workflow_dispatch' && inputs.run_android_local_chat }}
|
|
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
|
|
timeout-minutes: 90
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Enable KVM for the Android emulator
|
|
run: |
|
|
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' \
|
|
| sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
|
sudo udevadm control --reload-rules
|
|
sudo udevadm trigger --name-match=kvm
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Setup JDK 21
|
|
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21"
|
|
|
|
- name: Setup workspace dependencies
|
|
uses: ./.github/actions/setup-bun-workspace
|
|
with:
|
|
bun-version: ${{ env.BUN_VERSION }}
|
|
install-command: bun install
|
|
install-native-deps: "false"
|
|
skip-avatar-clone: "true"
|
|
no-vision-deps: "true"
|
|
|
|
# android-emulator-runner provides the booted AVD + adb; the script builds
|
|
# and installs the APK, then runs the live on-device local-chat smoke, which
|
|
# stages the GGUF and asserts a real model reply.
|
|
- name: Build, install, and run Android on-device local-chat smoke
|
|
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d
|
|
with:
|
|
api-level: 34
|
|
arch: x86_64
|
|
force-avd-creation: false
|
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
|
|
disable-animations: true
|
|
script: |
|
|
bun run --cwd packages/app build:android
|
|
bun run --cwd packages/app install:android:adb
|
|
bun run --cwd packages/app test:sim:local-chat:android:live
|
|
|
|
# Desktop (Electrobun) packaged e2e. The build + agent boot run on a standard
|
|
# runner and catch real packaged-app bugs (e.g. a missing JSON import attribute
|
|
# that breaks the wallet plugin on boot). The renderer-driving assertions need a
|
|
# real GPU display (the app uses WebGPU); on GPU-less runners the build + launch
|
|
# still validate, so the renderer step is best-effort.
|
|
desktop-packaged:
|
|
name: desktop packaged (build + boot + renderer)
|
|
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
|
|
timeout-minutes: 60
|
|
env:
|
|
PGLITE_WASM_MODE: node
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Install WebKitGTK + xvfb for the Electrobun webview
|
|
# libayatana-appindicator3-1: libNativeWrapper.so (tray support) links
|
|
# against it; without it every packaged spec dies at launch with
|
|
# ERR_DLOPEN_FAILED before the test bridge comes up (the lane was red
|
|
# for 5+ days with "Packaged app exited before the desktop test bridge
|
|
# became ready").
|
|
# scrot/imagemagick/x11-apps/ffmpeg: ScreenCaptureManager tries, in
|
|
# order, scrot, ImageMagick import, ffmpeg x11grab, then xwd+ffmpeg for
|
|
# /main-window/screenshot. ffmpeg also stitches the walkthrough MP4.
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends \
|
|
xvfb libwebkit2gtk-4.1-0 libgtk-3-0 mesa-utils libgl1-mesa-dri \
|
|
libayatana-appindicator3-1 scrot imagemagick x11-apps ffmpeg
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Setup workspace dependencies
|
|
uses: ./.github/actions/setup-bun-workspace
|
|
with:
|
|
bun-version: ${{ env.BUN_VERSION }}
|
|
install-command: bun install
|
|
install-native-deps: "false"
|
|
skip-avatar-clone: "true"
|
|
no-vision-deps: "true"
|
|
|
|
- name: Install Playwright runner
|
|
run: bunx playwright install --with-deps chromium
|
|
|
|
# Build the packaged desktop app (catches build/packaging breaks). Run from
|
|
# the repo root so desktop-build.mjs resolves packages/app.
|
|
- name: Build the Electrobun desktop app
|
|
run: node packages/app-core/scripts/desktop-build.mjs build
|
|
|
|
# Launch + drive the packaged app under a virtual display + software GL.
|
|
- name: Run packaged desktop e2e (xvfb)
|
|
run: xvfb-run -a --server-args="-screen 0 1920x1080x24" bun run --cwd packages/app test:desktop:packaged
|
|
|
|
- name: Upload desktop-packaged artifacts
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
|
|
with:
|
|
name: app-live-e2e-desktop
|
|
path: |
|
|
packages/app/playwright-report/
|
|
packages/app/test-results/
|
|
if-no-files-found: ignore
|
|
retention-days: 7
|
|
|
|
# A nightly that is always red is indistinguishable from no lane: without an
|
|
# alert, nobody notices the desktop loop has no green unattended cadence and
|
|
# regressions accumulate silently (issue #13681). This job turns a red
|
|
# scheduled run into an actionable signal by commenting on the tracking issue
|
|
# with the per-job results and a link to the run. Scheduled runs only —
|
|
# manual workflow_dispatch runs stay quiet to avoid noise.
|
|
notify-on-failure:
|
|
name: notify on red nightly
|
|
needs: [app-live-chat, walkthrough-live, cloud-live, desktop-packaged]
|
|
if: ${{ always() && github.event_name == 'schedule' && contains(needs.*.result, 'failure') }}
|
|
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- name: Comment red-nightly diagnostic on tracking issue #13681
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
REPO: ${{ github.repository }}
|
|
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
R_CHAT: ${{ needs.app-live-chat.result }}
|
|
R_WALK: ${{ needs.walkthrough-live.result }}
|
|
R_CLOUD: ${{ needs.cloud-live.result }}
|
|
R_DESKTOP: ${{ needs.desktop-packaged.result }}
|
|
run: |
|
|
set -euo pipefail
|
|
{
|
|
printf '## 🌙 Nightly App Live E2E failed (scheduled run)\n\n'
|
|
printf 'The only scheduled desktop-packaged lane went red. Per-job results:\n\n'
|
|
printf -- '- app live chat: `%s`\n' "$R_CHAT"
|
|
printf -- '- full walkthrough: `%s`\n' "$R_WALK"
|
|
printf -- '- cloud login+provision+chat: `%s`\n' "$R_CLOUD"
|
|
printf -- '- desktop packaged (build+boot+renderer): `%s`\n' "$R_DESKTOP"
|
|
printf '\nRun log + failure artifacts: %s\n\n' "$RUN_URL"
|
|
printf '_Auto-posted by app-live-e2e.yml so a red nightly notifies someone (Done-when, #13681)._\n'
|
|
} > "$RUNNER_TEMP/nightly-red.md"
|
|
gh issue comment 13681 --repo "$REPO" --body-file "$RUNNER_TEMP/nightly-red.md"
|