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

Swarm batch information updater #411

Merged
merged 9 commits into from
Jun 20, 2024
Merged

Swarm batch information updater #411

merged 9 commits into from
Jun 20, 2024

Conversation

PabloCastellano
Copy link
Member

@PabloCastellano PabloCastellano commented Jun 1, 2024

Introduce new periodic job to retrieve Swarm stamp information such as label, TTL and others.

A new environment variable SWARM_BATCH_ID is used to define the batch id used to store blobs.

We are querying the bee endpoint directly because bee-js doesn't support the /stamps endpoint yet

Introduce new periodic job to retrieve Swarm batch information
such as label, TTL and others.

A new environment variable SWARM_BATCH_ID is used to define the batch id
used to store blobs.

We are querying the bee endpoint directly because bee-js doesn't support
the /stamps endpoint yet.
Copy link

changeset-bot bot commented Jun 1, 2024

🦋 Changeset detected

Latest commit: 490cdc2

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

This PR includes changesets to release 9 packages
Name Type
@blobscan/rest-api-server Minor
@blobscan/syncers Minor
@blobscan/db Minor
@blobscan/blob-propagation-jobs-cli Patch
@blobscan/stats-aggregation-cli Patch
@blobscan/api Patch
@blobscan/auth Patch
@blobscan/blob-propagator Patch
@blobscan/blob-storage-manager 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 Jun 1, 2024

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

Name Status Preview Comments Updated (UTC)
blobscan-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2024 8:30am
blobscan-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2024 8:30am
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
blobscan-gnosis ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 8:30am
blobscan-holesky ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 8:30am
blobscan-mainnet ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 8:30am
blobscan-sepolia ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 8:30am

@PabloCastellano PabloCastellano requested a review from PJColombo June 1, 2024 19:46
Copy link
Contributor

github-actions bot commented Jun 1, 2024

📦 Next.js Bundle Analysis for @blobscan/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 98.98477% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.71%. Comparing base (28da372) to head (3d3299f).

Current head 3d3299f differs from pull request most recent head 490cdc2

Please upload reports for the commit 490cdc2 to get more accurate results.

Files Patch % Lines
packages/syncers/src/errors.ts 96.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next     #411      +/-   ##
==========================================
+ Coverage   89.70%   89.71%   +0.01%     
==========================================
  Files         152      152              
  Lines        9548     9616      +68     
  Branches      984      984              
==========================================
+ Hits         8565     8627      +62     
- Misses        983      989       +6     

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

Copy link
Member

@PJColombo PJColombo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @PabloCastellano !

I did some refactoring and changes as we discussed:

  • Unified all syncers into a single package.
  • Made some changes to the swarm stamp syncer:
    • Improved error handling.
    • Changed update for upsert when storing the fetched swarm stamp batch data
    • Added missing unit tests
  • Added missing prisma migration file.

PJColombo and others added 2 commits June 14, 2024 13:25
Rename variable SYNCER_SWARM_STAMP_CRON_PATTERN to SWARM_STAMP_CRON_PATTERN
Changed logger.warn to logger.error + improve message
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.

2 participants