Skip to content

build(frontend): state the row-index conversion the release lane stops on (#2938) - #2971

Merged
zackees merged 1 commit into
masterfrom
fix/2938-extrabrowsers-row-index
Oct 30, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/2938-extrabrowsers-row-index

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

frontend/utility/ExtraBrowsersModel.cpp.hpp cannot compile in the app lanes: CheckToRemove() builds its loop index from deleted.size() (a qsizetype), and the frontend target's conversion group (#2909) rejects it. #2940 stated lines 20, 33 and 108 of this file and left line 190, which is the last site the release lane reports for this translation unit.

RED

Release OBS-Studio-Rust run 40906899118 on master 3bff1d7c, job Build linux x86_64 (2026-10-29 16:13 UTC), and the same site again in Release gate 🚦 / Flatpak 📦 (16:27 UTC):

frontend/utility/ExtraBrowsersModel.cpp.hpp:190:37: error: conversion from 'qsizetype' {aka 'long long int'} to 'int' may change value [-Werror=conversion]

The other three diagnostics in that job's log (lines 20, 33, 108) were fixed by #2940, so this is the one left in the file.

I could not replay the compile locally: this box has no Qt 6 development files (pkg-config Qt6Widgets finds nothing), so the recorded lane log above is the RED evidence and PR CI's Sanitize 🧪 / asan 🧪 lane (which selects on a compile input below the ratcheted frontend directory) is the GREEN confirmation of the frontend target compiling with the group.

GREEN

One explicit cast, in the idiom the same file already uses at lines 20, 33, 108 and 246:

for (int i = (int)deleted.size() - 1; i >= 0; i--) {

No behavior change: the index is a row in the model's own item list, bounded by the model's item count, and CheckToRemove()'s caller owns the same list.

  • ./lint: == lane lint: ok (53.5s).

Scope

This is a conversion statement, not a flag change: the frontend target keeps its group (a -Wno-conversion here would undo #2909/#2944 for all 63 frontend files). The macOS lanes still stop in the .deps Qt 6.11 headers, which is the pending decision on #2950 and is not touched here.

Refs #2938, Refs #2625.

…s on (#2938)

`ExtraBrowsersModel::CheckToRemove()` builds its loop index from
`deleted.size()`, which is a `qsizetype`, so the release lane's frontend
compile stops on it:

```
frontend/utility/ExtraBrowsersModel.cpp.hpp:190:37: error: conversion from
'qsizetype' {aka 'long long int'} to 'int' may change value
[-Werror=conversion]
```

RED evidence: `Release OBS-Studio-Rust` run 40906899118 on master `3bff1d7c`,
job `Build linux x86_64` (and the same site again in
`Release gate / Flatpak`), 2026-10-29 16:13 UTC. #2940 stated the three other
sites in this file (lines 20, 33, 108) and this one was left, so the file still
cannot compile with the frontend target's conversion group.

GREEN: the cast matches the same file's idiom (`(int)items.size()` at 20, 33,
108, 246). No behavior change: the list is a row index that starts at the
model's own item count. `./lint` is clean.

Refs #2938, Refs #2625.
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

GREEN evidence: Build 🧱 / Qt Frontend Linux 🐧 — pass (3m28s) on run 40980996704. That lane compiles frontend/utility/ExtraBrowsersModel.cpp.hpp with the frontend target's -Wconversion;-Wsign-conversion;-Wfloat-conversion group, which is the compile the release lane stopped on at 190:37. Sanitize 🧪 / asan 🧪 and the Tier 2 lanes are still running; auto-merge is on, so this queues when they finish.

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

Correctness. deleted.size() is a qsizetype and the loop index is an int row, so the cast is the conversion the compiler already performs. The empty case is unchanged: (int)0 - 1 is -1 and the loop body never runs, exactly as with the implicit conversion before. No value can change — the indices in deleted are model rows added by this same function, so they are far inside int range.

Idiom. (int) matches the rest of this file: lines 20, 26, 33, 42-79, 108, 216-229 and 246 all use the same functional cast, and clang-format leaves it as is. A static_cast<int> here would be the odd one out.

Evidence. Build 🧱 / Qt Frontend Linux 🐧 is green on the head, which is the lane that compiles this unity TU with the frontend target's group; the asan lane is the remaining check and I will queue the PR when it passes.

No change requested.

@zackees
zackees added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit c15675b Oct 30, 2026
41 checks passed
@zackees
zackees deleted the fix/2938-extrabrowsers-row-index branch October 30, 2026 01:20
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