Skip to content

Comments

Add conditional writes for the checkpoint.#61

Merged
jiggoha merged 2 commits intomainfrom
precondition
Jan 3, 2024
Merged

Add conditional writes for the checkpoint.#61
jiggoha merged 2 commits intomainfrom
precondition

Conversation

@jiggoha
Copy link
Contributor

@jiggoha jiggoha commented Dec 14, 2023

After this PR, the Integrate function may fail if the generation precondition of the new checkpoint does not match the last read checkpoint.

To tighten that, we should add a retry policy for the Cloud Build step (e.g. here) to Integrate a new log entry.

@jiggoha jiggoha changed the title Add conditional writes for the checkpoint. Add preconditions for writes. Dec 14, 2023
@jiggoha jiggoha changed the title Add preconditions for writes. Add conditional writes for the checkpoint. Dec 14, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a4ff46d) 55.99% compared to head (29f37d0) 55.99%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #61   +/-   ##
=======================================
  Coverage   55.99%   55.99%           
=======================================
  Files           8        8           
  Lines         759      759           
=======================================
  Hits          425      425           
  Misses        265      265           
  Partials       69       69           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jiggoha jiggoha requested a review from AlCutter December 14, 2023 19:29
@jiggoha jiggoha marked this pull request as ready for review December 15, 2023 14:42
@jiggoha jiggoha requested a review from mhutchinson January 2, 2024 19:43
@jiggoha
Copy link
Contributor Author

jiggoha commented Jan 3, 2024

The force-pushing was some non-elegant rebasing onto main.

I deployed to some dev functions on GCF to test this PR.

@jiggoha jiggoha merged commit 588d442 into main Jan 3, 2024
@jiggoha jiggoha deleted the precondition branch January 3, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants