assets: allow skipping audio export #726

Merged
Ggfortnite99 merged 1 commit from upstream-pr/726 into main 2026-12-01 18:35:45 +00:00
Ggfortnite99 commented 2026-11-24 12:58:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Ggfortnite99 on 2026-11-24T12:58:41Z.


What and why

Adds an opt-in --no-audio flag for the assets stage. It skips audio extraction and conversion, preserves existing audio files, and leaves full audio export as the default. A later assets run without the flag can export audio. Preflight uses a 340 GiB assets estimate for the no-audio path, based on the documented ~337 GiB non-audio measurement.

This reduces time and storage when audio exports are not needed; it does not implement splitting files across drives. Context: the storage request recorded as old #7034 in issue #18.

Claimed in the coordination issue as: Not claimed; submitted directly for maintainer review (no matching open-work item is listed in #14).
Depends on: none.
Fixes: none.

Tested

  • python -I tests/test_audio_stage_resume.py — 13 passed
  • python -I tests/test_make_game_argparse.py — 40 passed
  • python -I tests/test_make_game_preflight.py — 100 passed, 2 skipped
  • python -I tests/test_docs_cli_flags.py — 4 passed
  • python -I tests/test_leonida_tui.py — 25 passed
  • python -m compileall -q make_game.py tools tests
  • python -I scripts/check_no_game_data.py on changed source, documentation and tests
  • Git merge-tree check against current main completed without conflicts

No full game build or performance benchmark was run.

GPUs tested: n/a.
AI-assisted: yes.

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption included.
  • New translator rule documented (not applicable; no translator rule added).
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5472599544 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/726). Originally posted by [Ggfortnite99](https://github.com/Ggfortnite99) on 2026-11-24T12:58:41Z. --- ### What and why Adds an opt-in `--no-audio` flag for the assets stage. It skips audio extraction and conversion, preserves existing audio files, and leaves full audio export as the default. A later assets run without the flag can export audio. Preflight uses a 340 GiB assets estimate for the no-audio path, based on the documented ~337 GiB non-audio measurement. This reduces time and storage when audio exports are not needed; it does not implement splitting files across drives. Context: the storage request recorded as old #7034 in [issue #18](https://github.com/ubiquitarianism/leonida/issues/18). Claimed in the coordination issue as: Not claimed; submitted directly for maintainer review (no matching open-work item is listed in #14). Depends on: none. Fixes: none. ### Tested - `python -I tests/test_audio_stage_resume.py` — 13 passed - `python -I tests/test_make_game_argparse.py` — 40 passed - `python -I tests/test_make_game_preflight.py` — 100 passed, 2 skipped - `python -I tests/test_docs_cli_flags.py` — 4 passed - `python -I tests/test_leonida_tui.py` — 25 passed - `python -m compileall -q make_game.py tools tests` - `python -I scripts/check_no_game_data.py` on changed source, documentation and tests - Git merge-tree check against current `main` completed without conflicts No full game build or performance benchmark was run. GPUs tested: n/a. AI-assisted: yes. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption included. - [ ] New translator rule documented (not applicable; no translator rule added).
abnalstlll-byte commented 2026-11-24 13:25:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:25:04Z.

Review: APPROVED


Audited and verified. Clean-room compliant.

  • Adds --no-audio option to make_game.py assets stage, reducing disk space footprint to ~370 GB.
  • Correctly records and credits ASSETS_NO_AUDIO_MARKER on completion.
  • Unit tests in tests/test_make_game_preflight.py PASS.
<!-- greyfinch-sync:ubiquitarianism/leonida:review:6039976861 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/726#pullrequestreview-6039976861). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T13:25:04Z. **Review:** APPROVED --- Audited and verified. Clean-room compliant. - Adds --no-audio option to make_game.py assets stage, reducing disk space footprint to ~370 GB. - Correctly records and credits ASSETS_NO_AUDIO_MARKER on completion. - Unit tests in tests/test_make_game_preflight.py PASS.
MoonEyes commented 2026-11-28 18:01:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:01:06Z.


Hi @Ggfortnite99, thanks for this pull request. It currently conflicts with main (conflicting file(s): make_game.py, tests/test_make_game_argparse.py), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243464478 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/726#issuecomment-7243464478). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T18:01:06Z. --- Hi @Ggfortnite99, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `make_game.py`, `tests/test_make_game_argparse.py`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 11:44:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:44:38Z.

Review: DISMISSED


This PR cannot merge in its current state:

  • Merge conflicts with main in make_game.py and tests/test_make_game_argparse.py.
  • Failing CI (stdlib-tests-linux, macos-python, check).
  • Please also record the item claim in the open coordination issue per CONTRIBUTING.md.

Please rebase onto current main and get a green CI run.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130566435 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/726#pullrequestreview-6130566435). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:44:38Z. **Review:** DISMISSED --- This PR cannot merge in its current state: - **Merge conflicts** with `main` in `make_game.py` and `tests/test_make_game_argparse.py`. - **Failing CI** (`stdlib-tests-linux`, `macos-python`, `check`). - Please also record the item claim in the open coordination issue per `CONTRIBUTING.md`. Please rebase onto current `main` and get a green CI run. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 17:55:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:55:24Z.


Rebased asset-audio-skip-current onto main (27613ab6b -> fe0fb6846, AI-assisted).

Conflicts resolved:

  • README.md: kept the updated main layout and noted the ~340 GB --no-audio assets estimate under the make_game.py section.
  • make_game.py: preserved newer main changes (overlap on preflight, parallel BCPack follow-up helpers, --skip-existing on awc_opus.py, --loop-limit validation, sdl3/pc_glyphs and PlainStageLogs on run_build_stages).
  • tests/test_make_game_argparse.py: kept overlap=True alongside no_audio=False in mock_preflight.assert_called_once_with.

Verified locally on Linux (Python 3.14):

  • python3 -I scripts/check_no_game_data.py (exit 0)
  • git diff --check origin/main..HEAD (clean)
  • python3 -m compileall -q make_game.py tools tests (exit 0)
  • python3 -I make_game.py --help (lists --no-audio)
  • Unit tests passed: test_audio_stage_resume.py (13), test_make_game_argparse.py (40, 1 skipped), test_make_game_preflight.py (112, 1 skipped), all test_docs_*.py (59 across 13 suites), test_leonida_tui.py (28), and all other test_make_game_*.py, test_*audio*.py, and test_ttpf_assets.py suites.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7320069724 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/726#issuecomment-7320069724). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:55:24Z. --- Rebased `asset-audio-skip-current` onto `main` (`27613ab6b` -> `fe0fb6846`, AI-assisted). Conflicts resolved: - `README.md`: kept the updated `main` layout and noted the ~340 GB `--no-audio` assets estimate under the `make_game.py` section. - `make_game.py`: preserved newer `main` changes (`overlap` on `preflight`, parallel BCPack follow-up helpers, `--skip-existing` on `awc_opus.py`, `--loop-limit` validation, `sdl3`/`pc_glyphs` and `PlainStageLogs` on `run_build_stages`). - `tests/test_make_game_argparse.py`: kept `overlap=True` alongside `no_audio=False` in `mock_preflight.assert_called_once_with`. Verified locally on Linux (Python 3.14): - `python3 -I scripts/check_no_game_data.py` (exit 0) - `git diff --check origin/main..HEAD` (clean) - `python3 -m compileall -q make_game.py tools tests` (exit 0) - `python3 -I make_game.py --help` (lists `--no-audio`) - Unit tests passed: `test_audio_stage_resume.py` (13), `test_make_game_argparse.py` (40, 1 skipped), `test_make_game_preflight.py` (112, 1 skipped), all `test_docs_*.py` (59 across 13 suites), `test_leonida_tui.py` (28), and all other `test_make_game_*.py`, `test_*audio*.py`, and `test_ttpf_assets.py` suites.
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!726
No description provided.