assets: allow skipping audio export #726

Merged
leonida/mandy
Ggfortnite99 merged 1 commit from asset-audio-skip-current into main 2026-12-01 18:35:45 +00:00

Pull request successfully merged and closed

Ggfortnite99 commented 2026-11-24 12:58:41 +00:00

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).
### 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 approved these changes 2026-11-24 13:25:04 +00:00
abnalstlll-byte left a comment

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.
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

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).

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 reviewed 2026-12-01 11:44:38 +00:00
aslan2142 left a comment
No description provided.
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

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.
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 description provided.