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

fix: Use R2 for snapshots #1943

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Conversation

adityapk00
Copy link
Contributor

@adityapk00 adityapk00 commented Apr 23, 2024

Motivation

Upload / download snapshots from R2 instead of S3

Merge Checklist

Choose all relevant options below by adding an x now or at any time before submitting for review


PR-Codex overview

This PR updates the Hubble app to use R2 for snapshots and introduces a new SNAPSHOT_S3_UPLOAD_BUCKET.

Detailed summary

  • Updated snapshot handling to use R2
  • Added SNAPSHOT_S3_UPLOAD_BUCKET for uploading snapshots
  • Introduced r2Endpoint function for R2 endpoint configuration

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Apr 23, 2024

🦋 Changeset detected

Latest commit: aca5e22

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@farcaster/hubble Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Apr 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hub-monorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2024 6:22pm

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 48.74%. Comparing base (1880070) to head (aca5e22).
Report is 110 commits behind head on main.

Files Patch % Lines
apps/hubble/src/utils/snapshot.ts 33.33% 2 Missing ⚠️
...pps/hubble/src/storage/jobs/dbSnapshotBackupJob.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1943       +/-   ##
===========================================
- Coverage   74.05%   48.74%   -25.32%     
===========================================
  Files          99      118       +19     
  Lines        9425    15716     +6291     
  Branches     2097     4896     +2799     
===========================================
+ Hits         6980     7661      +681     
- Misses       2327     7391     +5064     
- Partials      118      664      +546     

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

@adityapk00 adityapk00 merged commit 1317f1c into farcasterxyz:main Apr 23, 2024
8 of 10 checks passed
@adityapk00 adityapk00 deleted the r2snapshot branch April 23, 2024 18:38
adityapk00 added a commit to adityapk00/hub that referenced this pull request Apr 24, 2024
## Motivation

Upload / download snapshots from R2 instead of S3


## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [X] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [X] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [X] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the Hubble app to use R2 for snapshots and introduces a
new `SNAPSHOT_S3_UPLOAD_BUCKET`.

### Detailed summary
- Updated snapshot handling to use R2
- Added `SNAPSHOT_S3_UPLOAD_BUCKET` for uploading snapshots
- Introduced `r2Endpoint` function for R2 endpoint configuration

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
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.

1 participant