Commit bc013ff
test: live coverage for the Predict families, and an exact trigger match
Read-only live tests for change sets, diffs, webhooks and configuration,
each skipping rather than failing on an instance with nothing to read,
so the weekly backstop watches these shapes too. All 23 pass against the
local build with writes, and 21 pass against a second Predict-enabled
instance with the rest skipped.
That second instance found a test bug worth naming. Its newest
predictions were unprocessed, which Forward refuses with 409 and the
documented SNAPSHOT_UNAVAILABLE reason, correctly. The test's fix was to
pick a processed prediction, and the first attempt at that used a suffix
match on the state, which is wrong for a reason that reads like a joke:
"UNPROCESSED" ends with "PROCESSED". The same idiom was in the SDK's
own predicted-snapshot check, harmless there because no trigger name
ends in PREDICT other than PREDICT, but it is now an exact match on the
value so it cannot become harmful when a name is added.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Kbxab7ihjPntGAmnsZtqG1 parent 80b192f commit bc013ff
3 files changed
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
254 | 265 | | |
255 | 266 | | |
256 | 267 | | |
| |||
0 commit comments