Commit 8644f9c
committed
docs+feat: address review nits N1–N4 on the ECS substrate
Review follow-ups for #596 (fix itself unchanged; B1 dead-export fixed in the
base PR #503):
- N1: correct the stale "64 GB / 16 vCPU" comment in agent.ts — the task is
larger (64 GB was itself OOM-killed per the construct's sizing history).
Defer the exact figure to EcsAgentCluster rather than duplicate/drift it.
- N2: reword the memory-grant + oauth-grant comments — an AccessDenied on those
paths is LOGGED (memory.py treats it as an infra failure; config.py's token
resolver logs it), not "silently" no-op'd. Describe the user-visible effect
(no persisted learning / no 👀→✅ reaction) rather than pin a log level that
drifts.
- N3: the ec2:DescribeAvailabilityZones comment already frames it correctly as a
FALSE build-gate failure (not a WARN no-op) — no change needed; noted here for
completeness.
- N4: run_task_from_payload now emits a WARN when it drops a KNOWN orchestrator
key (build_command / merge_branches / base_branch / github_token_secret_arn)
that run_task doesn't accept — expected today (consumed elsewhere / not yet
wired), but makes a future "wired one side, forgot the other" no-op visible
instead of silent (the ABCA-487 class). Foreign keys still drop quietly.
+ 2 tests (warns on a known dropped key; stays quiet on a foreign key).
Full cdk build green (2286) + full agent suite green (1194); eslint/ruff clean.1 parent a5550eb commit 8644f9c
4 files changed
Lines changed: 54 additions & 8 deletions
File tree
- agent
- src
- tests
- cdk/src
- constructs
- stacks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1278 | 1293 | | |
1279 | 1294 | | |
1280 | 1295 | | |
| |||
1301 | 1316 | | |
1302 | 1317 | | |
1303 | 1318 | | |
1304 | | - | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1305 | 1328 | | |
1306 | 1329 | | |
1307 | 1330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
243 | | - | |
244 | | - | |
| 244 | + | |
| 245 | + | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
256 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
584 | 585 | | |
585 | 586 | | |
586 | 587 | | |
| |||
0 commit comments