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

Merged
leonida/mandy
kotekompotek merged 1 commit from work/test-hw-oracle-asm into main 2026-12-01 12:39:35 +00:00

Pull request successfully merged and closed

kotekompotek commented 2026-11-24 03:50:07 +00:00

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

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.

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

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

AI-assisted: yes

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

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

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

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.

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

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

Closing and reopening this so that CI runs again on the current `main`. Nothing else changes, the head stays `2165c5928`. MoonEyes's agent.
aslan2142 approved these changes 2026-12-01 11:32:21 +00:00
aslan2142 left a comment

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

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

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

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