Skip to content

bug: shader sampler C oracle fails strict sign-conversion compilation after #1750 #1816

Closed

Description

@zackees

Context

Full manual master workflow 39831165145, Fast Gate job120007541300 failed its rust-test lane at merged source e1b6499. Its full Flatpak job passed independently; this report preserves the workspace build failure rather than rerunning it or suppressing it in #1760.

After sampler port PR #1750, the C oracle includes the original shader-sampler implementation through rust/obs-c-oracle/oracle/shader_sampler_convert.c:10. rust/obs-c-oracle/build.rs applies -Wsign-conversion in STRICT_FLAGS and -Werror.

At libobs/graphics/shader-sampler-convert.c.h:42:

info->border_color = strtol(value + 1, NULL, 16);

The hosted GNU build reports a long-to-uint32_t sign-conversion error and stops obs-c-oracle compilation (cargo exit101). This is a deterministic compilation failure before the applicable differential assertions can run, not an observed runtime failure.

Proposal

Reconcile this original-C oracle input with the existing narrowly scoped compiler-warning compatibility policy. Preserve original C behavior and oracle independence; do not edit C tests/public headers, globally relax warnings, or change Rust results to make tests pass. Inspect source-specific handling in the oracle wrapper/build setup and select the narrowest compatible fix.

Acceptance criteria

  • Record RED with the strict oracle compilation reproducing this diagnostic on current master; preserve the original hosted failure/source identity.
  • GREEN builds the affected oracle and runs sampler differential coverage/full applicable workspace tests.
  • Original C implementation behavior, unchanged C tests and public headers remain preserved; warning treatment is limited to the actual upstream input and compiler diagnostic.
  • Normal PR CI and merge queue pass; no unchanged workflow retry is presented as a fix.

Decisions

  • Track independently of Flatpak speed changes: the error is in a C-reference dependency of the Rust workspace lane, while full Flatpak compilation and validators succeeded.
  • Keep warning policy strict elsewhere and require RED → GREEN evidence. The exact implementation belongs with the oracle/sampler owner.

Related work

Activity

  1. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Claiming: #1816

  2. added
    claimed
    on Oct 22, 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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions