Commit 7fdda3d
committed
test(cdk): make the _KNOWN_WRITEABLE_WORKFLOW_IDS parser tolerant of ruff's frozenset formatting (aws-samples#247 PR aws-samples#373)
The workflows contract test (CDK descriptors ↔ agent config) parses
_KNOWN_WRITEABLE_WORKFLOW_IDS out of agent/src/config.py with a regex that
required frozenset((…)) with adjacent parens. When the earlier lint pass
ran ruff format on config.py it expanded the frozenset to multi-line
(frozenset(\n (\n "…",\n )\n)), so the regex returned null and the
test failed (1 of 2574). Fix: tolerate whitespace between the parens
(frozenset\(\s*\(…\)\s*\)) so it matches either single- or multi-line
formatting. 21 workflows tests green; regex verified against the live
config.py shape.1 parent d072709 commit 7fdda3d
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| |||
0 commit comments