Skip to content

Remove cache of beacon data files - #2959

Merged
sparrowDom merged 1 commit into
masterfrom
nicka/beacon-data
Aug 4, 2026
Merged

Remove cache of beacon data files#2959
sparrowDom merged 1 commit into
masterfrom
nicka/beacon-data

Conversation

@naddison36

@naddison36 naddison36 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Store downloaded beacon state SSZ files in temporary storage instead of the project cache directory.
  • Create the temporary directory on demand before writing beacon state data.
  • Delete all downloaded beacon state files after verifyBalances and verifyDeposits complete.
  • Run cleanup in a finally block so files are removed even when verification fails.

Background

Talos containers no longer create /app/cache during their build. Beacon verification actions consequently failed with ENOENT when attempting to write ./cache/state_<slot>.ssz.

Beacon state files are large and only needed while an action is running, so they do not need to persist between actions or container deployments.

Testing

  • Ran JavaScript and TypeScript Prettier.
  • Verified utils/beacon.js loads successfully.
  • Ran git diff --check.

@sparrowDom sparrowDom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks looks more resiliant

@sparrowDom
sparrowDom merged commit 1a33a19 into master Aug 4, 2026
9 of 11 checks passed
@sparrowDom
sparrowDom deleted the nicka/beacon-data branch August 4, 2026 12:20
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