Change the ambiguity_detection test to be more strict.#23846
Open
andriyDev wants to merge 1 commit intobevyengine:mainfrom
Open
Change the ambiguity_detection test to be more strict.#23846andriyDev wants to merge 1 commit intobevyengine:mainfrom
andriyDev wants to merge 1 commit intobevyengine:mainfrom
Conversation
This was referenced Apr 17, 2026
This was referenced Apr 17, 2026
alice-i-cecile
approved these changes
Apr 17, 2026
Member
alice-i-cecile
left a comment
There was a problem hiding this comment.
Mildly cursed, but I appreciate the robustness.
|
Not having ambiguity detection for runtime added systems seems like a pretty big downside tbh. I grant you that Bevy itself doesn't make use of that feature. However, users who are implementing scripting languages on top of Bevy, for example, will acutely feel the pain not having ambiguity detection anymore. |
Contributor
Author
|
@EmileGr this only affects Bevy CI. This does not affect any ambiguity detection for downstream users. I just wanted to note that if we use runtime added systems within Bevy, that's not something that CI will detect. |
github-merge-queue bot
pushed a commit
that referenced
this pull request
Apr 17, 2026
# Objective - Removes an entirely unused component in `update_gizmo_meshes`. - Resolve a "strict ambiguity" for #23846. ## Solution - Remove the arg! Replace with `With<Camera>`. ## Testing - Ran the `3d_gizmos` example. It still works!
github-merge-queue bot
pushed a commit
that referenced
this pull request
Apr 17, 2026
…pagate. (#23847) # Objective - Resolves a "strict ambiguity" from #23843. - TL;DR, adding systems before this schedule with `Commands` could cause these systems being ambiguous. - A step for #23846. ## Solution - Explicitly order these lighting bounds updates after the transform propagation. ## Testing - This removes a "strict ambiguity" from #23846.
github-merge-queue bot
pushed a commit
that referenced
this pull request
Apr 17, 2026
… ComputedNode::stack_index, which is not used. (#23854) # Objective - Resolves 2 "strict ambiguities" from #23843. ## Solution - Make these two widget systems ambiguous with the Stack stage. - This only contains the ui_stack_system which only updates the stack_index of the `ComputedNode`, which is unused by these systems. So we don't care about order here. ## Testing - Fixes the ambiguities in #23846.
Contributor
Author
|
BTW for motivation, this fixed an actual bug in #23847! Strict checking is valuable! |
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.
Objective
apply_deferred. #23843 by preventing these systems from recurring inside Bevy.Solution
auto_insert_apply_deferredin theambiguity_detectionexample. Now these stages won't accidentally resolve these ambiguities, so they will be detected!ambiguity_detectionand just manually initialize the schedules.apply_deferred).Caveats:
Testing