Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Improve errors during canonical quorum
Merged fintohaps opened 9 months ago

The aim of this patch was to explore a scenario discovered in Zulip1. When pushing to the default branch, an object was missing. To improve this, I needed to hunt down where the error was originating from.

The patch starts with refactoring the cases when the git push is not in the delete case. We classify if the push is opening a patch, updating a patch, or simply pushing a ref.

From there, we refactor the canonical computation by separating it out into its business logic. Here, I was able to refactor the error scenarios, and discovered that it was due to the missing commit during the converges calculation. The patch adds a check that all the commits are present, and if not, provide a better error message.

Finally, a test for the scenario outlined in Zulip is added showing how it can be recovered from.

1

https://radicle.zulipchat.com/#narrow/channel/369873-support/topic/.60error.3A.20git.3A.20object.20not.20found.20-.20no.20match.20for.20id.60.20on.20push/with/527912706

fintohaps opened with revision b938ecde on base c30298fb +486 -84 9 months ago

The aim of this patch was to explore a scenario discovered in Zulip1. When pushing to the default branch, an object was missing. To improve this, I needed to hunt down where the error was originating from.

The patch starts with refactoring the cases when the git push is not in the delete case. We classify if the push is opening a patch, updating a patch, or simply pushing a ref.

From there, we refactor the canonical computation by separating it out into its business logic. Here, I was able to refactor the error scenarios, and discovered that it was due to the missing commit during the converges calculation. The patch adds a check that all the commits are present, and if not, provide a better error message.

Finally, a test for the scenario outlined in Zulip is added showing how it can be recovered from.

1

https://radicle.zulipchat.com/#narrow/channel/369873-support/topic/.60error.3A.20git.3A.20object.20not.20found.20-.20no.20match.20for.20id.60.20on.20push/with/527912706

lorenz pushed revision 2 b547c93a on base c30298fb +500 -84 9 months ago

Review

fintohaps pushed revision 3 db71ef34 on base a9f75d47 +497 -82 9 months ago

Changes:

  • Rebased
  • Accepted review commits
fintohaps merged revision db71ef34 at 1fa30e2e 9 months ago