Commit 63188ab
ci: harden test_pass2_flag_invokes_executor against env drift
The Pass-2 executor has two valid graceful-degradation paths: missing
ANTHROPIC_API_KEY and missing 'anthropic' SDK. The test asserted only on
the API key reason, so a fresh CI runner without the SDK installed (the
realistic operator install path — SDK is optional) failed the test.
Two-pronged fix:
- tests: assert the contract (executed=False + non-empty reason
referencing SDK or API key) instead of one specific reason string.
- ci: install 'anthropic' SDK so the realistic Pass-2 path is exercised.
Restores 212/212 on Ubuntu CI.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1723453 commit 63188ab
2 files changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
0 commit comments