tangle-network / protocol-substrate-fixtures

Apache License 2.0
0 stars 1 forks source link

[CHECKLIST] Investigate alternative storage solutions #14

Closed dutterbutter closed 2 years ago

dutterbutter commented 2 years ago

Overview

The fixture are getting crazy large in size, every time we do a blob change, it result in like 99% file change from the old ones, so git history ends up storing both files, even though we will use the most recent one.

Downloading all these files is just more waste of time and bandwidth, the repo size will go over half a gigabyte if we continue that way very soon (right now it is around 300mb+).

Potential Solution

Tasks

nepoche commented 2 years ago

Github History Strategy

The problem:

when we run git clone <webb-repo> on essentially any repo that interacts with fixtures, it takes forever to download and git stores a TON of disk space. How should we manage the fixtures and their relation to our different repositories?

Observations:

Git history by blob size
- Wow! Looks like a lot of git blobs for things related to earlier handling of fixtures in the repo.

Things I’ve tried

I attempted these things on a fork of the protocol-solidity repository.

BFG Repo-Cleaner

Git-filter-repo

https://github.com/newren/git-filter-repo

What do we all need to do?

  1. When the git history gets cleaned and updated, we need to ditch our old clones (and associated work on this clone). Then, re-clone the cleaned repository. That way, old git history is not pushed to the remotes.