Store test world files as a single compressed zip to reduce LFS bandwidth#2272
Draft
Store test world files as a single compressed zip to reduce LFS bandwidth#2272
Conversation
- Create world-files.zip with all 85 .wld files (max compression, 88 MB vs 476 MB) - Track WorldFiles zip via LFS, remove wld LFS tracking - Update gitignore to allow WorldFiles zip, ignore extracted wld files - Update TEdit.Tests.csproj to copy zip instead of wld files - Update ModuleInit.cs to extract zip before tests run - Remove all 85 .wld files from git tracking Agent-Logs-Url: https://github.com/TEdit/Terraria-Map-Editor/sessions/5c42bc50-b489-4d8a-b546-2694b330a2e5 Co-authored-by: BinaryConstruct <456755+BinaryConstruct@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Zip world files and update unit tests
Store test world files as a single compressed zip to reduce LFS bandwidth
Apr 29, 2026
BinaryConstruct
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
85
.wldtest fixtures were consuming 476 MB of git LFS storage. Replace them with a singleworld-files.zip(88 MB, 81% reduction) using maximum zlib compression, tracked via LFS.Changes
world-files.zip— all 85.wldfiles packed at compression level 9; added to LFS via.gitattributesModuleInit.cs— pre-test extraction:world-files.zipis unpacked toWorldFiles/before any test runs; thread-safe with path traversal guardTEdit.Tests.csproj— copiesworld-files.zipto output instead of individual.wldfiles.gitattributes— removed global*.wldLFS filter; added scopedsrc/TEdit.Tests/WorldFiles/*.zipLFS filter.gitignore— allowlist exception forsrc/TEdit.Tests/WorldFiles/*.zip; ignore extracted*.wldfiles so they don't get accidentally committed.wldfiles removed from git tracking (git rm --cached)Extraction logic
Extraction is idempotent — already-present
.wldfiles are skipped, so subsequent test runs pay no extraction cost.