assets: allow skipping audio export #726

Manually merged
github merged 1 commit from github-bot/gh-726 into gh-pr/726/base 2026-12-01 18:37:06 +00:00 AGit
Owner

@⁠Ggfortnite99 on GitHub · 2026-11-24 12:58 UTC · original
ProjectLeonida:asset-audio-skip-current → main · +159 −66 · 5 files · 1 commits · merged 2026-12-01 18:35 UTC

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).
**@⁠Ggfortnite99** on GitHub · 2026-11-24 12:58 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/726) `ProjectLeonida:asset-audio-skip-current` → `main` · +159 −66 · 5 files · 1 commits · merged 2026-12-01 18:35 UTC ### 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).
Add an opt-in assets-stage switch to skip audio extraction and conversion, preserve existing audio outputs, and account for the lower disk requirement. AI-assisted implementation; focused tests passed.

Co-authored-by: Copilot <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:18:13 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 13:25 UTC · original · approved these changes

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.
**@⁠abnalstlll-byte** on GitHub · 2026-11-24 13:25 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/726#pullrequestreview-6039976861) · **approved these changes** 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.
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-28 18:01 UTC · original

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

**@⁠MoonEyes** on GitHub · 2026-11-28 18:01 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/726#issuecomment-7243464478) 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).
Author
Owner

@⁠aslan2142 on GitHub · 2026-12-01 11:44 UTC · original · 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** on GitHub · 2026-12-01 11:44 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/726#pullrequestreview-6130566435) · **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.)*
github-bot force-pushed github-bot/gh-726 from 53a70ae065 to fe0fb68460 2026-12-01 17:55:40 +00:00 Compare
Author
Owner

@⁠aslan2142 on GitHub · 2026-12-01 17:55 UTC · original

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.
**@⁠aslan2142** on GitHub · 2026-12-01 17:55 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/726#issuecomment-7320069724) 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.
github-bot changed target branch from main to gh-pr/726/base 2026-12-01 18:36:44 +00:00
github manually merged commit fe0fb68460 into gh-pr/726/base 2026-12-01 18:37:06 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/ubiquitarianism--leonida!726
No description provided.