Skip to content

build(frontend-tools): state the two conversions the app lanes stop on (#2625, #2938) - #2968

Merged
zackees merged 1 commit into
masterfrom
fix/2625-frontend-tools-scripts-conversions
Oct 30, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/2625-frontend-tools-scripts-conversions

Conversation

@zackees

@zackees zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member

master's app builds are red on the two sites plugins/frontend-tools/scripts.cpp.hpp
carries, and #2959's ratchet is why they surface now: the target names the three
conversion groups while this unity TU still let the pins hide them.

RED — the scheduled run on master

Scheduled (40970380763, master 217b3cf08):

Lane Site Diagnostic
Build 🧱 / Ubuntu 🐧 (OBS-Studio-Rust) scripts.cpp.hpp:174:33 int64_t -> int may change value [-Werror=conversion]
Build 🧱 / Ubuntu 🐧 (OBS-Studio-Rust) scripts.cpp.hpp:204:81 size_t -> difference_type may change the sign [-Werror=sign-conversion]
Build 🧱 / Flatpak 📦 same two same
Build 🧱 / macOS 🍏 (arm64) scripts.cpp.hpp:204 size_t -> difference_type [-Werror,-Wsign-conversion]

GREEN — 999f02d55

Two static_casts, each the conversion the compiler already performs, both the
idiom the same target already uses:

No value change, no flag or target change; plugins/frontend-tools stays
ratcheted.

Evidence

Refs #2625, Refs #2938.

#2625, #2938)

master's app builds fail in `plugins/frontend-tools/scripts.cpp.hpp`, the target
#2959 ratcheted onto the conversion groups without replaying this unity TU:

  Ubuntu (gcc):    174:  int64_t -> int            [-Werror=conversion]
                   204:  size_t  -> difference_type [-Werror=sign-conversion]
  macOS (AppleClang): 204: size_t -> difference_type [-Werror,-Wsign-conversion]

Both name the conversion the compiler already performs: `static_cast<int>` on
the config row (the same cast #2959 used for the switcher's interval) and
`static_cast<std::ptrdiff_t>` at the iterator offset (the idiom
`auto-scene-switcher.cpp.hpp:41` already uses in this target).

Refs #2625, Refs #2938.
@zackees
zackees force-pushed the fix/2625-frontend-tools-scripts-conversions branch from 999f02d to f27045c Compare October 29, 2026 23:35
@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

App-lane evidence from scheduled.yaml dispatched on this branch (999f02d55, 40971591142):

  • Build 🧱 / Ubuntu 🐧 (OBS-Studio-Rust) — success. It was the lane that failed on master 217b3cf08 with scripts.cpp.hpp:174 (int64_t -> int) and :204 (size_t -> difference_type); both are gone.
  • Build 🧱 / Flatpak 📦 — success (also red on master on the same two sites).
  • Build 🧱 / macOS 🍏 (arm64) and (x86_64) — [frontend-tools] Compiling frontend-tools.scripts+.hpp.cpp compiles clean on both, i.e. the size_t -> difference_type site AppleClang reported at 204 is stated. The lanes then fail later on the Qt 6.11 deps headers (qnamespace.h:1926,1930,1935, int -> quintptr), which is the class build: master's macOS lanes are red in frontend/utility/platform-osx.mm.hpp and shared/properties-view/properties-view.cpp.hpp (#2625, #2872) #2950 is blocked on with a Decision needed: (mark the app's deps includes SYSTEM). That failure predates this PR and is identical on master.

Rebased onto master ccf7fdfee (#2966 landed); no local-gate stamp, this head gets the full PR CI. Handed off to the coordinator.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Coordinator review.

Verified against the branch head (81abbbb):

  • The two conversions are the ones the app lanes stop on: config_get_int returns an int64_t into an int row, and QList::iterator + i takes a qsizetype. Both static_casts are the correct, warning-silencing form; neither changes the value (prevScriptRow is written as an int row, i is a size_t bounded by scripts.size()).
  • Only plugins/frontend-tools/scripts.cpp.hpp remains in the diff (2+/2-), so the abandoned 71ac6a6 is gone.
  • plugins/frontend-tools stays ratcheted: no -Wno- flag and no target change in the diff.
  • The Windows Build 🧱 / Windows 🪟 (x64) failure on the branch dispatch is not this PR: it is the plugins/obs-qsv11/obs-qsv11.c.h C4310 from #2965, reported as #2966 and fixed in #2969. Linux app lanes and Rust cross lint are green on this head.

Nothing to change from me. The PR is ready once the asan sanitize lane finishes; I will queue it.

@zackees
zackees added this pull request to the merge queue Oct 30, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Oct 30, 2026
Merged via the queue into master with commit 43af741 Oct 30, 2026
40 checks passed
@zackees
zackees deleted the fix/2625-frontend-tools-scripts-conversions branch October 30, 2026 00:14
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant