Repository navigation
fix: isolate the website commit provider between tests - #4398
Merged
Merged
Conversation
Website restore installs LEAF_PAGE_COMMIT directly. Without fixture ownership it survives into later tests and their subprocesses, making a quiet Codex tool hook import website storage and its page validators. Clear and restore the provider through isolated_session, preserving website publication behavior and the quiet-hook assertion. Closes #4251
This was referenced Oct 27, 2026
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.
Website restore installs
LEAF_PAGE_COMMITdirectly, but the session fixture did not restore it. A later quiet Codex hook inherited that website provider and importedjsonschemaandturbohtmlwhen closing its page transaction. The fixture now clears and restores the provider alongside the other host overrides, keeping each test's host configuration local to that test.The ordered reproduction runs
test_website_restore_streams_shared_chunks_once_across_files_and_pagesfollowed bytest_codex_tool_hook_reads_a_quiet_page_without_the_page_modelwith-n0: it fails before this change with the reported imports and passes afterward. All five focused checks (the saved-record process tests followed by the quiet-hook test), Python compilation and scoped pre-commit checks pass. The existing hook assertion and website publication behavior are preserved.The provider was introduced by #2652 to publish saved website records under the page lease; this repair keeps that intent and fixes test environment ownership.
CI verification on eb1f22b
The pull-request CI passed. The full Linux and macOS dispatch completed with the quiet-hook test passing on both platforms (Linux at 09:49:48 UTC; macOS at 11:02:16 UTC). Its other failures are browser/site checks, including the metadata-size diagnostic tracked in #4341 and unused-export diagnostic in #4250; the dispatch is red, not a full-suite pass. This diff changes only host-provider isolation in the test fixture, preserving product code and the failing tests' assertions.
The automated review stopped at Tend's PR burst-limit preflight before an agent ran. This session reviewed the fixture diff and its setup/teardown behavior without findings; the change adds one environment reset to the existing isolation owner rather than special-casing hook imports or weakening coverage.
Closes #4251 — automated triage