Skip to content

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

Merged
MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
kotekompotek:work/test-hw-oracle-asm
Dec 1, 2026
Merged

MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
kotekompotek:work/test-hw-oracle-asm

Conversation

@kotekompotek

@kotekompotek kotekompotek commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: TEST-HW-ORACLE-ASM (#14 (comment))

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.

demoz53 added a commit to demoz53/leonida that referenced this pull request Nov 24, 2026
@Oliwettoo

Copy link
Copy Markdown

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
kotekompotek force-pushed the work/test-hw-oracle-asm branch from 72f1b54 to 2165c59 Compare November 25, 2026 08:57
@kotekompotek

Copy link
Copy Markdown
Contributor Author

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

AI-assisted: yes

milk4sale pushed a commit to milk4sale/leonida that referenced this pull request Nov 27, 2026
…h-pitch

Formats: reject overlapping texture depth slices
@OreoFR

OreoFR commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

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

zmasi commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

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

MoonEyes commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

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

@MoonEyes MoonEyes closed this Dec 1, 2026
@MoonEyes MoonEyes reopened this Dec 1, 2026

@aslan2142 aslan2142 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

MoonEyes commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

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

@MoonEyes
MoonEyes merged commit 2d4f316 into ProjectLeonida:main Dec 1, 2026
9 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants