Files
elizaos--eliza/.github/workflows/external-api-live-drift.yml
T
wehub-resource-sync 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
chore: import upstream snapshot with attribution
2026-07-13 12:43:05 +08:00

138 lines
6.0 KiB
YAML

name: External API Live Drift
# Runs the external-API LIVE-DRIFT tests against the real provider APIs so the
# keyless mocks/parsers are continuously verified to still match reality. These
# *.real.test.ts files self-skip in the PR lane (their LIVE gate is off) and ran
# in NO workflow until now — they were dark. This lane turns the LIVE gate on and
# injects the optional provider secrets.
#
# Provider coverage vs provider-coverage.ts (#8801):
# PUBLIC (no secret, always run): Polymarket, Hyperliquid, CoinGecko.
# KEY/TOKEN-GATED (self-skip via describe.skipIf unless their
# <PROVIDER>_API_KEY / _ACCESS_TOKEN secret is present): Calendly, Tavily,
# OpenAI, Anthropic, Strava, Oura, Withings, Fitbit.
# CONFIG-BLOCKED (test exists + secret wired, but the plugin's vitest config
# excludes *.real.test.ts so it can't run from here yet): Google Calendar —
# see the structural-lane marker at the bottom of the steps.
# A missing secret is a clean no-op (describe.skipIf), not a failure — so the
# credential-blocked lanes only light up once their token secret is added to the
# repo. continue-on-error keeps a provider outage / drift from red-X'ing the
# branch — a failure here is a real signal that a mock has drifted from the live
# API. The MTProto/native surfaces (telegram-mtproto, signal,
# imessage-bluebubbles) have no HTTP drift surface and stay hand-curated
# mock-only with that caveat documented in
# packages/test/mocks/helpers/provider-coverage.ts.
#
# Nightly + on-demand; never on pull_request.
on:
schedule:
# 09:30 UTC daily — after the other nightly live lanes settle.
- cron: "30 9 * * *"
workflow_dispatch: {}
concurrency:
group: external-api-live-drift-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
CI: "true"
NODE_VERSION: "24"
BUN_VERSION: "canary"
NODE_OPTIONS: "--experimental-sqlite"
# Turn the LIVE gate on for every external-API drift test.
POLYMARKET_LIVE_TEST: "1"
HYPERLIQUID_LIVE_TEST: "1"
COINGECKO_LIVE_TEST: "1"
CALENDLY_LIVE_TEST: "1"
TAVILY_LIVE_TEST: "1"
OPENAI_LIVE_TEST: "1"
ANTHROPIC_LIVE_TEST: "1"
STRAVA_LIVE_TEST: "1"
OURA_LIVE_TEST: "1"
WITHINGS_LIVE_TEST: "1"
FITBIT_LIVE_TEST: "1"
GOOGLE_CALENDAR_LIVE_TEST: "1"
# Key/token-gated providers (tests self-skip when their secret is absent).
CALENDLY_ACCESS_TOKEN: ${{ secrets.CALENDLY_ACCESS_TOKEN }}
TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
STRAVA_ACCESS_TOKEN: ${{ secrets.STRAVA_ACCESS_TOKEN }}
OURA_ACCESS_TOKEN: ${{ secrets.OURA_ACCESS_TOKEN }}
WITHINGS_ACCESS_TOKEN: ${{ secrets.WITHINGS_ACCESS_TOKEN }}
FITBIT_ACCESS_TOKEN: ${{ secrets.FITBIT_ACCESS_TOKEN }}
GOOGLE_CALENDAR_ACCESS_TOKEN: ${{ secrets.GOOGLE_CALENDAR_ACCESS_TOKEN }}
jobs:
live-drift:
name: External-API mocks vs live APIs (nightly)
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
timeout-minutes: 30
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
submodules: false
show-progress: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: ${{ env.NODE_VERSION }}
- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Polymarket live drift (public)
run: bunx vitest run --root plugins/plugin-polymarket src/routes.real.test.ts
- name: Hyperliquid live drift (public)
run: bunx vitest run --root plugins/plugin-hyperliquid src/routes.real.test.ts
- name: CoinGecko live drift (public)
run: bunx vitest run --root plugins/plugin-wallet src/routes/wallet-market-overview.real.test.ts
- name: Calendly live drift (token-gated, self-skips)
run: bunx vitest run --root plugins/plugin-calendly src/calendly-client.real.test.ts
- name: Tavily web-search live drift (key-gated, self-skips)
run: bunx vitest run --root plugins/plugin-web-search src/services/webSearchService.real.test.ts
- name: OpenAI live drift (key-gated, self-skips)
run: bunx vitest run --root plugins/plugin-openai __tests__/openai-drift.real.test.ts
- name: Anthropic live drift (key-gated, self-skips)
run: bunx vitest run --root plugins/plugin-anthropic __tests__/anthropic-drift.real.test.ts
- name: Strava live drift (token-gated, self-skips)
run: bunx vitest run --root plugins/plugin-health test/strava-connector.real.test.ts
- name: Oura live drift (token-gated, self-skips)
run: bunx vitest run --root plugins/plugin-health test/oura-connector.real.test.ts
- name: Withings live drift (token-gated, self-skips)
run: bunx vitest run --root plugins/plugin-health test/withings-connector.real.test.ts
- name: Fitbit live drift (token-gated, self-skips)
run: bunx vitest run --root plugins/plugin-health test/fitbit-connector.real.test.ts
# Structural-lane marker — NOT YET RUNNABLE here.
# plugins/plugin-calendar/test/google-calendar-connector.real.test.ts
# exists and self-gates on GOOGLE_CALENDAR_LIVE_TEST + GOOGLE_CALENDAR_ACCESS_TOKEN
# (secret wired in the env block above), but plugin-calendar's vitest.config.ts
# excludes `**/*.real.test.{ts,tsx}` with passWithNoTests:true, so a vitest
# invocation here finds zero tests and would silently "pass" with no drift
# coverage. That config exclude can only be lifted in the plugin's own config.
# Wire the step below once plugin-calendar's config stops excluding real tests:
# run: bunx vitest run --root plugins/plugin-calendar test/google-calendar-connector.real.test.ts