This repository was archived by the owner on Sep 30, 2024. It is now read-only.
repos: check for corruption during backgroud repo update#46014
Merged
Conversation
This was referenced Dec 30, 2022
Contributor
Author
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
Contributor
|
Codenotify: Notifying subscribers in CODENOTIFY files for diff 198a4fb...bcbd8b1.
|
mrnugget
reviewed
Jan 2, 2023
28c3930 to
6353553
Compare
ae992b3 to
7d84cab
Compare
159a47c to
edd03f4
Compare
acf857c to
b344086
Compare
mrnugget
approved these changes
Jan 4, 2023
b344086 to
fbcdd3b
Compare
sashaostrikov
approved these changes
Jan 5, 2023
fbcdd3b to
eeaf8a1
Compare
- check for err - remove reason - set default timestamp to 0 value
- log repo corruption into a JSON array - limit repo corruption log to 10 elements - db tests
- warn instead of return an error during cleanup - delete repos so that the name can be reused
- sql query indentation
- use assert module
f96852b to
885fc19
Compare
eeaf8a1 to
38c83ac
Compare
- fix SQL issue on LastError
- update comments
38c83ac to
bcbd8b1
Compare
Contributor
Author
|
⏳ This pull request is set to merge as part of a Graphite merge job |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

During background repo update, git server can encounter errors which
indicate that the repo is corrupt but it never gets marked as corrupt,
leading to it never being cleanup as a corrupt repo would.
This change lets GitSyncer upon Error return a GitCommandError, which
allows us to inspect the stderr and determine whether the repo is
corrupt.
Test plan
Unit tests + CI