-
Notifications
You must be signed in to change notification settings - Fork 71
119 lines (104 loc) · 3.94 KB
/
Copy pathfleet-e2e.yml
File metadata and controls
119 lines (104 loc) · 3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Fleet E2E
# Two-node fleet scenario matrix (RFC #1056, Phase 6). Boots a real relaycast
# engine + two `agent-relay node up` nodes (each a Rust broker + TS sidecar)
# and drives the live control wire. Heavier than the unit suite (builds the Rust
# broker + the relaycast engine), so it runs on its own workflow, gated to fleet
# paths. The scenario matrix itself runs in well under a minute (~30s locally);
# the wall-clock is dominated by the cold build (cargo + two npm installs +
# engine build), which rust-cache amortises on warm runs. The 20-minute job
# timeout is a cold-build ceiling, not the matrix runtime.
# NOTE on branches: the fleet stack is developed on `feat/fleet-*` branches that
# merge into each other before `main`, so the trigger must include them — gating
# on `[main]` alone leaves this job inert for the entire feature stack (it would
# only run after something reaches main). Update to `[main]` once the stack lands.
on:
push:
branches: [main, 'feat/fleet-**']
paths:
- 'packages/fleet/**'
- 'packages/cli/**'
- 'packages/harness-driver/**'
- 'crates/broker/**'
- 'crates/relay-pty/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'tests/e2e/fleet/**'
- 'vitest.e2e.config.ts'
- '.github/workflows/fleet-e2e.yml'
pull_request:
branches: [main, 'feat/fleet-**']
paths:
- 'packages/fleet/**'
- 'packages/cli/**'
- 'packages/harness-driver/**'
- 'crates/broker/**'
- 'crates/relay-pty/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'tests/e2e/fleet/**'
- 'vitest.e2e.config.ts'
- '.github/workflows/fleet-e2e.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
AGENT_RELAY_TELEMETRY_DISABLED: 1
jobs:
fleet-e2e:
name: Two-node fleet matrix
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout relay
uses: actions/checkout@v4
with:
persist-credentials: false
# The relaycast engine lives in a separate repo. This E2E drives the
# node-provider model and heartbeats whose load may be unreported for
# unbounded providers. This companion PR candidate supplies isolated
# registration, acknowledged cleanup and node-owned spawn status reads.
# It is a test pin, not a released or deployed product dependency.
- name: Checkout relaycast engine (node-provider model)
uses: actions/checkout@v4
with:
persist-credentials: false
repository: AgentWorkforce/relaycast
ref: a5c7ac66f64a650274fbe2c60e3cd5d3c9b87dcd # relaycast#387: verified served-node spawn completion
path: relaycast-engine
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.14.0
cache: 'npm'
- name: Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: Build relay (CLI + fleet + harness-driver)
run: |
npm ci
npm run build:core
- name: Build agent-relay-broker
run: cargo build --release --bin agent-relay-broker
- name: Build relaycast engine
working-directory: relaycast-engine
run: |
npm ci
npm run build --workspace @relaycast/types
npm run build --workspace @relaycast/a2a
npm run build --workspace @relaycast/engine
- name: Run two-node fleet E2E
env:
RELAYCAST_ENGINE_DIR: ${{ github.workspace }}/relaycast-engine
BROKER_BINARY_PATH: ${{ github.workspace }}/target/release/agent-relay-broker
run: npm run test:e2e
- name: Upload node logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: fleet-e2e-logs
path: /tmp/fleet-e2e-*/**/serve.log
if-no-files-found: ignore