Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add regression test for #10385/#10389 #10609

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

ickk
Copy link
Member

@ickk ickk commented Nov 17, 2023

Bevy introduced unintentional breaking behaviour along with the v0.12.0 release regarding the App::set_runner API. See: #10385, #10389 for details. We weren't able to catch this before release because this API is only used internally in one or two places (the very places which motivated the break).

This commit adds a regression test to help guarantee some expected behaviour for custom runners, namely that app::update won't be called before the runner has a chance to initialise state.

@ickk ickk added C-Testing A change that impacts how we test Bevy or how users test their apps A-App Bevy apps and plugins labels Nov 17, 2023
@ickk
Copy link
Member Author

ickk commented Nov 18, 2023

@alexschrod since you're one of the known users of this API, could I ask for your review

Copy link
Contributor

@ilyvion ilyvion left a comment

Choose a reason for hiding this comment

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

This looks good to me! 👍 Thanks for putting this regression test in place so I won't find myself in the same situation again with a future Bevy release. 😁

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Nov 18, 2023
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Nov 18, 2023
Merged via the queue into bevyengine:main with commit 29f711c Nov 18, 2023
24 checks passed
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
…#10609)

Bevy introduced unintentional breaking behaviour along with the v0.12.0
release regarding the `App::set_runner` API. See: bevyengine#10385, bevyengine#10389 for
details. We weren't able to catch this before release because this API
is only used internally in one or two places (the very places which
motivated the break).

This commit adds a regression test to help guarantee some expected
behaviour for custom runners, namely that `app::update` won't be called
before the runner has a chance to initialise state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-App Bevy apps and plugins C-Testing A change that impacts how we test Bevy or how users test their apps S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants