test: isolate integration assets from inherited omp environment - #4351
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthrough
Suggested reviewers: Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The change is limited to test environment isolation, with no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
|
✅ Action performedReview finished.
|
|
|
Regarding the docstring-coverage warning in #4351 (comment): this patch adds no function or API. The inline comment explains why the existing test setup clears OMPCODE; adding function docstrings would not improve coverage of the reported failure, so I am leaving this focused change as-is. |
Issue
Running the integration asset tests from an OMP shell fails four Oh My Pi cases. The same tests pass when
OMPCODEis unset.Problem
Test setup inherited
OMPCODE=1from the calling shell. The integration correctly treated the test instance as a nested session and registered no handlers.How did we fix it?
Ordinary test setup now clears
OMPCODEbefore importing the integration. The nested-session test still sets it explicitly, and teardown restores the original value. Runtime behavior is unchanged.Verification
The four failures reproduce before the change. After rebasing, all 39 tests pass with the variable set or unset, including direct Bun execution. Formatting and clippy pass. Both review bots completed without code findings.
Local
just checkstopped on Rust session-save and socket-discovery tests; Can approved focused validation. macOS and Windows CI pass. Ubuntu CI fails in the unrelated Rust testfederated_client_starts_without_local_and_survives_its_restartbefore reaching these TypeScript tests. Full validation is not green.refs #4346