Commit 428dd6f
authored
test(langfuse): structural guard for setup_hook + hook file coexistence (#1052)
Add TestLangfuseManifestHook to dashboard-api/tests/test_hooks.py. Two
narrow assertions guarantee that langfuse's manifest declares
service.setup_hook = "hooks/post_install.sh" AND that the referenced hook
file exists on disk. If either drifts (file renamed, manifest field
removed, hook deleted), _validate_hook_path returns None and
_handle_install silently skips the hook — langfuse silently regresses to
the broken Linux postgres uid mismatch behaviour with no CI signal. The
test catches that.
Uses defensive manifest.get("service", {}).get("setup_hook") so a future
regression that deletes the entire service: block produces a clean assertion
failure instead of a less-actionable KeyError. Assertion messages reference
the langfuse postgres uid 70 install fix conceptually rather than a
transient PR number, so the wording remains accurate after rebase.1 parent 34e0efa commit 428dd6f
1 file changed
Lines changed: 34 additions & 0 deletions
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
0 commit comments