Skip to content

DOOM-rosetta: fix the 4 non-PERFECT ports (doomsday + doom-ios .h language, cssdoom + sqldoom function counts) #5876

Closed

Description

@squid-protocol

Problem

4 of the 44 DOOM-rosetta ports are not PERFECT. Each one is listed in expected_fails in tests/doom_rosetta/manifest.csv, so the golden passes, but no issue tracks fixing them. Numbers are from the goldens on main (tests/golden_doom_rosetta/).

Port Fails Detail
doomsday language 1 wrong-language file. libs/gui/src/text/fonts_macx.h is labelled objective-c, but the file contains no ObjC syntax (no @interface/@class/@protocol/#import/@end). Separately, the function count is +14.8% vs ctags (25618 vs 22324, 550 files differ); that check still passes, so read it before trusting it.
doom-ios language 5 wrong-language files in the golden, up from 2 on 2026-10-19 (code/iphone/IBGlue.h and code/iphone/iphone_email.h then). Neither of those has ObjC syntax. Check whether the overnight ObjC work (#5639, #5777, #5795) widened the .h → objective-c rule.
cssdoom functions JavaScript and CSS reimplementation: 225 functions vs 215 ctags (+4.7%, over the 3% bar), 5 files differ.
sqldoom functions PostgreSQL and Python: 419 vs 376 ctags (+11.4%), 6 files differ. The SQL work in #5622, #5635 and #5736 probably moved this.

Change

One slice per port, smallest first. Read the disputed files before calling either tool right (CLAUDE.md: agreement is not correctness).

  1. .h language (doomsday, doom-ios): a .h gets objective-c only when it carries ObjC syntax. A macOS- or iPhone-flavoured name or neighbouring .m files alone must not decide it. Add a fixture with our own code, not the port's.
  2. cssdoom functions: list the 5 mismatched files and classify each delta (arrow functions, class methods, object-literal methods, what ctags counts). Fix the engine if it is an engine bug; otherwise record the convention and why.
  3. sqldoom functions: the same for its 6 files (CREATE FUNCTION/PROCEDURE, DO blocks, Python helpers).
  4. For each fixed port, remove its expected_fails entry and re-bless only its golden, with the drift explained in the PR body.

Acceptance

  • All four ports have an empty expected_fails and the golden passes, or a port whose remaining delta is ruled a counting convention keeps its entry with a comment linking that ruling.
  • The six-check PERFECT count is 44/44 (or 44 minus the ruled ports).

Part of #5457. Related: #5619, #5874 (adds the call-graph check).

Activity

  1. added
    lane:nyx
    on Oct 21, 2026
  2. squid-protocol commented on Oct 21, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host nyx, lease renewed 2026-10-22T04:31Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:nyx label.

  3. squid-protocol commented on Oct 22, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 5876-20261022T0239Z (host nyx) ended without a PR. PR #5957 merged at old head; flake-fix tail (3 commits on branch) queued at front as a new PR

  4. squid-protocol commented on Oct 22, 2026

    @squid-protocol
    OwnerAuthor

    All four ports resolved: doomsday and doom-ios .h language fixed (#5957, expected_fails language removed, goldens re-blessed); cssdoom and sqldoom function deltas read file by file and ruled a counting convention (named bound arrows and obj.onX handlers, engine right, ctags-only set empty) in #5963 and #5966, entries kept with the ruling linked. Doomsday's separate +14.8% function delta vs ctags still passes its check; not in this issue's acceptance.

  5. added a commit that references this issue on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claim:nyxlane:nyx

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions