Repository navigation
test: take the Codex desktop router's socket directory from the socket_dir fixture - #5684
Merged
Merged
Conversation
This was referenced Nov 7, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 7, 2026
…#5551, #5552 and #5566 chose (#5685) Ten of #5658's nightly journey cases still expected behavior that a recent change replaced on purpose. This PR updates those tests to what each change intended. One example page also changes: the feature gallery had lost a face that the server would draw. Each case was bisected locally to the first commit where it fails and checked against that commit's parent, which passes. Each fails on main `02a1e05cb` and passes on this branch. | Case | Since | What changed | | --- | --- | --- | | `test_render_widgets.py::test_notification_configuration_becomes_a_commentable_local_artifact` | #5508 | Every playground choice now has its own id. The receipt's comment anchors on the Banner choice that holds it (`format-banner`), not on `notification-simulator`. | | `test_render_gate.py::test_every_table_the_theme_sets_honestly_passes_the_gate` | #5566 | The fixture's available `<figure>` holds a question whose words start at the figure's edge, and #5566's new `words-off-column` advice flags exactly that. The journey checks tables, so it now leaves that question out. The browser test that measures the question's table inside the figure keeps it. | | `test_render_margin.py::test_margin_card_holds_its_top_as_a_turn_arrives_and_as_a_reply_wraps` | #5537 | Beside its passage, a card now holds its reply's foot while the user writes in it. The test now steps onto the thread with Escape before reading, as #5537's own tests do. It checks that each wrap, a long draft and the answer after a send grow the card upward. It is renamed `…holds_its_top_while_read_and_its_reply_while_written`. | | `test_thread_response_continuity.py::…keep_the_first_line[margin-delete-desktop]` | #5537 | Same rule: Backspace in a margin card's reply keeps the reply's foot still, so the margin case reads the foot. The seat cases are unchanged. | | `navigation/test_key_surfaces.py::test_user_news_interrupts_and_then_restores_background_news` | #5448 | The panel's key now stands with Comment after the field's words, so a notice reads `Agent replied — open Threads · Comment… c`. | | `test_page_holds_still.py::…[message-reply-below-chromium]`, `[…-firefox]` | #5551 | A thread's reply box under the floating panel now counts as unseen. A clicked message therefore stays still as an answer joins below it, the strict xfail passed, and its entries leave `MOVES_ON_MAIN`. | | `test_render_navigation.py::test_the_feature_gallery_exercises_its_core_journeys` | #5552 | `progressFace` reads a workflow's `at_work`, which the server stamps on every served workflow. The gallery's margin atlas builds its sample workflows from a stage alone, so its Working samples had lost the working face. The sample now carries `at_work` as the server would stamp it (`examples/developer/feature-gallery.page/widgets/lf-margin-entry-gallery.js`). | The other #5658 cases are handled elsewhere. #5684 (merged) fixed the fixture-resource case. A separate PR widens `--wide` for #5611's diff gutter. The `message-edit-above` cases of `test_page_holds_still.py` come from a runtime regression in #5551, which has its own cause issue. Refs #5658 — automated triage --------- Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Nov 9, 2026
…r test module (#5735) The literal-deadline, fixture-resource and SIGKILL rules each parsed every module under `tests/` in one case, too slow for the `model/` budget. So they sat in `tests/journeys/`, which only the scheduled run reaches. A pull request that broke one merged green and turned main's nightly red: #5455 and #5701 cleaned up literal deadlines, and #5684 a fixture resource taken outside its fixture. The three tests now live in `tests/model/test_suite_source.py`, keeping their names and rules, and each is parametrized over the test modules. A case reads one module, so the tier every pull request runs holds them. Verified locally: - `uv run pytest tests --collect-only` now collects 1056 cases (3 rules × 352 modules). Before, broad discovery skipped all three tests. - All cases pass on this head. A scratch module with `thread.join(5)`, `timeout=1000`, `signal.SIGKILL` and a bare `Popen` fails all three rules, and each finding names the module and line. - Cost: the slowest case takes 0.29 s, well under the 3 s `model/` budget. Total case time is about 11 s locally, against about 10 s for the three old tests. CI's `test` job runs `-n 3`, so this adds a few seconds of wall time to each pull request. Each rule parses its module separately, which triples the parse work. One test that applies all three rules to a single parse would cost about 8 s instead of 11 s. But `tests/AGENTS.md` and `interact_support.py` cite these test names, and changing agent instructions needs a maintainer's approval, so this PR keeps the names. Each finding of a fixed deadline now names the constant that should bound the wait, since the old one-off assertion message no longer exists. Closes #5712 — automated triage Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5424 added two
tempfile.TemporaryDirectory(dir="/tmp")calls totests/model/test_codex_adapter.py, one indesktop_routerand one intest_a_desktop_chat_the_app_cannot_start_falls_back_to_the_queue. The nightlytest_the_resources_a_fixture_owns_are_taken_from_that_fixturejourney refuses these calls, because thesocket_dirfixture owns short directories that hold sockets.desktop_routernow takes its home directory from the caller, and each test that uses it asks forsocket_dir. Nothing outside the tests changes.The journey fails on main
02a1e05cband passes on this branch (uv run pytest --run-nightly tests/journeys/test_interact_layer.py::test_the_resources_a_fixture_owns_are_taken_from_that_fixture). The desktop tests intest_codex_adapter.pycan't bind anAF_UNIXsocket in this sandbox (Errno 97), on main and on the branch alike, so this PR's CI is the first run of them on the new code.Refs #5658 — automated triage. It fixes one of that issue's twelve cases.