Skip to content

Fix CI test failure: TestFruitColourFallback in catch ruleset - #341

Merged
winnerspiros merged 2 commits into
masterfrom
copilot/fix-ci-issues-from-prs
May 19, 2026
Merged

Fix CI test failure: TestFruitColourFallback in catch ruleset#341
winnerspiros merged 2 commits into
masterfrom
copilot/fix-ci-issues-from-prs

Conversation

Copilot AI commented May 19, 2026

Copy link
Copy Markdown

Fixes the consistently-failing TestFruitColourFallback test in TestSceneHyperDashColouring.

Changes Made

  • AddAssertAddUntilStep for the hyper-dash fruit colour check, consistent with how the catcher colour check works. This ensures the assertion retries until async drawable loading (via [BackgroundDependencyLoader]) and LegacyCatchHitObjectPiece.LoadComplete have completed.
  • Explicit SRGB comparison: Changed c.Colour == expectedColour to c.Colour.TopLeft.SRGB == expectedColour. This uses direct SRGB field access instead of relying on the implicit ColourInfo → SRGBColour → Colour4 conversion chain (which internally asserts HasSingleColour = true), making the comparison more robust and consistent with the pattern used elsewhere in the codebase.

Notes

  • The iOS Build failure (DetectSdkLocations MSBuild task, Xcode version mismatch) is a CI infrastructure issue and is not fixable in code.

…fication

Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/4b89ea94-0ef4-4f3a-9dd7-ffb7cd4e8d09

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
@gitar-bot

gitar-bot Bot commented May 19, 2026

Copy link
Copy Markdown

Gitar is working

Gitar

@winnerspiros

Copy link
Copy Markdown
Owner

@copilot check ci errors and warnings and fix

…rison

Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/f3fc7ab7-91f5-4585-85c4-d37cdef778b8

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>

Copilot AI commented May 19, 2026

Copy link
Copy Markdown
Author

@copilot check ci errors and warnings and fix

Checked CI logs for run 26102450367. Two failures found:

  1. TestFruitColourFallback (both Windows/Linux) – Fixed in commit 19845e2:

    • Changed AddAssertAddUntilStep to properly wait for async fruit drawable loading (consistent with the catcher colour check which already uses AddUntilStep)
    • Changed c.Colour == expectedColourc.Colour.TopLeft.SRGB == expectedColour for explicit SRGB comparison (avoids relying on the implicit ColourInfo→Colour4 conversion chain)
  2. iOS BuildDetectSdkLocations MSBuild task crashes with a TypeInitializationException caused by an Xcode/Xamarin SDK version mismatch in the CI runner. This is a CI infrastructure issue and cannot be fixed in code.

Copilot AI changed the title Fix three CI build errors introduced in previous PRs Fix CI test failure: TestFruitColourFallback in catch ruleset May 19, 2026
@winnerspiros
winnerspiros marked this pull request as ready for review May 19, 2026 15:52
Copilot AI review requested due to automatic review settings May 19, 2026 15:52
@winnerspiros
winnerspiros merged commit e5e09cb into master May 19, 2026
15 of 22 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a flaky catch ruleset test around hyper-dash fruit colouring and includes small cleanup/migration adjustments elsewhere.

Changes:

  • Retries the hyper-dash fruit colour assertion until async drawable loading completes.
  • Compares sprite colour via explicit SRGB access.
  • Removes an unused matchmaking field and simplifies a nullable colour assignment.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
osu.Game.Rulesets.Catch.Tests/TestSceneHyperDashColouring.cs Updates the fruit colour test to wait for the expected colour and compare via TopLeft.SRGB.
osu.Game.Rulesets.Osu/Edit/OsuSliderVelocityToolboxGroup.cs Replaces osuTK with System.Numerics for vector usage.
osu.Game/Screens/Edit/Components/FormSampleSet.cs Simplifies null-checked triangle colour assignment.
osu.Game/Screens/OnlinePlay/Matchmaking/Queue/ScreenQueue.cs Removes an unused historyInsertOrder field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Screens.Edit;
using osuTK;
using System.Numerics;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants