Repository navigation
pr-set: pin Muse Spark Open (ggml-org#30616), repin DiffusionGemma, union distinct type definitions in additive_merge - #280
Conversation
…et additive_merge union distinct type definitions
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9008b1c5fa
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ours_types, theirs_types = type_defs(ours), type_defs(theirs) | ||
| if ours_types and theirs_types and ours_types.isdisjoint(theirs_types): | ||
| # Both sides define new types, and no type name is on both sides. Two | ||
| # differently named definitions are two constructs, so a shared member | ||
| # declaration is a coincidence of the interface they implement. The | ||
| # same type added twice keeps its name and is refused below. | ||
| return list(theirs) + list(ours) |
There was a problem hiding this comment.
Restrict the shortcut to type-only hunks
When both additions merely start with differently named types but also contain the same trailing operation, this returns before the shared-line check and duplicates that operation. For example, the regex also recognizes Python class A:/class B: blocks, so two such blocks followed by the same register("shared") call are accepted and the registration runs twice. type_defs() proves only that the first significant line is a type declaration, not that the entire hunk consists of that definition; limit this shortcut to parsed definition spans or continue rejecting shared content outside those spans.
Useful? React with 👍 / 👎.
Pins ggml-org#30616 (Muse Spark Open: text, vision and audio) at
9bbf448.The prebuilt is the aged upstream
b####plus the pins inpr-set.json, merged in order with diff3 andadditive_merge.pyfor pure add/add conflicts. ggml-org#30616 merges cleanly onto upstream by itself, but it hit two of our pins:tests/test-llama-archs.cppLLM_ARCH_MUSE_SPARKone line up)if (arch == LLM_ARCH_DIFFUSION_GEMMA)block and leaves the shared condition as upstream has it. Test-only; repinned todd7f73b.tools/mtmd/mtmd-audio.hpreprocess(...)override, soadditive_merge.pyrefused it as "one change made twice".additive_merge.pynow unions two sides that each open with a type definition (leading comments skipped) when no type name is on both sides, the same reasoning as the existing distinctcasearm rule. The same type added twice still refuses.feature-checks.jsongains amuse-sparkentry owned by ggml-org#30616 (archmuse-spark, mtmd projectormuse-spark-audio). ggml-org#30616 is a third-party PR, so its branch is pinned as is and not modified.Evidence
llama_pinset.py sim --tags windowwith this pin set and thisadditive_merge.py: b11643 (aged), b11645, b11647, b11655, b11658, b11662, b11669 (newest) all merge; ggml-org#30616 additive;pin_contract19/19 pins intact;merge_checksclean. Before the two fixes every tag refused model: add Muse Spark Open (text, vision and audio) ggml-org/llama.cpp#30616.test_additive_merge.py: all cases pass, including the real Inkling / Muse Spark shape and a same-struct-twice refusal.test-llama-archs -a diffusion-gemmapasses with the moved SWA pattern.audit: 18/19 clean. The oneFIXrow is ggml-org#30520, merged upstream; it is first in b11669, which has not aged in, so its pin stays until an aged base contains it.Not yet run: the CUDA build and backend-op
verifyon the aged and newest tags, and the DiffusionGemma output gate on the repinned head (the change touches onlytests/test-llama-archs.cpp, whichllama-diffusion-clidoes not build).