Skip to content

Commit 38e8dbc

Browse files
committed
add github workflow
1 parent 311d54f commit 38e8dbc

2 files changed

Lines changed: 43 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
trace-claude-code:
11+
name: trace-claude-code bash tests
12+
runs-on: ubuntu-24.04
13+
timeout-minutes: 30
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
18+
# jq, curl, uuid-runtime (uuidgen), python3 are all preinstalled on
19+
# ubuntu. Confirm they're available so failures are obvious.
20+
- name: Verify runtime dependencies
21+
run: |
22+
set -e
23+
echo "bash: $(bash --version | head -1)"
24+
echo "jq: $(jq --version)"
25+
echo "curl: $(curl --version | head -1)"
26+
echo "uuidgen: $(uuidgen)"
27+
echo "python3: $(python3 --version)"
28+
29+
- name: Run trace-claude-code tests
30+
run: make test
31+
env:
32+
# Force non-color output so logs in GitHub Actions are readable.
33+
NO_COLOR: "1"
34+
35+
- name: Show hook log on failure
36+
if: failure()
37+
run: |
38+
if [ -f "$HOME/.claude/state/braintrust_hook.log" ]; then
39+
echo "=== hook log ==="
40+
cat "$HOME/.claude/state/braintrust_hook.log"
41+
fi

plugins/trace-claude-code/test/test_e2e.sh renamed to plugins/trace-claude-code/test/test_full_pipeline.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ _setup_default_stubs() {
2424
}
2525

2626
# ---------------------------------------------------------------------------
27-
describe "e2e: simple session with one turn and two tools"
27+
describe "full pipeline: simple session with one turn and two tools"
2828
# ---------------------------------------------------------------------------
2929

3030
t_e2e_simple_session() {
@@ -144,7 +144,7 @@ it "spans form correct session > turn > tool hierarchy" t_e2e_span_hierarchy
144144
it "multiple turns produce correctly-parented spans" t_e2e_multi_turn
145145

146146
# ---------------------------------------------------------------------------
147-
describe "e2e: no tool spans dropped under sequential PostToolUse"
147+
describe "full pipeline: no tool spans dropped under sequential PostToolUse"
148148
# ---------------------------------------------------------------------------
149149

150150
# This is the regression test for the missing-spans class of bugs. We fire

0 commit comments

Comments
 (0)