Repository navigation
test: fix tests that failed on the merged FUSE tree - #850
Merged
Merged
Conversation
Test and test-support files only; no product code. No test is deleted. Outdated expectations: old_format_store (in-place upgrade, #804), nameless_records missing-VM wording (#787), home_machine broken-record fix (#806), retired_tombstone platform field (#819), timing_coverage named-Branch resolve (#818), doctor_output banning every fix line. Disturbed by their neighbours: encoder_reuse and diff_entries now measure in their own process; doctor_sandbox waits for the worker's startup writes; provider_state asks a stand-in Docker socket; directory_swapped counts the documented Busy drain refusal. Kernel timing: a new FUSE mount has no share of the dirty limit, so the kernel may write a mapped page out at once. support/hold_dirty.rs raises that mount's min_ratio while dirty_mapping r5_9 and the writeback mapping test need the page to stay dirty. Their assertions are unchanged. Platform scope: the ten get_no_lease tests read native Sandbox records, which exist on macOS only, and now run there only. init_10k pins its SQLite statement counts per platform: Linux runs 3 and 5 fewer than macOS with the same roots and bytes. Why they differ is not known. Verified in Linux containers with SQLite. The edited tests were not compiled on macOS. Production LOC: 244780 -> 244780 (delta 0), tools/production_loc.py on the parent and staged trees. Reference absent (retired R9c; last counted 65,417 at tree 498dd19). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes the tests that failed when the full suites ran on the merged tree of #849. Test and test-support files only; no product code changes and no test is deleted.
What was wrong
old_format_store(Spec: layerfs store upgrade — in-place Store format upgrade (SQLite and PostgreSQL) #804),nameless_records(fix(gc): #784 review fixes: tombstones only on confirmed stop, PostgreSQL release once, keyset audit #787),home_machine(doctor: a fix only where it is safe for that cause, and redacted evidence, on every finding (#159) #806),retired_tombstone(perf(cli): per-call Store open/WAL and PostgreSQL handshake overhead in process-per-call front ends #819),timing_coverage(perf(postgres): batch per-call SQL queries in project.init, file.blame and file.stat #818), and a CLIdoctor_outputtest that banned everyfix:line.encoder_reuseanddiff_entriesnow measure in their own process;doctor_sandboxwaits for the worker's startup writes;provider_stateasks a stand-in Docker socket;directory_swappedcounts the documentedBusydrain refusal.dirty_mappingr5_9 and the writeback mapping test): a new FUSE mount has no share of the kernel's dirty limit, so a mapped page can be written out at once. A test helper raises that one mount'smin_ratiowhile the page must stay dirty. The assertions are unchanged. It needs no rights beyond those of the mount tests.Please check
get_no_leasetests read native Sandbox records, which exist on macOS only. They are now gated to macOS, so Linux CI no longer runs them.init_10know pins SQLite statement counts per platform: Linux runs 3 (nested) and 5 (flat) fewer than macOS, with the same roots and byte counts. Why they differ has not been identified.Checks
Linux containers, SQLite.
dirty_mappingand the writeback mapping test passed 10 of 10; with the early write-out deliberately triggered, the writeback mapping test passed 3 of 3 with the helper and failed 3 of 3 without. Thewritebackbinary passed 16 of 16 andstore39 of 39 run, one module at a time.cargo fmt --checkis clean.Not done: the edited tests were not compiled or run on macOS, Linux Clippy was not run, the full suites were not rerun with all the fixes together, and PostgreSQL was left out.
Still failing or needing setup
retired_dockerandinstalled_repair(layerfs-sandbox, macOS only) pass a machine name where the Sandbox backend nameprocessbelongs. Not changed here.list_live,setup_tool_deadlineandlima_forwardsneeddocker run --init; the backup rotate and store transfer failure tests need a non-root user.Production LOC
Production LOC: 244780 -> 244780 (delta 0),tools/production_loc.py. Reference absent (retired R9c; last counted 65,417 at tree 498dd1917812).🤖 Generated with Claude Code