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

Attempt to fix common editor test failures #32218

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

peppy
Copy link
Member

@peppy peppy commented Mar 4, 2025

See https://github.com/ppy/osu/actions/runs/13623586844/job/38143232417?pr=32180 for one example.

Arguably the bindable usage in ControlPointPart is dangerous, but it's only dangerous in tests (because control points aren't mutated outside the editor) so I'm willing to turn a blind eye for now to favour async loading support.

The fix here is to ensure the editor has reloaded after creating a new difficulty before mutating the control points in the tests.

See
https://github.com/ppy/osu/actions/runs/13623586844/job/38143232417?pr=32180
for one example.

Arguably the bindable usage in
[`ControlPointPart`](https://github.com/ppy/osu/blob/2365b065a4994f38fe67bab7d193e5a09bee538c/osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/ControlPointPart.cs#L24-L26)
is dangerous, but it's only dangerous in tests (because control points
aren't mutated outside the editor) so I'm willing to turn a blind eye
for now to favour async loading support.
@peppy peppy merged commit 4325907 into ppy:master Mar 4, 2025
9 checks passed
@peppy peppy deleted the fix-editor-creation-test-failures branch March 5, 2025 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants