ci: tighten repository hygiene - #1639
andremmfaria wants to merge 13 commits into
Conversation
a3ed080 to
725546a
Compare
|
Package size impact, comparing AppVeyor artifacts from master against this PR:
The ~650 KB reduction comes from the deleted unused data files (mostly Update: the measurements above are for |
|
Tested this PR's build for completeness. What I covered:
Not tested: X-COM base defense. I'm comfortable with the gap because this PR touches no gameplay code, and I verified the deletions independently:
|
a6f89b2 to
fcd3ca1
Compare
|
@FilmBoy84 , Please note that the removed assets on |
Good catch, will have a think how best to resolve this and chat to @JonnyH also I joined the project in 2017 so long after all this was put into the repository 😅 |
169b935 to
742d005
Compare
5056f53 to
1dbbfac
Compare
1dbbfac to
721c21b
Compare
Replace the committed reference PNGs in data/test_images with SHA-256 digests of the decoded RGBA output. The reference images were rendered original game assets, which conflicts with the clean-room contribution policy; digests keep the decoder regression coverage without distributing any artwork.
721c21b to
6775812
Compare
Refs #1631.
This is the first CI modernization slice. It removes legacy repository clutter, cleans generated and reference data from the tracked tree, copies static mod data through CMake, and adds guards for generated source/data churn.
What this PR does:
temp/reference dumps (283 PNGs of exported palettes and font glyphs, scratch imagedump output from 2014 that was tracked despite being gitignored). Nothing references them and DEVELOPMENT.md (from docs: add development guide #1630) clearly states that we should not add static assets from the game on the repo.data/test_images/(12 PNGs of decoded original game graphics) and rewritestest_imagesto compare SHA-256 digests of the decoded RGBA output instead of committed reference images. Same decoder regression coverage, no game artwork in the repo. The digests were generated from decodes verified pixel-identical to the old references; on an intentional decoder change the test prints the new digests to copy in.EXTRACTED_DATA_DIR(defaults to the build dir), with a CI guard that fails if a build writes generated data into the source tree.data/wallpaper.jpg,data/disturbance.ttf(no TTF loader exists),data/ui/ufopaediablank.png,data/ui/transparent.png,data/logo.svg,data/openapoc_3dlogo.obj,data/battle/battle-icon-{38,39}.png.extract_unit_animation_pack_template.cpp(unwired since 2017, no longer compiles) andextractors_pch.h(cotire leftover, never wired to the PCH resurrection in Resurrect PCH support, enable on CI #1529).tools/editor/stub and itsBUILD_EDITORoption (the directory never contained sources).appveyor-dev.yml: the AppVeyor project builds every branch, including dev-branch PRs, fromappveyor.yml(verified via build artifacts), so the dev config is dead.update-translationstarget withif (GETTEXT_FOUND AND LANGUAGES)so it cannot be invoked while translations are paused (it previously failed on a danglingpofilesdependency). The.po/.pot/Transifex files are kept, per the intent of e6132a5.target_include_directoriesline referencing the misspelledGLM_INCLIDE_DIR(glm is already inherited transitively).