-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (66 loc) · 2.45 KB
/
Copy pathe2e.yml
File metadata and controls
70 lines (66 loc) · 2.45 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
name: E2E — Dogfood + Real Projects
# Charter §5.10:
# "Dogfooding: Mycelium indexes itself; CI runs Hyphae queries against
# the Mycelium codebase as part of e2e."
# "Every feature is validated against real open-source projects."
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
schedule:
# Nightly at 03:00 UTC — ensures real-project fixtures are always tested
- cron: "0 3 * * *"
jobs:
dogfood:
name: dogfood (Mycelium indexes itself)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run dogfood e2e tests
run: |
if [ -f crates/mycelium-core/tests/e2e_dogfood.rs ]; then
cargo test --package mycelium-rcig-core --test e2e_dogfood -- --test-threads=1
else
echo "::warning::Charter §5.10 dogfood test (e2e_dogfood.rs) not present yet — workflow no-op until then"
fi
- name: Print indexed symbol count (diagnostic)
run: |
if [ -f crates/mycelium-core/tests/e2e_dogfood.rs ]; then
cargo test --package mycelium-rcig-core --test e2e_dogfood -- --nocapture 2>&1 \
| grep -E "indexed|nodes|edges|Store|Trunk" || true
fi
real-projects:
name: real projects (${{ matrix.project }})
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- project: requests
repo: https://github.com/psf/requests.git
lang: python
- project: ripgrep
repo: https://github.com/BurntSushi/ripgrep.git
lang: rust
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Clone ${{ matrix.project }} fixture (shallow)
run: |
git clone --depth=1 --single-branch \
${{ matrix.repo }} \
tests/e2e/fixtures/${{ matrix.project }}
- name: Run real-project e2e tests
run: |
if [ -f crates/mycelium-core/tests/e2e_real_projects.rs ]; then
cargo test --package mycelium-rcig-core --test e2e_real_projects \
-- --nocapture --test-threads=1
else
echo "::warning::Charter §5.10 real-project test (e2e_real_projects.rs) not present yet — workflow no-op until then"
fi