Skip to content
Open
Show file tree
Hide file tree
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
66 changes: 66 additions & 0 deletions .github/workflows/ci-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,72 @@ jobs:
group: ci-host-test-web-assets-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

live-test:
name: Live Tests (realm)
runs-on: ubuntu-latest
needs: test-web-assets
concurrency:
group: boxel-live-test-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/init

- name: Download test web assets
uses: actions/download-artifact@b14cf4c92620c250e1c074ab0a5800e37df86765 # 4.2.0
with:
name: ${{ needs.test-web-assets.outputs.artifact_name }}
path: .test-web-assets-artifact
- name: Restore test web assets into workspace
shell: bash
run: |
shopt -s dotglob
cp -a .test-web-assets-artifact/. ./

- name: Serve boxel-icons
run: pnpm serve &> /tmp/icon-server.log &
working-directory: packages/boxel-icons

- name: Disable TCP/UDP network offloading
run: sudo ethtool -K eth0 tx off rx off
- name: Serve host dist (test assets) for realm server
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # 1.0.7
with:
run: pnpm serve:dist &
working-directory: packages/host
wait-for: 3m
wait-on: http-get://localhost:4200
- name: Start realm servers
run: pnpm start:services-for-host-tests | tee -a /tmp/server.log &
working-directory: packages/realm-server
- name: Create realm users
run: pnpm register-realm-users
working-directory: packages/matrix

- name: Install D-Bus helpers
run: |
sudo apt-get update
sudo apt-get install -y dbus-x11 upower
sudo service dbus restart
sudo service upower restart

- name: Live test suite
run: dbus-run-session -- pnpm test:live
working-directory: packages/host
env:
DBUS_SYSTEM_BUS_ADDRESS: unix:path=/run/dbus/system_bus_socket

- name: Upload junit report
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # 4.6.1
if: ${{ !cancelled() }}
with:
name: host-live-test-report
path: junit/host-live.xml
retention-days: 30
- name: Print realm server logs
if: ${{ !cancelled() }}
run: cat /tmp/server.log

host-test:
name: Host Tests
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion mise-tasks/test-services-host
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mkdir -p "$CATALOG_TEMP_PATH/Spec"
cp -a "$CATALOG_SRC_PATH/Spec/grid.json" "$CATALOG_TEMP_PATH/Spec/"

# Explicitly keep only the tested parts of the catalog
KEEP_FOLDERS="fields catalog-app components commands"
KEEP_FOLDERS="fields catalog-app components commands tests"
for item in $KEEP_FOLDERS; do
if [ -d "$CATALOG_SRC_PATH/$item" ]; then
cp -a "$CATALOG_SRC_PATH/$item" "$CATALOG_TEMP_PATH/"
Expand Down
112 changes: 0 additions & 112 deletions packages/experiments-realm/sample-command-card.gts

This file was deleted.

1 change: 1 addition & 0 deletions packages/host/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module.exports = {
'./.template-lintrc.js',
'./ember-cli-build.js',
'./testem.js',
'./testem-live.js',
'./blueprints/*/index.js',
'./config/**/*.js',
'./lib/**/*.js',
Expand Down
Loading
Loading