cloudflare / cloudflare/telescope

Use content hash rather than zip hash to generate zipKey for telescopetest-io

Open
#138 0 comments 0 reactions 0 assignees View on GitHub
ticket
Dominant language
TypeScript
Stars
305
Forks
36
PR merge metrics
No merged PRs in 30d

Description

At the moment, the hash is calculated based on zip buffer:
https://github.com/Judyzc/telescope/blob/9bbeab5a082760a59a8c196f40a033099e9b0a1e/telescopetest-io/src/pages/api/upload.ts#L75-L76

Instead, calculate the hash based on contents of all the files instead to improve reduction in storage.

Contributor guide

Open the contributing guide

Research direction

Start in telescopetest-io/src/pages/api/upload.ts at lines 75–76 and trace how the upload's files and zipKey are handled. Change the hash input from the zip buffer to the contents of all files, then verify that identical contents produce the same key and improve storage reuse.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.