Repository navigation
test(ci): scale the hotkey large templates by the parity level (#3109) - #3110
Merged
Merged
Conversation
RED: `obs_c_oracle::parity::scaled_size` is a `todo!()` stub, its unit test fails, and `large_templates_match_c` routes its three fixed sizes through it so the Fast Gate can build a tenth of them. Co-Authored-By: Hermes Agent <[email protected]>
GREEN: `scaled_size_at` returns the written size at `full` and the same share the case counts keep otherwise (10 % at `reduced`), never below one element. `large_templates_match_c` builds a tenth of its 1 MiB, 100000- repeat and 64 KiB inputs on the merge queue, which keeps the overrun of the struct and the C-vs-Rust comparison. Measured in the debug build, this machine, the module alone: OBS_PARITY_CASES=full 7.725 s OBS_PARITY_CASES=reduced 0.357 s Co-Authored-By: Hermes Agent <[email protected]>
zackees
commented
Oct 30, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Coordinator review: correct. scaled_size_at mirrors scale: full is unchanged, otherwise it keeps the same percent, with a floor of one so no input is empty. The RED stub (e88aada) and then the GREEN commit (b7bf211) are visible. Even at a tenth, the reduced template still overruns struct obs_hotkeys_translations, so the test keeps its point. This is the same class of fix as #3103 (case counts) for fixed-size tests. It changes no behavior, so no ledger line is needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3109.
RED
e88aadafe:obs_c_oracle::parity::scaled_sizeis atodo!()stub andlarge_templates_match_croutes its three fixed sizes through it. The newparity_cases::fixed_sizesmodule fails on the stub:large_templates_match_citself is the test that timed out in the queue:merge-queue run 41133193773 reported
TIMEOUT [30.008s] hotkey::translations_parity::large_templates_match_c,and the next green run reported the same test
SLOW [> 10.000s].GREEN
b7bf21108:scaled_size/scaled_size_atreturn the written size atfull(local, nightly, release) and the same share the case counts keepotherwise — 10 % at
reduced(PR, merge queue) — never below one element,so an input is never empty.
large_templates_match_cbuilds a tenth of its1 MiB template, its 100000-repeat string and its 64 KiB padding on the
queue, which still overruns
struct obs_hotkeys_translationsby far, so theC-vs-Rust comparison and the overflow path are unchanged.
The test's sizes are deterministic, not a proptest, so this is the same
mechanism
obs_c_oracle::parity::scalealready gives the case counts (#2593,#2888), not a change to what the test asserts.
Test cost
This machine, debug build, the module alone in
obs-tests-core:OBS_PARITY_CASESfull(old cost on every run)reduced(new Fast Gate cost)Speedup ≈ 21×. The Fast Gate runs the
defaultnextest profile at thereduced level, so the 30 s budget has room even under the 6-thread
oversubscription from #3071. No own threads; peak RSS unchanged in kind (the
largest buffer drops from 1 MiB to 105 KiB).
Tiers
parity_cases::fixed_sizesunit tests (5 cases).against the C oracle on the same struct; only the input sizes scale.
Refs #3012, #2888, #3071.