Skip to content

bug: declaration differential tests omit the tokenizer oracle exclusion #1541

Closed

Description

@zackees

Location

rust/obs-callback/tests/callback/decl_parity.rs:excluded.

Class

Differential test input filtering error.

How it is reached

Fast Gate on #1530 failed random_pieces_match_oracle. The generated declaration ends in a line splice inside a comment. This is an existing documented oracle exclusion in rust/obs-util/tests/config/cf_tokenizer_parity.rs, but the declaration tests that call the tokenizer did not carry it forward. See run 39467032007, job 118781234889.

Proposed fix and failing test

Add focused assertions for the declaration filter, then exclude exactly terminal line splices within comment or string tokens. Keep ordinary trailing splices and unterminated comments without a splice covered. No production parser changes or C test changes.

Decisions

A separate prerequisite for the individual bug fixes split from #1462. Reuse the already documented tokenizer oracle limitation rather than changing Rust to match an undefined C result.

Activity

  1. zackees commented on Oct 20, 2026

    @zackees
    MemberAuthor

    Claiming: restore the existing tokenizer oracle exclusion in the declaration tests. 1. Add a failing filter regression. 2. Fix the filter without changing production code. 3. Verify differential tests and land a separate prerequisite PR today.

  2. added
    claimed
    on Oct 20, 2026
  3. zackees commented on Oct 20, 2026

    @zackees
    MemberAuthor

    Fixed and merged in #1542. Declaration differential tests now carry the existing tokenizer oracle exclusion only for terminal line splices inside comment/string tokens. The filter regression and all declaration parity tests pass. No production parser changes; no remaining work for this issue.

  4. removed
    claimed
    on Oct 22, 2026
  5. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Done in #1542 (see zackees' last comment). A remaining gap, leading whitespace merged into the comment token, is fixed in #1889 under #1549.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions