You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Periodically fetch /assets and /main/translations/en/news.po content from URL parameter (like HOSTERS_HOF_URL, but adding -L and using https://api.github.com/repos/internetstandards/new-news-repo/tarball)
This would fix point 2, 3 and 4, but not 1.
Maybe look into git replace to optimize the repo, and fresh clones will be small again, without rewriting history. See this Stack Overflow and the git book documentation with clear visuals about it. However this does not seem to be ideal. Unless maybe if the complete 'filtered' (rewritten/rebased) history is replayed?
Another option might be to repack the pack files so the removed /assets are packed in one pack file, that does not need to be downloaded since it's not in the current HEAD references. But I'm unsure if this can be done with GitHub, and if a pack file can be 'skipped', e.g.:
sparse:path was removed, although the result is 2 pack files (12MiB and 207MiB), pushing this to a new GitHub repo does not do the trick, it is cloned again as one pack file.
Resulting in the following summary, which takes into account pack compression.
Total size
first part of path
reason
208MiB
/assets
News related assets like mp4, webm, pdf
2.7MiB
/remote_data
decompressed current snapshot is 3.6MiB (tar.gz 1.1MiB)
2.3MiB
/documentation
1.9MiB in /images
1.4MiB
/vendor
1.4MiB zlib-1.2.13.tar.gz file
955KiB
/interface
790KiB in /static 368KiB of this is accessibility/check_6967_auto_rapport.pdf 172KiB are (unused?) fonts
661KiB
/checks
all code, although some deleted /static/ does exists, unsure if these are 'replaced' or really removed files (if it's the first, cleaning up will not save the pack size)
659KiB
/translations
245KiB (nl) and 222KiB (en) main.po 125KiB (nl) and 64KiB (en) news.po
449KiB
/docker
145KiB are two version of public_suffix_list.dat (one is deleted)
57KiB
/tests
54KiB
/Changelog.md
All /assets and the old news.po can be cleaned up.
Should look into optimizing /documentation/images/ and /interface/static/.
Probably /remote_data can not be optimized.
The text was updated successfully, but these errors were encountered:
Currently news content, and worse, large
/assets
files (PDF/videos) attached to it are merged into the main repo.Resulting in:
.git
is about 220MB)Receiving objects: 100% (9650/9650), 218.77 MiB
app
container, since:Internet.nl/docker/Dockerfile
Line 188 in dd6e4ba
this all is not ideal.
A solution would be to:
/assets
and/main/translations/en/news.po
content from URL parameter (likeHOSTERS_HOF_URL
, but adding-L
and usinghttps://api.github.com/repos/internetstandards/new-news-repo/tarball
)This would fix point 2, 3 and 4, but not 1.
Maybe look into
git replace
to optimize the repo, and fresh clones will be small again, without rewriting history. See this Stack Overflow and the git book documentation with clear visuals about it. However this does not seem to be ideal. Unless maybe if the complete 'filtered' (rewritten/rebased) history is replayed?Another option might be to repack the pack files so the removed
/assets
are packed in one pack file, that does not need to be downloaded since it's not in the current HEAD references. But I'm unsure if this can be done with GitHub, and if a pack file can be 'skipped', e.g.:sparse:path
was removed, although the result is 2 pack files (12MiB and 207MiB), pushing this to a new GitHub repo does not do the trick, it is cloned again as one pack file.Large stuff:
50 largest files (on disk)
Resulting in the following summary, which takes into account pack compression.
/assets
/remote_data
/documentation
/images
/vendor
zlib-1.2.13.tar.gz
file/interface
/static
368KiB of this is
accessibility/check_6967_auto_rapport.pdf
172KiB are
(unused?)fonts/checks
/static/
does exists,unsure if these are 'replaced' or really removed files
(if it's the first, cleaning up will not save the pack size)
/translations
main.po
125KiB (nl) and 64KiB (en)
news.po
/docker
public_suffix_list.dat
(one is deleted)/tests
/Changelog.md
All
/assets
and the oldnews.po
can be cleaned up.Should look into optimizing
/documentation/images/
and/interface/static/
.Probably
/remote_data
can not be optimized.The text was updated successfully, but these errors were encountered: