-
Notifications
You must be signed in to change notification settings - Fork 19
59 lines (48 loc) · 1.66 KB
/
Copy patharchitecture.yml
File metadata and controls
59 lines (48 loc) · 1.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
name: architecture-gates
on: [pull_request, push]
jobs:
gates:
name: Architecture gates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: P1 - layer imports
run: go run ./tools/check-layers ./...
- name: P5 - test imports stay in layer
run: go run ./tools/check-layers --tests ./...
- name: Lock-graph race detection (sec 4.8)
run: go test -race -timeout 5m ./pkg/daemon ./pkg/registry/... ./pkg/secure
- name: Lock-graph stress harness (sec 4.8) — TestConcurrentDialEncryptDecrypt
# 1000 goroutines × 30 s × 3 reps = ~90 s wall time. Race-clean,
# no panic, no goroutine leak. Skipped by -short; run here without.
run: go test -race -count=1 -timeout 10m -run TestConcurrentDialEncryptDecrypt ./tests/...
- name: P4/P9 - goroutine reaping
run: go test ./tests -run "TestDaemonShutdown|TestStreamLifecycleGoroutines|TestPluginShutdown"
plugin-matrix:
name: Plugin matrix (no_${{ matrix.plugin }})
needs: gates
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
plugin:
- updater
- skillinject
- trustedagents
- nameserver
- dataexchange
- eventstream
- tasks
- gateway
- policy
- webhook
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build & test with plugin disabled
run: go test -tags=no_${{ matrix.plugin }} ./pkg/daemon/... ./pkg/coreapi/...