-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (84 loc) · 2.66 KB
/
e2e-test.yml
File metadata and controls
98 lines (84 loc) · 2.66 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
name: E2E Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
# Allow manual trigger
workflow_dispatch:
# Run nightly
schedule:
- cron: '0 2 * * *' # Run at 2 AM UTC daily
jobs:
e2e-distributed:
name: E2E Distributed Tests
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
otp: ['28']
elixir: ['1.18']
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-e2e-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-e2e-${{ matrix.otp }}-${{ matrix.elixir }}-mix-
- name: Install dependencies
run: |
mix local.hex --force
mix local.rebar --force
MIX_ENV=e2e_test mix deps.get
- name: Compile e2e tests
run: MIX_ENV=e2e_test mix compile
env:
MIX_ENV: e2e_test
- name: Start EPMD (Erlang Port Mapper Daemon)
run: epmd -daemon
- name: Run E2E Distributed Tests
run: |
echo "Running e2e distributed tests with manual node spawning..."
./scripts/run_e2e_tests.sh e2e_test/distributed/
env:
MIX_ENV: e2e_test
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-test-results-${{ matrix.otp }}-${{ matrix.elixir }}
path: |
_build/e2e_test/test-junit-report.xml
data/e2e_test/
# NOTE: e2e-docker job removed - no Docker tests exist yet
# Add back when e2e_test/docker/ tests are implemented
e2e-summary:
name: E2E Test Summary
runs-on: ubuntu-latest
needs: [e2e-distributed]
if: always()
steps:
- name: Check test results
run: |
echo "E2E Distributed Tests: ${{ needs.e2e-distributed.result }}"
echo ""
if [ "${{ needs.e2e-distributed.result }}" != "success" ]; then
echo "❌ E2E distributed tests failed"
exit 1
else
echo "✅ E2E tests skipped (known LocalCluster/OTP 28 incompatibility)"
echo ""
echo "Automated tests are disabled until upstream fix is available."
echo "Use manual testing: see e2e_test/README.md and scripts/cluster_connect.exs"
fi