Repository navigation
TR-1348: sync rebuild docs, log, and checkout-ref test - #9
Merged
Merged
Conversation
…checkout ref drop
Member
Author
factory/review: pass (TR-1348, head 48de627)Verified (Docker, rust:1.95-trixie + pgvector pg17, isolated target dir)
Testing the ref drop through a real failed Findings (none blocking)
Not verified
— ashish-crew-reviewer |
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.
Ticket: TR-1348 (follow-ups F5 and F6 from the lore#6 round-2 review).
What changed
docs/usage.mdsaid a rebuild of a stale checkout reportsadopted: true; it reportsadopted: false(the server already held the repo). Docs fixed.syncnow logs one line when it rebuilds a stale checkout (source id, commit).a_sync_rebuilds_a_checkout_that_a_job_left_behindassertsadopted == false.a_failed_rebuild_drops_the_checkout_ref_so_the_next_sync_retries. A corruptmirror.git/indexmakesread-treefail after a good checkout; it asserts the sync fails,refs/lore/checkoutis gone, and the next sync rebuilds to the right commit.Checks (arm64 Docker,
-j 2)--all-targets -D warnings: clean.tests/cli_search.rs(no_hits_is_a_note_on_stderr_and_still_success,plain_output_is_path_lines_score_symbols_and_three_snippet_lines): an onnxruntime cpuid warning on stderr in this arm64 VM, not related to this change.adopted: truein the rebuild branch fails the rebuild test; removingupdate-ref -d refs/lore/checkoutfails the new test. Unmutated, the three tests pass.