Repository navigation
Retry git-data writes GitHub hasn't replicated yet; README badges - #4
Merged
Merged
Conversation
createCommit right after createTree has failed with 422 "Tree SHA does not exist" (seen in CI): GitHub's git database is replicated and a fresh object can briefly be invisible. createTree, createCommit and updateRef now retry that kind of 422 after a short wait (0.5s, 1s, 2s). Other 422s, including a ref update that isn't a fast-forward, still fail at once, so the push's race detection is unchanged. This applies to the plugin's push as well as the test scaffolding, which goes through the same client. README: CI and latest-release badges. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The engine e2e and the in-Obsidian suites run concurrently in CI against the same branch. A test's push could see the branch moved by the other suite and correctly report "raced" before reaching what it meant to test, e.g. the mass-deletion guard. Push through a helper that pulls and retries on a race, like the plugin's sync loop; the deliberate stale-push test still pushes directly. Co-Authored-By: Claude Opus 5.5 (1M context) <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.
mainwherecreateCommitfailed with 422 "Tree SHA does not exist" right aftercreateTree.createTree,createCommitandupdateRefnow retry that kind of 422 (0.5s, 1s, 2s). The same code backs the plugin's push, so users benefit too. A non-fast-forward 422 still fails at once, so race detection is unchanged; there's a unit test for it.🤖 Generated with Claude Code