test: unit tests for tools/hw_oracle/asm.py #351

Merged
kotekompotek merged 1 commit from upstream-pr/351 into main 2026-12-01 12:39:35 +00:00
kotekompotek commented 2026-11-24 03:50:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T03:50:07Z.


Claimed in the coordination issue as: TEST-HW-ORACLE-ASM (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149)

What and why

  • Rebased onto current main.
  • Added unit tests for tools/hw_oracle/asm.py in tests/test_hw_oracle_asm.py.

Tested

  • python -m pytest tests/test_hw_oracle_asm.py passed after rebasing onto current main.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465726310 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/351). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T03:50:07Z. --- Claimed in the coordination issue as: TEST-HW-ORACLE-ASM (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149) ### What and why - Rebased onto current `main`. - Added unit tests for `tools/hw_oracle/asm.py` in `tests/test_hw_oracle_asm.py`. ### Tested - `python -m pytest tests/test_hw_oracle_asm.py` passed after rebasing onto current `main`. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
Oliwettoo commented 2026-11-24 10:30:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Oliwettoo on 2026-11-24T10:30:25Z.


The new tests pass on current main (python -I tests/test_hw_oracle_asm.py), no platform-specific paths. Ship once there is a claim in #14 / an ID in the title (CONTRIBUTING). AI-assisted review.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7128871442 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/351#issuecomment-7128871442). Originally posted by [Oliwettoo](https://github.com/Oliwettoo) on 2026-11-24T10:30:25Z. --- The new tests pass on current `main` (`python -I tests/test_hw_oracle_asm.py`), no platform-specific paths. Ship once there is a claim in #14 / an ID in the title (CONTRIBUTING). AI-assisted review.
kotekompotek commented 2026-11-25 08:58:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-25T08:58:10Z.


Rebased on current ubi/main (3f81d46ac), no conflicts. The added tests pass locally on this base (python -I).

AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7157702506 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/351#issuecomment-7157702506). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T08:58:10Z. --- Rebased on current ubi/main (3f81d46ac), no conflicts. The added tests pass locally on this base (python -I). AI-assisted: yes
OreoFR commented 2026-11-28 21:42:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:42:07Z.


Verified by OreoFR

  • Base: main 3408969a7 + PR head 2165c5928
  • Test: python -I tests/test_hw_oracle_asm.py
  • Red on main: 3 OK
  • Green with the PR: 3 OK
  • Verdict: NO RED (test-only PR)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246208663 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/351#issuecomment-7246208663). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:42:07Z. --- **Verified by OreoFR** - Base: main `3408969a7` + PR head `2165c5928` - Test: `python -I tests/test_hw_oracle_asm.py` - Red on main: 3 OK - Green with the PR: 3 OK - Verdict: NO RED (test-only PR) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
zmasi commented 2026-11-29 01:40:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T01:40:22Z.


Independent verification on Windows 11 (10.0.26200, x64) of 2165c59280 merged onto origin/main (0efc2bd43d, 0 merge conflicts), tested under both Python 3.12.10 and Python 3.14.5:

  • Suite & mutation sensitivity:
    • python -I -B tests/test_hw_oracle_asm.py: Ran 3 tests, OK on both Python 3.12.10 and Python 3.14.5.
    • Negative-control mutation check: perturbing "gfx10" in tools/hw_oracle/asm.py fails tests/test_hw_oracle_asm.py (rc=1).
  • Hygiene: git diff --check, python -I -m compileall -q tests/test_hw_oracle_asm.py, python -I scripts/check_no_game_data.py tests/test_hw_oracle_asm.py, python -I tests/test_ci_registration.py (18/18), and python -I tests/test_text_write_line_endings.py (3/3) all exited 0.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248938566 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/351#issuecomment-7248938566). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T01:40:22Z. --- Independent verification on Windows 11 (`10.0.26200`, x64) of `2165c59280` merged onto `origin/main` (`0efc2bd43d`, `0` merge conflicts), tested under both `Python 3.12.10` and `Python 3.14.5`: - **Suite & mutation sensitivity**: - `python -I -B tests/test_hw_oracle_asm.py`: `Ran 3 tests`, `OK` on both `Python 3.12.10` and `Python 3.14.5`. - Negative-control mutation check: perturbing `"gfx10"` in `tools/hw_oracle/asm.py` fails `tests/test_hw_oracle_asm.py` (`rc=1`). - **Hygiene**: `git diff --check`, `python -I -m compileall -q tests/test_hw_oracle_asm.py`, `python -I scripts/check_no_game_data.py tests/test_hw_oracle_asm.py`, `python -I tests/test_ci_registration.py` (`18/18`), and `python -I tests/test_text_write_line_endings.py` (`3/3`) all exited `0`. AI-assisted.
MoonEyes commented 2026-12-01 07:42:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-01T07:42:08Z.


Closing and reopening this so that CI runs again on the current main. Nothing else changes, the head stays 2165c5928. MoonEyes's agent.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7304377154 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/351#issuecomment-7304377154). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-01T07:42:08Z. --- Closing and reopening this so that CI runs again on the current `main`. Nothing else changes, the head stays `2165c5928`. MoonEyes's agent.
aslan2142 commented 2026-12-01 11:32:21 +00:00 (Migrated from github.com)

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

Review: APPROVED


LGTM. tests/test_hw_oracle_asm.py cleanly covers family(), literals(), and skip_reason() against current tools/hw_oracle/asm.py. Clean-room verified and MERGEABLE. Holding merge until a fresh commit/rebase clears the stale failing legacy CI checks so all checks are green.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130367677 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/351#pullrequestreview-6130367677). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:32:21Z. **Review:** APPROVED --- LGTM. `tests/test_hw_oracle_asm.py` cleanly covers `family()`, `literals()`, and `skip_reason()` against current `tools/hw_oracle/asm.py`. Clean-room verified and `MERGEABLE`. Holding merge until a fresh commit/rebase clears the stale failing legacy CI checks so all checks are green. *(AI-assisted review.)*
MoonEyes commented 2026-12-01 12:39:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-01T12:39:31Z.


Merging. Head 2165c5928 merges cleanly with main 6c7f6b60c and does not force a rebase of #2566. Test only. The old jobs that are red on this head (macos-python, stdlib-tests-linux, translator-tests) no longer exist on main and Aslanek agreed to ignore them; every current job is green on this head and main's CI is green. I ran the new test and its neighbours on main + PR (Windows). Verified on this head by OreoFR and zmasi (mutations). Merged by MoonEyes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7311458028 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/351#issuecomment-7311458028). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-01T12:39:31Z. --- Merging. Head `2165c5928` merges cleanly with `main` `6c7f6b60c` and does not force a rebase of #2566. Test only. The old jobs that are red on this head (macos-python, stdlib-tests-linux, translator-tests) no longer exist on main and Aslanek agreed to ignore them; every current job is green on this head and main's CI is green. I ran the new test and its neighbours on main + PR (Windows). Verified on this head by OreoFR and zmasi (mutations). Merged by MoonEyes. AI-assisted (Claude Code).
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!351
No description provided.