[PR #1266] audio_config: document radio track label keys and add counts-only checker (OLD-9979) #1298

Open
opened 2026-11-26 20:20:46 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1266
Author: @IlyassRS3
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-9979-track-labels


📝 Commits (1)

  • ac55444 Document radio track label keys and count matches

📊 Changes

3 files changed (+210 additions, -0 deletions)

View changed files

📝 docs/audio_config.md (+23 -0)
➕ tests/test_track_labels.py (+99 -0)
➕ tools/track_labels.py (+88 -0)

📄 Description

What changed

Carries forward old-pr/9979 (draft #244, original commit by @Elijah-J) rebased cleanly onto current main (0b45fdc21), preserving the original author commit:

  • docs/audio_config.md: document the marker-derived radio title/artist label keys (joaat("<N>s") and joaat("<N>a")) and counts-only checker invocation.
  • tools/track_labels.py: local counts-only checker reporting marker_rows, distinct_numbers, and title/artist present/empty/absent counts for extracted AWC banks against one string-table resource, emitting fixed path-free errors on invalid inputs.
  • tests/test_track_labels.py: hand-built AWC bank and string-table fixture tests verifying aggregation, independence from stream-name hashes, and path-/sentinel-free error handling.

Item ID

  • Coordination issue #14 item: OLD-9979 (carries forward old-pr/9979 / draft #244, #17)
  • Depends on: none

Verification

Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only):

  • python3 -I tests/test_track_labels.py -v -> 3/3 OK
  • python3 -I tests/test_tool_startup.py -v -> 2/2 OK
  • python3 -I tests/test_tool_stdout_encoding.py -> 4/4 OK
  • All 12 tests/test_docs_*.py suites -> all OK
  • python3 -I tests/test_ci_registration.py -> 15/15 OK (new test file selected by CI stdlib loop)
  • python3 -I tests/test_text_write_line_endings.py -> 3/3 OK
  • python3 -m compileall -q tools/track_labels.py tests/test_track_labels.py -> OK
  • python3 -I scripts/check_no_game_data.py docs/audio_config.md tools/track_labels.py tests/test_track_labels.py -> OK

Checklist

  • No game files, binaries, shaders, textures, audio, or logs quoting them
  • No keys, decryption, or online services
  • Claimed in the coordination issue (#14) before opening this PR
  • AI-assisted: yes (carried forward, audited, rebased, and verified with AI assistance; original commit by @Elijah-J preserved)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1266 **Author:** [@IlyassRS3](https://github.com/IlyassRS3) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-9979-track-labels` --- ### 📝 Commits (1) - [`ac55444`](https://github.com/ubiquitarianism/leonida/commit/ac554447091915e4af37c23c9adbfb8eb8d500c7) Document radio track label keys and count matches ### 📊 Changes **3 files changed** (+210 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/audio_config.md` (+23 -0) ➕ `tests/test_track_labels.py` (+99 -0) ➕ `tools/track_labels.py` (+88 -0) </details> ### 📄 Description ## What changed Carries forward `old-pr/9979` (draft #244, original commit by @Elijah-J) rebased cleanly onto current `main` (`0b45fdc21`), preserving the original author commit: - `docs/audio_config.md`: document the marker-derived radio title/artist label keys (`joaat("<N>s")` and `joaat("<N>a")`) and counts-only checker invocation. - `tools/track_labels.py`: local counts-only checker reporting `marker_rows`, `distinct_numbers`, and title/artist `present`/`empty`/`absent` counts for extracted AWC banks against one string-table resource, emitting fixed path-free errors on invalid inputs. - `tests/test_track_labels.py`: hand-built AWC bank and string-table fixture tests verifying aggregation, independence from stream-name hashes, and path-/sentinel-free error handling. ## Item ID - Coordination issue #14 item: `OLD-9979` (carries forward `old-pr/9979` / draft #244, #17) - Depends on: none ## Verification Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only): - `python3 -I tests/test_track_labels.py -v` -> **3/3 OK** - `python3 -I tests/test_tool_startup.py -v` -> **2/2 OK** - `python3 -I tests/test_tool_stdout_encoding.py` -> **4/4 OK** - All 12 `tests/test_docs_*.py` suites -> **all OK** - `python3 -I tests/test_ci_registration.py` -> **15/15 OK** (new test file selected by CI stdlib loop) - `python3 -I tests/test_text_write_line_endings.py` -> **3/3 OK** - `python3 -m compileall -q tools/track_labels.py tests/test_track_labels.py` -> OK - `python3 -I scripts/check_no_game_data.py docs/audio_config.md tools/track_labels.py tests/test_track_labels.py` -> OK ## Checklist - [x] No game files, binaries, shaders, textures, audio, or logs quoting them - [x] No keys, decryption, or online services - [x] Claimed in the coordination issue (#14) before opening this PR - [x] AI-assisted: yes (carried forward, audited, rebased, and verified with AI assistance; original commit by @Elijah-J preserved) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#1298
No description provided.