You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
warp_editor: 8 render::tests fail when the full crate test suite runs together; each passes in isolation #13853
area:editor-notebooksEditors, notebooks, markdown rendering, LSP, and code display.bugSomething isn't working.ready-to-implementThe issue is ready for implementation work.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.warp:auto-triage-review
Running the full warp_editor test suite on a clean master checkout (a50b9dd04) consistently fails the same 8 tests in render::tests. Each of them passes when run individually or as a filtered group — they only fail when the whole suite runs together, which points at cross-test state leakage (some shared/global state mutated by earlier tests) rather than a defect in the tests themselves.
cargo test -p warp_editor # 470 passed, 8 failed
cargo test -p warp_editor render::tests::test_simple_edit # passes
Result on pristine origin/master (a50b9dd04, detached worktree, no local changes): 470 passed / 8 failed — identical failure set across repeated runs.
Environment
macOS 27.0, Apple Silicon (arm64)
Rust 1.92.0 (repo rust-toolchain.toml)
Xcode 27 beta 3, Metal Toolchain 27A5218h (required to build warpui shaders). I can't fully rule out a beta-toolchain interaction, but the deterministic, order-dependent nature (same 8 tests, pass-in-isolation) reads like state leakage.
Context
Found while validating an unrelated markdown_parser change (#13732): the same 8 failures appear with and without that branch's commits, so I baselined against pristine master to confirm they're pre-existing.
This looks actionable as a test-isolation bug: the exact failing set matches the render tests that initialize logging in a way that can collide with logging already initialized by another test. It does not appear tied to your unrelated markdown parser branch.
Maintainer details
I concluded that the full-suite-only warp_editor render failures are most likely caused by process-global test logger initialization colliding with the render tests' logging helper..
Triage summary
This looks like a warp_editor unit-test isolation bug, not a regression from #13732. The reported failure set exactly matches the eight render::tests that call the render test logging helper before running their App::test body.
Evidence
The affected tests in crates/editor/src/render/mod_tests.rs all call init_logging() at the start.
That helper is defined in crates/editor/src/render/model/test_utils.rs and calls env_logger::builder().parse_filters("warp_editor=trace").is_test(true).init() behind a helper-local Once.
env_logger::init() installs a process-global logger and errors/panics once another test has already initialized logging. This crate also has a separate helper in crates/editor/src/content/find_tests.rs that uses try_init(), which supports the full-suite-only order-dependency shape.
That explains why the same tests pass when run alone or as a filtered group but fail when the entire crate suite runs first/alongside them.
Suggested next step
Change the render test logging helper to tolerate an already-initialized logger, such as by using try_init() and ignoring the SetLoggerError, or centralize test logging setup. Then rerun cargo test -p warp_editor to confirm the full crate suite is stable.
No likely duplicates were found among open issues or recently closed issues searched for this failure pattern.
This is my automated analysis and may be incorrect. A maintainer will verify the details.
This issue has been labeled ready-to-implement and is open for contributions involving code changes. If you'd like to tackle it, feel free to open a pull request against this issue. You can also comment @oz-agent on this issue to have the bot draft an implementation PR automatically.
After Oz review completes, that should generally tag a maintainer - in this case, I think the initial review didn't do that because it was still a draft. Asking a maintainer from the original issue to move the PR out of draft works!
area:editor-notebooksEditors, notebooks, markdown rendering, LSP, and code display.bugSomething isn't working.ready-to-implementThe issue is ready for implementation work.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.warp:auto-triage-review
Activity
warp-for-oss commentedon Jul 16, 2026
@fbartho
Here's what I found while triaging this issue:
This looks actionable as a test-isolation bug: the exact failing set matches the render tests that initialize logging in a way that can collide with logging already initialized by another test. It does not appear tied to your unrelated markdown parser branch.
Maintainer details
I concluded that the full-suite-only warp_editor render failures are most likely caused by process-global test logger initialization colliding with the render tests' logging helper..
Triage summary
This looks like a
warp_editorunit-test isolation bug, not a regression from #13732. The reported failure set exactly matches the eightrender::teststhat call the render test logging helper before running theirApp::testbody.Evidence
crates/editor/src/render/mod_tests.rsall callinit_logging()at the start.crates/editor/src/render/model/test_utils.rsand callsenv_logger::builder().parse_filters("warp_editor=trace").is_test(true).init()behind a helper-localOnce.env_logger::init()installs a process-global logger and errors/panics once another test has already initialized logging. This crate also has a separate helper incrates/editor/src/content/find_tests.rsthat usestry_init(), which supports the full-suite-only order-dependency shape.Suggested next step
Change the render test logging helper to tolerate an already-initialized logger, such as by using
try_init()and ignoring theSetLoggerError, or centralize test logging setup. Then reruncargo test -p warp_editorto confirm the full crate suite is stable.No likely duplicates were found among open issues or recently closed issues searched for this failure pattern.
This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz
bnavetta commentedon Jul 17, 2026
I expect our CI doesn't flag this because we use
cargo nextestexclusivelywarp-for-oss commentedon Jul 17, 2026
This issue has been labeled
ready-to-implementand is open for contributions involving code changes. If you'd like to tackle it, feel free to open a pull request against this issue. You can also comment@oz-agenton this issue to have the bot draft an implementation PR automatically.warp-for-oss commentedon Jul 17, 2026
@bnavetta
I'm implementing this issue with no spec context.
You can view the conversation on Warp.
I created a new draft implementation PR for this issue.
Next steps:
Powered by Oz
fbartho commentedon Jul 17, 2026
Oz's implementation matches the result I got to with Claude on my local machine. Not sure how I can help further at this point!
@bnavetta -- is there a way for non-maintainers to ask that the PR get formally reviewed/ moved out of draft state?
bnavetta commentedon Jul 17, 2026
After Oz review completes, that should generally tag a maintainer - in this case, I think the initial review didn't do that because it was still a draft. Asking a maintainer from the original issue to move the PR out of draft works!
fix: make render test logging initialization idempotent (#13889)
fix: make render test logging initialization idempotent (warpdotdev#1…