Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conditional writes for the checkpoint. #61

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Add conditional writes for the checkpoint. #61

merged 2 commits into from
Jan 3, 2024

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 marked this pull request as ready for review December 15, 2023 14:42
@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
15 checks passed
@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