Scripts: pr_check.py rejects non-game binary assets in assets/logo/ and launcher/resources/ #15

Open
opened 2026-11-27 05:55:46 +00:00 by github-bot · 0 comments
Owner

@⁠ArpitK24 on GitHub · 2026-11-27 05:53 UTC · original

scripts/pr_check.py currently only allows binary files under tests/data/ (TEST_DATA = ("tests/data/",)). Any PR that adds or updates a branding/UI binary asset under assets/logo/ (such as assets/logo/XSEmu.ico) or launcher/resources/ is rejected by the PR checks workflow with:

<path> is a binary file outside tests/data/ or over 1 MB

Plan:

  • Add REPO_ASSETS = ("assets/logo/", "launcher/resources/") in scripts/pr_check.py and allow non-game binary files there up to MAX_BINARY (1 MB), while keeping GAME_FILES and GAME_DATA blocked.
  • Add unit tests in scripts/test_pr_check.py covering small non-game assets, oversized assets, and GAME_DATA files under those paths.
**@⁠ArpitK24** on GitHub · 2026-11-27 05:53 UTC · [original](https://github.com/zortos293/XSEmu/issues/15) `scripts/pr_check.py` currently only allows binary files under `tests/data/` (`TEST_DATA = ("tests/data/",)`). Any PR that adds or updates a branding/UI binary asset under `assets/logo/` (such as `assets/logo/XSEmu.ico`) or `launcher/resources/` is rejected by the `PR checks` workflow with: > `<path>` is a binary file outside tests/data/ or over 1 MB **Plan:** - Add `REPO_ASSETS = ("assets/logo/", "launcher/resources/")` in `scripts/pr_check.py` and allow non-game binary files there up to `MAX_BINARY` (1 MB), while keeping `GAME_FILES` and `GAME_DATA` blocked. - Add unit tests in `scripts/test_pr_check.py` covering small non-game assets, oversized assets, and `GAME_DATA` files under those paths.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 05:55:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/zortos293--XSEmu#15
No description provided.