Commit 232759f
authored
chore: speed-up of CI tests (#46)
* wait instead of curl polling, + coverage_core=sysmon
* waiting for user_seed to complete before starting
* k8s integration -> e2e, also update pytest marks
* default test loop scope = session
* coverage core + renames of fixtures
* moved k8s tests to e2e, fixed inconsistencies in user settings
* Introduce domain exception hierarchy for transport-agnostic services
- Add base exceptions in app/domain/exceptions.py (NotFoundError,
ValidationError, ThrottledError, ConflictError, UnauthorizedError,
ForbiddenError, InvalidStateError, InfrastructureError)
- Create domain-specific exceptions for execution, saga, notification,
saved_script, replay, and user/auth modules
- Update all services to throw domain exceptions instead of HTTPException
- Add single exception handler middleware that maps to HTTP status codes
- Add documentation in docs/architecture/domain-exceptions.md
Services no longer know about HTTP semantics. The middleware handles
all mapping from domain exceptions to JSON responses.
* structural logging+doc added
* search_text field unification in events
* removed filter_fields hardcoded stuff from replay endpoints
* removed extra conversion function from replay api
* database context simplification (use beanie instead of direct pymongo calls)
* moved from stdlib dataclass to pydantic dataclass1 parent a44bd24 commit 232759f
File tree
313 files changed
+8572
-11659
lines changed- .github
- actions
- docker-cache
- setup-ci-compose
- workflows
- backend
- app
- api/routes
- admin
- core
- exceptions
- metrics
- middlewares
- tracing
- db
- docs
- repositories
- admin
- schema
- dlq
- domain
- admin
- enums
- events
- execution
- idempotency
- notification
- rate_limit
- replay
- saga
- saved_script
- sse
- user
- events
- core
- schema
- infrastructure
- kafka
- events
- mappers
- schemas_pydantic
- services
- admin
- coordinator
- event_replay
- idempotency
- k8s_worker
- pod_monitor
- result_processor
- saga
- sse
- scripts
- tests
- fixtures
- integration
- app
- core
- db
- repositories
- schema
- dlq
- events
- idempotency
- k8s
- result_processor
- services
- admin
- events
- saved_script
- sse
- user_settings
- unit
- core
- metrics
- db/repositories
- dlq
- events
- infrastructure/mappers
- schemas_pydantic
- services
- coordinator
- idempotency
- pod_monitor
- result_processor
- saga
- sse
- workers
- docs
- architecture
- components/saga
- operations
- reference
- frontend/src
- components/admin/events
- lib/api
- routes
- styles
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
313 files changed
+8572
-11659
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 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 | + | |
19 | 64 | | |
20 | 65 | | |
21 | 66 | | |
| 67 | + | |
22 | 68 | | |
23 | 69 | | |
24 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
25 | 76 | | |
26 | 77 | | |
27 | 78 | | |
| |||
34 | 85 | | |
35 | 86 | | |
36 | 87 | | |
37 | | - | |
38 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
39 | 92 | | |
40 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
41 | 106 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
48 | 112 | | |
49 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
50 | 126 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
60 | 135 | | |
61 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
62 | 145 | | |
63 | | - | |
64 | | - | |
| 146 | + | |
| 147 | + | |
65 | 148 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
76 | 156 | | |
77 | | - | |
| 157 | + | |
78 | 158 | | |
79 | | - | |
80 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
81 | 162 | | |
82 | | - | |
| 163 | + | |
83 | 164 | | |
84 | | - | |
| 165 | + | |
85 | 166 | | |
86 | | - | |
87 | 167 | | |
88 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
89 | 179 | | |
90 | 180 | | |
91 | | - | |
92 | 181 | | |
93 | 182 | | |
94 | | - | |
95 | | - | |
96 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
97 | 188 | | |
| 189 | + | |
| 190 | + | |
98 | 191 | | |
99 | 192 | | |
100 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
101 | 196 | | |
102 | 197 | | |
103 | 198 | | |
104 | 199 | | |
105 | 200 | | |
106 | 201 | | |
107 | 202 | | |
108 | | - | |
109 | | - | |
| 203 | + | |
| 204 | + | |
110 | 205 | | |
111 | 206 | | |
112 | 207 | | |
113 | 208 | | |
114 | 209 | | |
115 | 210 | | |
116 | 211 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 212 | + | |
| 213 | + | |
121 | 214 | | |
122 | 215 | | |
123 | 216 | | |
124 | 217 | | |
125 | 218 | | |
126 | 219 | | |
127 | | - | |
| 220 | + | |
128 | 221 | | |
0 commit comments