Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

ci: move Model Hub and Windows checks out of PR gate (#2518)

Call Whiteb85e3c567e59
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 483358cc3..6b8ad4bf7 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -79,11 +79,11 @@ jobs:
npm test
- name: Test browser interactions
+ # Model Hub catalog/provider regression runs on the scheduled/manual
+ # model-hub-ui-regression workflow instead of blocking every PR.
working-directory: ui
run: |
npx playwright install --with-deps chromium webkit
- npm run test:model-catalog
- npm run test:model-provider
npm run test:onboarding-fidelity -- hub-ownership.spec.ts provider-gate.spec.ts lineup.spec.ts
npm run test:project-order
npm run test:inbox-return
@@ -415,10 +415,12 @@ jobs:
name: windows-install-smoke (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
needs: build-linux-artifacts
+ # Pull requests allocate only Windows latest; master pushes run the full
+ # Windows latest plus Windows on Arm matrix.
strategy:
fail-fast: false
matrix:
- runner: [windows-latest, windows-11-arm]
+ runner: ${{ fromJSON(github.event_name == 'pull_request' && '["windows-latest"]' || '["windows-latest","windows-11-arm"]') }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
@@ -577,14 +579,12 @@ jobs:
if (-not (Test-Path -LiteralPath $foreign)) { throw "A purge removed a vibe.exe it did not install" }
if (-not (Select-String -Path purge.log -Pattern "session kept" -SimpleMatch -Quiet)) { throw "The script-block form ended the session" }
- # The required check: the matrix above reports one check per runner under
- # its own name, so this job keeps the name branch protection requires.
windows-install-smoke:
runs-on: ubuntu-latest
needs: windows-install-smoke-runners
if: always()
steps:
- - name: Verify the installer on every Windows runner
+ - name: Verify the installer on every PR-required runner
env:
SMOKE_RESULT: ${{ needs['windows-install-smoke-runners'].result }}
run: |
@@ -592,7 +592,7 @@ jobs:
echo "Windows installer smoke finished with result: $SMOKE_RESULT"
exit 1
fi
- echo "The installer passed on every Windows runner."
+ echo "The installer passed on every PR-required runner."
# The only job that starts the real service on Windows. A fresh install
# installs the Model Hub engine from the packaged manifest, saves API-key
@@ -602,6 +602,7 @@ jobs:
name: windows-model-hub (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
needs: build-linux-artifacts
+ if: github.event_name != 'pull_request'
timeout-minutes: 30
strategy:
fail-fast: false
@@ -653,6 +654,7 @@ jobs:
windows-control-ipc:
runs-on: windows-latest
needs: build-linux-artifacts
+ if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
@@ -751,6 +753,7 @@ jobs:
windows-agent:
name: windows-agent (${{ matrix.os }})
runs-on: ${{ matrix.os }}
+ if: github.event_name != 'pull_request'
timeout-minutes: 20
strategy:
fail-fast: false
diff --git a/.github/workflows/model-hub-ui-regression.yml b/.github/workflows/model-hub-ui-regression.yml
new file mode 100644
index 000000000..f8d2727ba
--- /dev/null
+++ b/.github/workflows/model-hub-ui-regression.yml
@@ -0,0 +1,57 @@
+name: Model Hub UI regression
+
+on:
+ schedule:
+ - cron: "37 4 * * *"
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: model-hub-ui-regression
+ cancel-in-progress: false
+
+env:
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
+
+jobs:
+ model-hub-ui:
+ name: model-hub-ui-regression
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
+
+ - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
+ with:
+ node-version: "22.14.0"
+ cache: "npm"
+ cache-dependency-path: ui/package-lock.json
+
+ - name: Install UI dependencies
+ working-directory: ui
+ run: npm ci
+
+ - name: Install Chromium
+ id: install_chromium
+ working-directory: ui
+ run: npx playwright install --with-deps chromium
+
+ - name: Run Model Catalog browser regression
+ working-directory: ui
+ run: npm run test:model-catalog
+
+ - name: Run Model Provider browser regression
+ if: ${{ always() && steps.install_chromium.outcome == 'success' }}
+ working-directory: ui
+ run: npm run test:model-provider
+
+ - name: Upload browser artifacts
+ if: failure()
+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
+ with:
+ name: model-hub-ui-regression-${{ github.run_id }}-${{ github.run_attempt }}
+ path: ui/e2e/.artifacts
+ if-no-files-found: ignore
+ retention-days: 14
diff --git a/tests/test_ci_pipeline.py b/tests/test_ci_pipeline.py
index 2928e14b2..d3ec140f1 100644
--- a/tests/test_ci_pipeline.py
+++ b/tests/test_ci_pipeline.py
@@ -482,6 +482,21 @@ def test_ui_checks_run_once_without_fencing_artifact_consumers() -> None:
assert jobs[name]["needs"] == "build-linux-artifacts"
+def test_windows_platform_checks_leave_only_latest_installer_smoke_on_prs() -> None:
+ jobs = _jobs()
+ for name in ("windows-agent", "windows-model-hub", "windows-control-ipc"):
+ assert jobs[name]["if"] == "github.event_name != 'pull_request'"
+
+ smoke = jobs["windows-install-smoke-runners"]
+ assert smoke["strategy"]["matrix"]["runner"] == (
+ "${{ fromJSON(github.event_name == 'pull_request' && '[\"windows-latest\"]' || '[\"windows-latest\",\"windows-11-arm\"]') }}"
+ )
+ smoke_steps = {step["name"]: step for step in smoke["steps"] if "name" in step}
+ assert "if" not in smoke_steps["Run Windows installer smoke test"]
+ assert jobs["windows-install-smoke"]["needs"] == "windows-install-smoke-runners"
+ assert jobs["windows-install-smoke"]["if"] == "always()"
+
+
def test_install_suites_run_independently_without_losing_checks() -> None:
jobs = _jobs()
shards = jobs["install-upgrade-shards"]
diff --git a/ui/e2e/model-catalog/README.md b/ui/e2e/model-catalog/README.md
index 3455fb8a4..a14cce292 100644
--- a/ui/e2e/model-catalog/README.md
+++ b/ui/e2e/model-catalog/README.md
@@ -1,7 +1,9 @@
# Model Catalog Interaction Regression
Run `npm run test:model-catalog` from `ui/` after installing the pinned Chromium
-binary with `npx playwright install chromium`. CI runs this in `ui-checks`.
+binary with `npx playwright install chromium`. PR `lint` intentionally does not run
+this suite. GitHub runs it in the daily/manual
+`.github/workflows/model-hub-ui-regression.yml` workflow instead.
The suite follows the existing
isolated UI fixture pattern and never starts or contacts Avibe or a backend CLI.
Only `modelsApi` is replaced with in-memory reads/writes. The catalog, picker,