-
Notifications
You must be signed in to change notification settings - Fork 10
75 lines (75 loc) · 3.11 KB
/
Copy pathci.yml
File metadata and controls
75 lines (75 loc) · 3.11 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm test
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
e2e:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- uses: oven-sh/setup-bun@v2
- run: npm install -g opencode-stable
- name: Run E2E scenarios
run: |
SKIP_BUILD=1 ./scripts/e2e/run-e2e.sh \
scripts/e2e/scenarios/01-basic-compress.json \
scripts/e2e/scenarios/02-quality-reject.json \
scripts/e2e/scenarios/03-quality-acknowledge.json \
scripts/e2e/scenarios/04-batch-compress.json \
scripts/e2e/scenarios/05-subagent-compress.json \
scripts/e2e/scenarios/06-nudge-triggered.json \
scripts/e2e/scenarios/07-protection-filtered.json \
scripts/e2e/scenarios/08-nudge-with-protection.json \
scripts/e2e/scenarios/09-nudge-refire-after-compress.json \
scripts/e2e/scenarios/10-autonomous-nudge-refire.json \
scripts/e2e/scenarios/11-tier2-baseline-preserved-after-compress.json \
scripts/e2e/scenarios/12-consumed-call-hiding.json
- name: Dump diagnostics on failure
if: failure()
run: |
echo "=== opencode logs ==="
find /tmp/acp-e2e -name '*.log' -exec cat {} \; 2>/dev/null || echo "(no logs)"
echo "=== turn 1 output (first 30 lines) ==="
head -30 /tmp/acp-e2e-turn-1.json 2>/dev/null || echo "(no turn output)"
echo "=== turn 4 output (first 30 lines) ==="
head -30 /tmp/acp-e2e-turn-4.json 2>/dev/null || echo "(no turn output)"
echo "=== fake LLM log ==="
cat /tmp/acp-e2e-fakellm.log 2>/dev/null || echo "(no fake LLM log)"
echo "=== observations ==="
cat /tmp/acp-e2e-observations.json 2>/dev/null || echo "(no observations)"
echo "=== storage tree ==="
find /tmp/acp-e2e/.local/share/opencode -type f 2>/dev/null | head -20 || echo "(no storage)"