[WRONG BRANCH] fix(integrations): fail closed when OMP block removal produces invalid YAML - #273
[WRONG BRANCH] fix(integrations): fail closed when OMP block removal produces invalid YAML#273luvs01 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe OMP YAML provider-removal path now handles post-removal parse failures. A test verifies that disabling OMP returns ChangesOMP provider removal
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: ⚪ Minimal · up to This localized change safely refuses invalid YAML during integration removal and preserves the original configuration; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Its title has been prefixed with |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Motivation
providers.opencodexblock could leave a valid-but-dependent alias in the remaining YAML thatBun.YAML.parsefails on, propagating a parse exception as a 500 instead of refusing safely.Description
patchOmpYamlSourcewith atry/catchand returnnullon parse failure so the caller treats it as an unsafe refusal rather than throwing. (src/integrations/omp-yaml-source.ts).disableIntegrationreturns anunsaferefusal and preserves the original bytes. (tests/integrations-writer.test.ts).semanticallyMatchesand does not alter successful removal paths.Testing
bun test tests/integrations-writer.test.tsand the file's 28 tests passed.bun x tsc --noEmitsucceeded.bun run privacy:scanreported no issues.bun run test); unrelated timeouts/failures occurred elsewhere in the large suite (external OAuth live-update, retained-root serialization, and combo-management tests) and are not caused by this change, so the focused tests and typecheck are used to verify the fix.Codex Task
Summary by CodeRabbit
Bug Fixes
Tests